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

Mac: FileChooser sometimes crashes the JVM on Mac OS X 10.8

XMLWordPrintable

      To reproduce:
      1) Open the attached FX project (TestFileChooserV2.zip)
      2) Run it : you get a window with a "Choose File" button (see TestFileChooserV2.png)
      3) Click on the "Choose File" button
      => the JVM crashes (see the output below).

      The crash also occurs with Scene Builder 1.0 b50.

      In both cases:
      JavaFX 2.2.0-b21
      JDK 1.7.0_06-b23

      Note : if you run the test program again, then the crash does not occur anymore.



      Output displayed at crash time:

      Initializing controller...
      2012-08-08 22:58:00.545 java[3512:707] Invalid URL passed to an open/save panel: '/Users/mochich/Desktop/TestFileChooserV2'. Using 'file://localhost/Users/mochich/Desktop/Unlock/src/unlock/' instead.
      2012-08-08 22:58:03.836 java[3512:707] unrecognized type is -2
      2012-08-08 22:58:03.836 java[3512:707] *** Assertion failure in -[NSEvent _initWithCGSEvent:eventRef:], /SourceCache/AppKit/AppKit-1187/AppKit.subproj/NSEvent.m:1348
      2012-08-08 22:58:03.837 java[3512:707] An uncaught exception was raised
      2012-08-08 22:58:03.838 java[3512:707] Invalid parameter not satisfying: cgsEvent.type > 0 && cgsEvent.type <= kCGSLastEventType
      2012-08-08 22:58:03.841 java[3512:707] (
      0 CoreFoundation 0x00007fff8e463716 __exceptionPreprocess + 198
      1 libobjc.A.dylib 0x00007fff8bfa9470 objc_exception_throw + 43
      2 CoreFoundation 0x00007fff8e463558 +[NSException raise:format:arguments:] + 104
      3 Foundation 0x00007fff8cdae962 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
      4 AppKit 0x00007fff873dfd2c -[NSEvent _initWithCGSEvent:eventRef:] + 2782
      5 AppKit 0x00007fff8765dd9a +[NSEvent eventWithCGEvent:] + 243
      6 libglass.dylib 0x0000000167ccf02f listenTouchEvents + 31
      7 CoreGraphics 0x00007fff893bba91 processEventTapData + 150
      8 CoreGraphics 0x00007fff893bb8e4 _CGYPostEventTapData + 189
      9 CoreGraphics 0x00007fff89662a65 _XPostEventTapData + 107
      10 CoreGraphics 0x00007fff89662b5d CGYEventTap_server + 106
      11 CoreGraphics 0x00007fff893bb9d2 eventTapMessageHandler + 30
      12 CoreFoundation 0x00007fff8e3d2b50 __CFMachPortPerform + 288
      13 CoreFoundation 0x00007fff8e3d2a19 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
      14 CoreFoundation 0x00007fff8e3d2759 __CFRunLoopDoSource1 + 153
      15 CoreFoundation 0x00007fff8e4058bf __CFRunLoopRun + 1775
      16 CoreFoundation 0x00007fff8e404dd2 CFRunLoopRunSpecific + 290
      17 Foundation 0x00007fff8ce3cace -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
      18 libglass.dylib 0x0000000167cba8c4 +[GlassApplication enterNestedEventLoopWithEnv:] + 132
      19 libglass.dylib 0x0000000167cbe4f3 -[DialogDispatcher runModal] + 163
      20 Foundation 0x00007fff8ce2e450 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 212
      21 Foundation 0x00007fff8ce2e2f8 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 131
      22 libglass.dylib 0x0000000167cbe9e5 Java_com_sun_glass_ui_mac_MacCommonDialogs__1showFileOpenChooser + 981
      23 ??? 0x0000000101d7bf90 0x0 + 4325883792
      )
      2012-08-08 22:58:03.842 java[3512:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cgsEvent.type > 0 && cgsEvent.type <= kCGSLastEventType'
      *** First throw call stack:
      (
      0 CoreFoundation 0x00007fff8e463716 __exceptionPreprocess + 198
      1 libobjc.A.dylib 0x00007fff8bfa9470 objc_exception_throw + 43
      2 CoreFoundation 0x00007fff8e463558 +[NSException raise:format:arguments:] + 104
      3 Foundation 0x00007fff8cdae962 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
      4 AppKit 0x00007fff873dfd2c -[NSEvent _initWithCGSEvent:eventRef:] + 2782
      5 AppKit 0x00007fff8765dd9a +[NSEvent eventWithCGEvent:] + 243
      6 libglass.dylib 0x0000000167ccf02f listenTouchEvents + 31
      7 CoreGraphics 0x00007fff893bba91 processEventTapData + 150
      8 CoreGraphics 0x00007fff893bb8e4 _CGYPostEventTapData + 189
      9 CoreGraphics 0x00007fff89662a65 _XPostEventTapData + 107
      10 CoreGraphics 0x00007fff89662b5d CGYEventTap_server + 106
      11 CoreGraphics 0x00007fff893bb9d2 eventTapMessageHandler + 30
      12 CoreFoundation 0x00007fff8e3d2b50 __CFMachPortPerform + 288
      13 CoreFoundation 0x00007fff8e3d2a19 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
      14 CoreFoundation 0x00007fff8e3d2759 __CFRunLoopDoSource1 + 153
      15 CoreFoundation 0x00007fff8e4058bf __CFRunLoopRun + 1775
      16 CoreFoundation 0x00007fff8e404dd2 CFRunLoopRunSpecific + 290
      17 Foundation 0x00007fff8ce3cace -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
      18 libglass.dylib 0x0000000167cba8c4 +[GlassApplication enterNestedEventLoopWithEnv:] + 132
      19 libglass.dylib 0x0000000167cbe4f3 -[DialogDispatcher runModal] + 163
      20 Foundation 0x00007fff8ce2e450 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 212
      21 Foundation 0x00007fff8ce2e2f8 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 131
      22 libglass.dylib 0x0000000167cbe9e5 Java_com_sun_glass_ui_mac_MacCommonDialogs__1showFileOpenChooser + 981
      23 ??? 0x0000000101d7bf90 0x0 + 4325883792
      )
      libc++abi.dylib: terminate called throwing an exception
      Java Result: 134


        1. Screen Shot 2013-06-06 at 6.21.31 AM.png
          1.06 MB
          Victor Shubov
        2. TestFileChooserV2.png
          61 kB
          Eric Le Ponner

            anthony Anthony Petrov (Inactive)
            eleponn Eric Le Ponner
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: