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

[macosx] Crash during JMC or JavaFX execution when NSApplication is controlled by SWT or JavaFX libraries

XMLWordPrintable

    • b20
    • b78
    • os_x

        When running JMC 6.0 with the JConsole plug-in on JDK 9 we experience crashes with something like this output:

             [java] 2015-07-27 11:08:27.946 java[93835:4650052] -[SWTApplication postRunnableEvent:]: unrecognized selector sent to instance 0x7fc322e1bf20
             [java] 2015-07-27 11:08:27.947 java[93835:4650052] Apple AWT Internal Exception: -[SWTApplication postRunnableEvent:]: unrecognized selector sent to instance 0x7fc322e1bf20
             [java] 2015-07-27 11:08:27.947 java[93835:4650052] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SWTApplication postRunnableEvent:]: unrecognized selector sent to instance 0x7fc322e1bf20'
             [java] *** First throw call stack:
             [java] (
             [java] 0 CoreFoundation 0x00007fff9146d03c __exceptionPreprocess + 172
             [java] 1 libobjc.A.dylib 0x00007fff8e8d776e objc_exception_throw + 43
             [java] 2 CoreFoundation 0x00007fff914700ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
             [java] 3 CoreFoundation 0x00007fff913b5e24 ___forwarding___ + 1028
             [java] 4 CoreFoundation 0x00007fff913b5998 _CF_forwarding_prep_0 + 120
             [java] 5 libawt_lwawt.dylib 0x0000000190759730 Java_sun_lwawt_macosx_CFRetainedResource_nativeCFRelease + 103
             [java] 6 ??? 0x000000011451a631 0x0 + 4635862577
             [java] 7 ??? 0x000000011450d08d 0x0 + 4635807885
             [java] )
             [java] libc++abi.dylib: terminating with uncaught exception of type NSException
             [java] Java Result: 134

        Full log from an automated UI-test: http://tendril.se.oracle.com/admin/requests/taskdetails.do?taskID=4100879

        Steps to reproduce:
        1. Download and install JDK 9 and the corresponding demos.
        2. Start JMC (<JDK_INSTALL_DIR>/jdk/jdk1.9.0.jdk/Contents/Home/lib/missioncontrol/"Java Mission Control").
        3. Install the JConsole plugin.
        4. Restart JMC (as requested by the plugin installation)
        5. Configure the plug-in path to point to <DEMO_INSTALL_DIR>/management/JTop
        6. Open a console session on visible JVM.
        7. Close the console session and see the JVM crash

        If needed, contact erik.greijus@oracle.com to get an already configured JDK/JMC zip-file in order to be able to skip steps 1-5, just unpack, launch JMC and run steps 6-7.

              serb Sergey Bylokhov
              egreijus Erik Greijus (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: