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

Android Studio 2.x crashes with NPE at sun.lwawt.macosx.CAccessibility.getAccessibleIndexInParent

XMLWordPrintable

        FULL PRODUCT VERSION :
        java version "1.8.0_92"
        Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
        Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        OS X El Capitan 10.11.5

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        MacBook Pro (Retina, 15-inch, Mid 2014)
        Processor 2.8 GHz Intel Core i7
        Memory 16 GB 1600 MHz DDR3
        Graphics Intel Iris Pro 1536 MB


        A DESCRIPTION OF THE PROBLEM :
        Android Studio 2.x crashes consistently after a few minutes of use. simply navigating around a project, opening/closing files, is sufficient to produce a crash. i have not yet been able to find a deterministic way to cause a crash. it seems to happen randomly, but always within a few minutes (< 5min) of light usage.

        Android Studio 1.x does not suffer this problem.


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

        User Info: (null)

        0 CoreFoundation 0x00007fff9d6ff4f2 __exceptionPreprocess + 178
        1 libobjc.A.dylib 0x00007fff90b07f7e objc_exception_throw + 48
        2 CoreFoundation 0x00007fff9d6ff439 -[NSException raise] + 9
        3 JavaNativeFoundation 0x000000011a39351f JNFCallStaticIntMethod + 236
        4 libawt_lwawt.dylib 0x000000011c573deb +[JavaComponentAccessibility createWithAccessible:withEnv:withView:] + 76
        5 libawt_lwawt.dylib 0x000000011c57430b -[JavaComponentAccessibility accessibilityFocusedUIElement] + 194
        6 libawt_lwawt.dylib 0x000000011c5494f6 -[AWTView accessibilityFocusedUIElement] + 156
        7 AppKit 0x00007fff99a37c97 -[NSWindow(NSWindowAccessibility) accessibilityFocusedUIElement] + 118
        8 libawt_lwawt.dylib 0x000000011c574069 +[JavaComponentAccessibility postFocusChanged:] + 96
        9 Foundation 0x00007fff97a2cfde __NSThreadPerformPerform + 279
        10 CoreFoundation 0x00007fff9d694881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        11 CoreFoundation 0x00007fff9d673fbc __CFRunLoopDoSources0 + 556
        12 CoreFoundation 0x00007fff9d6734df __CFRunLoopRun + 927
        13 CoreFoundation 0x00007fff9d672ed8 CFRunLoopRunSpecific + 296
        14 HIToolbox 0x00007fff8ee21935 RunCurrentEventLoopInMode + 235
        15 HIToolbox 0x00007fff8ee2176f ReceiveNextEventCommon + 432
        16 HIToolbox 0x00007fff8ee215af _BlockUntilNextEventMatchingListInModeWithFilter + 71
        17 AppKit 0x00007fff99256df6 _DPSNextEvent + 1067
        18 AppKit 0x00007fff99256226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
        19 libosxapp.dylib 0x000000011d8a33aa -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
        20 AppKit 0x00007fff9924ad80 -[NSApplication run] + 682
        21 libosxapp.dylib 0x000000011d8a314d +[NSApplicationAWT runAWTLoopWithApp:] + 156
        22 libawt_lwawt.dylib 0x000000011c5884b3 -[AWTStarter starter:] + 905
        23 Foundation 0x00007fff97a2cfde __NSThreadPerformPerform + 279
        24 CoreFoundation 0x00007fff9d694881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        25 CoreFoundation 0x00007fff9d673fbc __CFRunLoopDoSources0 + 556
        26 CoreFoundation 0x00007fff9d6734df __CFRunLoopRun + 927
        27 CoreFoundation 0x00007fff9d672ed8 CFRunLoopRunSpecific + 296
        28 studio 0x00000001000012f3 main + 357
        29 studio 0x000000010000116c start + 52
        30 ??? 0x0000000000000001 0x0 + 1

        REPRODUCIBILITY :
        This bug can be reproduced always.

              ant Anton Tarasov (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: