JDK-8166758 : Semi regular JVM crashes from IntelliJ under macOs Sierra
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.accessibility
  • Affected Version: 8u102
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-09-26
  • Updated: 2016-10-19
  • Resolved: 2016-10-19
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

also occurring using

java version "1.8.0_112-ea"
Java(TM) SE Runtime Environment (build 1.8.0_112-ea-b04)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b04, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Apple macOs Sierra - 10.12

A DESCRIPTION OF THE PROBLEM :
Running IntelliJ IDEA 2016.3 EAP builds under the newly released macOs Sierra OS seems to crash intermittently. This doesn't happen all the time, but seems to be in response to certain actions within the application - tho at this time I've noticed exactly what I'm doing to trigger the crash.



STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
I'm not sure...  as yet I've not isolated just what combination of keystrokes when editing code is triggering this.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No core JVM crashes.
ACTUAL -
Core JVM crashes.


ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception Name: JavaNativeException
Description: java.lang.NullPointerException
    at sun.lwawt.macosx.CAccessibility.getAccessibleIndexInParent(CAccessibility.java:289)

User Info: (null)

0   CoreFoundation                      0x00007fff819ef52b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x00007fff960c7cad objc_exception_throw + 48
2   CoreFoundation                      0x00007fff819ef479 -[NSException raise] + 9
3   JavaNativeFoundation                0x000000011504464d JNFCallStaticIntMethod + 236
4   libawt_lwawt.dylib                  0x000000011605751a +[JavaComponentAccessibility createWithAccessible:withEnv:withView:] + 76
5   libawt_lwawt.dylib                  0x0000000116057aa1 -[JavaComponentAccessibility accessibilityFocusedUIElement] + 198
6   libawt_lwawt.dylib                  0x000000011602c472 -[AWTView accessibilityFocusedUIElement] + 156
7   AppKit                              0x00007fff7fe35417 -[NSWindow(NSWindowAccessibility) accessibilityFocusedUIElement] + 124
8   libawt_lwawt.dylib                  0x00000001160577fb +[JavaComponentAccessibility postFocusChanged:] + 96
9   Foundation                          0x00007fff833b1f2a __NSThreadPerformPerform + 326
10  CoreFoundation                      0x00007fff81985551 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
11  CoreFoundation                      0x00007fff819666bd __CFRunLoopDoSources0 + 557
12  CoreFoundation                      0x00007fff81965bb6 __CFRunLoopRun + 934
13  CoreFoundation                      0x00007fff819655b4 CFRunLoopRunSpecific + 420
14  HIToolbox                           0x00007fff80f06f6c RunCurrentEventLoopInMode + 240
15  HIToolbox                           0x00007fff80f06da1 ReceiveNextEventCommon + 432
16  HIToolbox                           0x00007fff80f06bd6 _BlockUntilNextEventMatchingListInModeWithFilter + 71
17  AppKit                              0x00007fff7f5fd5f5 _DPSNextEvent + 1093
18  AppKit                              0x00007fff7fd0d8eb -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
19  libosxapp.dylib                     0x00000001160df3aa -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
20  AppKit                              0x00007fff7f5f1fbd -[NSApplication run] + 926
21  libosxapp.dylib                     0x00000001160df14d +[NSApplicationAWT runAWTLoopWithApp:] + 156
22  libawt_lwawt.dylib                  0x000000011606c15f -[AWTStarter starter:] + 905
23  Foundation                          0x00007fff833b1f2a __NSThreadPerformPerform + 326
24  CoreFoundation                      0x00007fff81985551 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
25  CoreFoundation                      0x00007fff819666bd __CFRunLoopDoSources0 + 557
26  CoreFoundation                      0x00007fff81965bb6 __CFRunLoopRun + 934
27  CoreFoundation                      0x00007fff819655b4 CFRunLoopRunSpecific + 420
28  idea                                0x0000000108b07643 parkRunLoop + 131
29  idea                                0x0000000108b074f9 main + 153
30  libdyld.dylib                       0x00007fff969a5255 start + 1


REPRODUCIBILITY :
This bug can be reproduced occasionally.


Comments
This will most likely be fixed by JDK-8165829.
27-09-2016

Though it's an intermittent one, suggested submitter to try with 9ea latest build and also requested to send us a reproducer to reproduce the issue.
27-09-2016