-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
8u181
-
x86_64
-
os_x
ADDITIONAL SYSTEM INFORMATION :
Oracle JDK 8u181 and older versions like 8u172, 8u112
Mac OS 10.14
A DESCRIPTION OF THE PROBLEM :
On Mac OS 10.14:
Create a modal dialog Stage and show it with showAndWait().
While the dialog is visible click on another application.
Result: Crash
Short of a fix in Java 8, would love a workaround recommendation
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
On Mac OS 10.14:
Create a modal dialog Stage and show it with showAndWait().
While the dialog is visible click on another application.
Result: Crash
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Dialog should lose focus but not crash the application
ACTUAL -
Crash dump snippet:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff7de7eb86 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff7df34c50 pthread_kill + 285
2 libsystem_c.dylib 0x00007fff7dde81c9 abort + 127
3 libc++abi.dylib 0x00007fff7b46b231 abort_message + 231
4 libc++abi.dylib 0x00007fff7b46b3cd default_terminate_handler() + 265
5 libobjc.A.dylib 0x00007fff7cc74c87 _objc_terminate() + 97
6 libc++abi.dylib 0x00007fff7b476dfe std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff7b46a86e __cxa_rethrow + 99
8 libobjc.A.dylib 0x00007fff7cc72b6e objc_exception_rethrow + 40
9 com.apple.CoreFoundation 0x00007fff50caad7f CFRunLoopRunSpecific + 618
10 com.apple.Foundation 0x00007fff5300b5da -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280
11 libglass.dylib 0x00000001292a26d8 +[GlassApplication enterNestedEventLoopWithEnv:] + 136
12 libglass.dylib 0x00000001292a313a Java_com_sun_glass_ui_mac_MacApplication__1enterNestedEventLoopImpl + 74
13 ??? 0x000000011042e9f4 0 + 4567788020
14 ??? 0x000000011041f040 0 + 4567724096
15 ??? 0x000000011041f040 0 + 4567724096
16 ??? 0x000000011041f040 0 + 4567724096
17 ??? 0x000000011041f040 0 + 4567724096
18 ??? 0x000000011041f040 0 + 4567724096
19 ??? 0x000000011041f2bd 0 + 4567724733
20 ??? 0x000000011041f2bd 0 + 4567724733
21 ??? 0x000000011041f2bd 0 + 4567724733
22 ??? 0x0000000110a4fc54 0 + 4574215252
23 ??? 0x000000011041f040 0 + 4567724096
24 ??? 0x000000011041f040 0 + 4567724096
25 ??? 0x000000011041f114 0 + 4567724308
26 ??? 0x0000000110a5eb3c 0 + 4574276412
27 ??? 0x000000011041f2bd 0 + 4567724733
28 ??? 0x000000011041f2bd 0 + 4567724733
29 ??? 0x0000000110a4fc54 0 + 4574215252
30 ??? 0x000000011041f040 0 + 4567724096
31 ??? 0x000000011041f040 0 + 4567724096
32 ??? 0x000000011041f114 0 + 4567724308
33 ??? 0x0000000110a5e6ac 0 + 4574275244
34 ??? 0x000000011041f302 0 + 4567724802
35 ??? 0x00000001104177a7 0 + 4567693223
36 libjvm.dylib 0x000000010d347bd2 JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710
37 libjvm.dylib 0x000000010d37ed61 jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) + 748
38 libjvm.dylib 0x000000010d37152f jni_CallVoidMethod + 363
39 libglass.dylib 0x00000001292abce6 -[GlassMenu action:] + 246
40 com.apple.AppKit 0x00007fff4e4fad03 -[NSApplication(NSResponder) sendAction:to:from:] + 312
41 com.apple.AppKit 0x00007fff4e557d73 -[NSMenuItem _corePerformAction] + 323
42 com.apple.AppKit 0x00007fff4e557ae6 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
43 com.apple.AppKit 0x00007fff4e5bc152 -[NSMenu performActionForItemAtIndex:] + 133
44 com.apple.AppKit 0x00007fff4e5bc0bd -[NSMenu _internalPerformActionForItemAtIndex:] + 94
45 com.apple.AppKit 0x00007fff4e5bbff4 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 371
46 com.apple.AppKit 0x00007fff4e52613d NSSLMMenuEventHandler + 902
47 com.apple.HIToolbox 0x00007fff4ff428d9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1502
48 com.apple.HIToolbox 0x00007fff4ff41c16 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 371
49 com.apple.HIToolbox 0x00007fff4ff5f1cd SendEventToEventTarget + 39
50 com.apple.HIToolbox 0x00007fff4ffb229f SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 380
51 com.apple.HIToolbox 0x00007fff4ffda9e6 SendMenuCommandWithContextAndModifiers + 49
52 com.apple.HIToolbox 0x00007fff4ffda998 SendMenuItemSelectedEvent + 191
53 com.apple.HIToolbox 0x00007fff4ffda87d FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 96
54 com.apple.HIToolbox 0x00007fff4ffdb239 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 603
55 com.apple.HIToolbox 0x00007fff4ffdaf4e _HandleMenuSelection2 + 453
56 com.apple.AppKit 0x00007fff4e20cb7d _NSHandleCarbonMenuEvent + 223
57 com.apple.AppKit 0x00007fff4e20c9e2 _DPSEventHandledByCarbon + 54
58 com.apple.AppKit 0x00007fff4e200a54 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2220
59 com.apple.AppKit 0x00007fff4e1fa75d -[NSApplication run] + 699
60 libglass.dylib 0x00000001292a251c -[GlassApplication runLoop:] + 1836
61 com.apple.Foundation 0x00007fff530a0cdb __NSThreadPerformPerform + 327
62 com.apple.CoreFoundation 0x00007fff50cc8405 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
63 com.apple.CoreFoundation 0x00007fff50cc83ab __CFRunLoopDoSource0 + 108
64 com.apple.CoreFoundation 0x00007fff50cabe51 __CFRunLoopDoSources0 + 195
65 com.apple.CoreFoundation 0x00007fff50cab3fa __CFRunLoopRun + 1219
66 com.apple.CoreFoundation 0x00007fff50caace4 CFRunLoopRunSpecific + 463
67 libjli.dylib 0x000000010d04d8fd CreateExecutionEnvironment + 871
68 libjli.dylib 0x000000010d049624 JLI_Launch + 1952
69 libpackager.dylib 0x000000010b5dd4c7 JavaLibrary::JavaVMCreate(unsigned long, char**) + 183
70 libpackager.dylib 0x000000010b5dadb1 JavaVirtualMachine::StartJVM() + 3457
71 libpackager.dylib 0x000000010b5d9f60 RunVM() + 16
72 libpackager.dylib 0x000000010b5e781f start_launcher + 1791
FREQUENCY : often
Oracle JDK 8u181 and older versions like 8u172, 8u112
Mac OS 10.14
A DESCRIPTION OF THE PROBLEM :
On Mac OS 10.14:
Create a modal dialog Stage and show it with showAndWait().
While the dialog is visible click on another application.
Result: Crash
Short of a fix in Java 8, would love a workaround recommendation
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
On Mac OS 10.14:
Create a modal dialog Stage and show it with showAndWait().
While the dialog is visible click on another application.
Result: Crash
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Dialog should lose focus but not crash the application
ACTUAL -
Crash dump snippet:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff7de7eb86 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff7df34c50 pthread_kill + 285
2 libsystem_c.dylib 0x00007fff7dde81c9 abort + 127
3 libc++abi.dylib 0x00007fff7b46b231 abort_message + 231
4 libc++abi.dylib 0x00007fff7b46b3cd default_terminate_handler() + 265
5 libobjc.A.dylib 0x00007fff7cc74c87 _objc_terminate() + 97
6 libc++abi.dylib 0x00007fff7b476dfe std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff7b46a86e __cxa_rethrow + 99
8 libobjc.A.dylib 0x00007fff7cc72b6e objc_exception_rethrow + 40
9 com.apple.CoreFoundation 0x00007fff50caad7f CFRunLoopRunSpecific + 618
10 com.apple.Foundation 0x00007fff5300b5da -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280
11 libglass.dylib 0x00000001292a26d8 +[GlassApplication enterNestedEventLoopWithEnv:] + 136
12 libglass.dylib 0x00000001292a313a Java_com_sun_glass_ui_mac_MacApplication__1enterNestedEventLoopImpl + 74
13 ??? 0x000000011042e9f4 0 + 4567788020
14 ??? 0x000000011041f040 0 + 4567724096
15 ??? 0x000000011041f040 0 + 4567724096
16 ??? 0x000000011041f040 0 + 4567724096
17 ??? 0x000000011041f040 0 + 4567724096
18 ??? 0x000000011041f040 0 + 4567724096
19 ??? 0x000000011041f2bd 0 + 4567724733
20 ??? 0x000000011041f2bd 0 + 4567724733
21 ??? 0x000000011041f2bd 0 + 4567724733
22 ??? 0x0000000110a4fc54 0 + 4574215252
23 ??? 0x000000011041f040 0 + 4567724096
24 ??? 0x000000011041f040 0 + 4567724096
25 ??? 0x000000011041f114 0 + 4567724308
26 ??? 0x0000000110a5eb3c 0 + 4574276412
27 ??? 0x000000011041f2bd 0 + 4567724733
28 ??? 0x000000011041f2bd 0 + 4567724733
29 ??? 0x0000000110a4fc54 0 + 4574215252
30 ??? 0x000000011041f040 0 + 4567724096
31 ??? 0x000000011041f040 0 + 4567724096
32 ??? 0x000000011041f114 0 + 4567724308
33 ??? 0x0000000110a5e6ac 0 + 4574275244
34 ??? 0x000000011041f302 0 + 4567724802
35 ??? 0x00000001104177a7 0 + 4567693223
36 libjvm.dylib 0x000000010d347bd2 JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710
37 libjvm.dylib 0x000000010d37ed61 jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) + 748
38 libjvm.dylib 0x000000010d37152f jni_CallVoidMethod + 363
39 libglass.dylib 0x00000001292abce6 -[GlassMenu action:] + 246
40 com.apple.AppKit 0x00007fff4e4fad03 -[NSApplication(NSResponder) sendAction:to:from:] + 312
41 com.apple.AppKit 0x00007fff4e557d73 -[NSMenuItem _corePerformAction] + 323
42 com.apple.AppKit 0x00007fff4e557ae6 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
43 com.apple.AppKit 0x00007fff4e5bc152 -[NSMenu performActionForItemAtIndex:] + 133
44 com.apple.AppKit 0x00007fff4e5bc0bd -[NSMenu _internalPerformActionForItemAtIndex:] + 94
45 com.apple.AppKit 0x00007fff4e5bbff4 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 371
46 com.apple.AppKit 0x00007fff4e52613d NSSLMMenuEventHandler + 902
47 com.apple.HIToolbox 0x00007fff4ff428d9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1502
48 com.apple.HIToolbox 0x00007fff4ff41c16 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 371
49 com.apple.HIToolbox 0x00007fff4ff5f1cd SendEventToEventTarget + 39
50 com.apple.HIToolbox 0x00007fff4ffb229f SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 380
51 com.apple.HIToolbox 0x00007fff4ffda9e6 SendMenuCommandWithContextAndModifiers + 49
52 com.apple.HIToolbox 0x00007fff4ffda998 SendMenuItemSelectedEvent + 191
53 com.apple.HIToolbox 0x00007fff4ffda87d FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 96
54 com.apple.HIToolbox 0x00007fff4ffdb239 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 603
55 com.apple.HIToolbox 0x00007fff4ffdaf4e _HandleMenuSelection2 + 453
56 com.apple.AppKit 0x00007fff4e20cb7d _NSHandleCarbonMenuEvent + 223
57 com.apple.AppKit 0x00007fff4e20c9e2 _DPSEventHandledByCarbon + 54
58 com.apple.AppKit 0x00007fff4e200a54 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2220
59 com.apple.AppKit 0x00007fff4e1fa75d -[NSApplication run] + 699
60 libglass.dylib 0x00000001292a251c -[GlassApplication runLoop:] + 1836
61 com.apple.Foundation 0x00007fff530a0cdb __NSThreadPerformPerform + 327
62 com.apple.CoreFoundation 0x00007fff50cc8405 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
63 com.apple.CoreFoundation 0x00007fff50cc83ab __CFRunLoopDoSource0 + 108
64 com.apple.CoreFoundation 0x00007fff50cabe51 __CFRunLoopDoSources0 + 195
65 com.apple.CoreFoundation 0x00007fff50cab3fa __CFRunLoopRun + 1219
66 com.apple.CoreFoundation 0x00007fff50caace4 CFRunLoopRunSpecific + 463
67 libjli.dylib 0x000000010d04d8fd CreateExecutionEnvironment + 871
68 libjli.dylib 0x000000010d049624 JLI_Launch + 1952
69 libpackager.dylib 0x000000010b5dd4c7 JavaLibrary::JavaVMCreate(unsigned long, char**) + 183
70 libpackager.dylib 0x000000010b5dadb1 JavaVirtualMachine::StartJVM() + 3457
71 libpackager.dylib 0x000000010b5d9f60 RunVM() + 16
72 libpackager.dylib 0x000000010b5e781f start_launcher + 1791
FREQUENCY : often
- duplicates
-
JDK-8211304 [macOS] Crash on focus loss from dialog on macOS 10.14 Mojave
- Resolved