Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8231558

[macos 10.15] Platform.exit causes assertion error on macOS Catalina

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 8u211, openjfx13
    • Fix Version/s: openjfx16
    • Component/s: javafx
    • Labels:
    • Environment:

      macOS 10.15 Catalina (19A583)

      Description

      To reproduce:

      1. Run the attached test case:
      $ java --module-path javafx-sdk-13/lib --add-modules javafx.controls HelloSimple

      2. Press the "Platform.exit" button

      3. BUG: The program will exit, but prints the following assertion error:

      Java has been detached already, but someone is still trying to use it at -[GlassViewDelegate dealloc]:/Users/jenkins/workspace/OpenJFX-mac/modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m:198
      0 libglass.dylib 0x0000000128ba8f92 -[GlassViewDelegate dealloc] + 290
      1 libglass.dylib 0x0000000128baec9c -[GlassView3D dealloc] + 252
      2 libobjc.A.dylib 0x00007fff75e4953a _ZN19AutoreleasePoolPage12releaseUntilEPP11objc_object + 134
      3 libobjc.A.dylib 0x00007fff75e2fc30 objc_autoreleasePoolPop + 175
      4 CoreFoundation 0x00007fff48b144be __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
      5 CoreFoundation 0x00007fff48b143e4 __CFRunLoopDoObservers + 457
      6 CoreFoundation 0x00007fff48ab755b __CFRunLoopRun + 1219
      7 CoreFoundation 0x00007fff48ab6e13 CFRunLoopRunSpecific + 499
      8 libjli.dylib 0x0000000105bff619 CreateExecutionEnvironment + 399
      9 libjli.dylib 0x0000000105bfb75e JLI_Launch + 1354
      10 java 0x0000000105bf0ca9 main + 367
      11 libdyld.dylib 0x00007fff7718b405 start + 1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                kcr Kevin Rushforth
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: