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

Mac: crash when exiting an app after exiting the native full screen mode with Glass API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • 7u6
    • javafx
    • None
    • Mac

      The fix for RT-21465 will make Glass aware of the native full screen mode on OS X Lion, and will eliminate the most obvious crash that could happen before.

      However, there's still a crash which is reproducible when the following operations occur:

      1. User enters the FS using the OS X Lion widget (i.e. the native FS mode).
      2. The app calls Glass' API View.exitFullScreen() to exit the FS mode. Note that the implementation of GlassViewDelegate -exitexitFullscreenWithAnimate: handles this requests correctly and calls NSWindow -toggleFullScreen: to exit the native FS mode.

      The above operations can be repeated many times and appear to work as expected. However, as soon as we exit the app by closing all the open windows, the app will crash. Note that the crash is very bizarre as it may happen when sending various selectors (-release, for example), and sometimes it is a SEGSEGV, other times it may be a Bus Error. Here's the essential part of the crash report:

      objc_msgSend() selector name: _setRemoved:

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0 libobjc.A.dylib 0x00007fff958a7e8c objc_msgSend + 12
      1 com.apple.AppKit 0x00007fff8e5dd67c -[NSView removeTrackingArea:] + 185
      2 libglass.dylib 0x000000010969f043 -[GlassView2D dealloc] + 83
      3 com.apple.AppKit 0x00007fff8e631e2d +[_NSAutomaticFocusRing setActiveFirstResponderChanged] + 219
      4 com.apple.AppKit 0x00007fff8ec089cd __postActiveFirstResponderChanged_block_invoke_1 + 32
      5 com.apple.CoreFoundation 0x00007fff90dc1bd7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
      6 com.apple.CoreFoundation 0x00007fff90dc1b36 __CFRunLoopDoObservers + 374
      7 com.apple.CoreFoundation 0x00007fff90d96ce9 __CFRunLoopRun + 825
      8 com.apple.CoreFoundation 0x00007fff90d96676 CFRunLoopRunSpecific + 230
      9 com.apple.HIToolbox 0x00007fff8f16731f RunCurrentEventLoopInMode + 277
      10 com.apple.HIToolbox 0x00007fff8f16e51b ReceiveNextEventCommon + 181
      11 com.apple.HIToolbox 0x00007fff8f16e456 BlockUntilNextEventMatchingListInMode + 62
      12 com.apple.AppKit 0x00007fff8e568f5d _DPSNextEvent + 659
      13 com.apple.AppKit 0x00007fff8e568861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
      14 com.apple.AppKit 0x00007fff8e56519d -[NSApplication run] + 470
      15 libglass.dylib 0x000000010968bf6c -[GlassApplication runLoop:] + 1564
      16 com.apple.CoreFoundation 0x00007fff90df175d -[NSObject performSelector:withObject:] + 61
      17 com.apple.Foundation 0x00007fff97659d94 __NSThreadPerformPerform + 214
      18 com.apple.CoreFoundation 0x00007fff90d706e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      19 com.apple.CoreFoundation 0x00007fff90d6ff4d __CFRunLoopDoSources0 + 253
      20 com.apple.CoreFoundation 0x00007fff90d96d39 __CFRunLoopRun + 905
      21 com.apple.CoreFoundation 0x00007fff90d96676 CFRunLoopRunSpecific + 230
      22 java 0x00000001008bb843 0x1008b7000 + 18499
      23 java 0x00000001008bb29a 0x1008b7000 + 17050
      24 java 0x00000001008b8a98 0x1008b7000 + 6808

            anthony Anthony Petrov (Inactive)
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: