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

[macosx] Pressing a modifier key results in NullPointerException

    Details

    • CPU:
      x86
    • OS:
      os_x

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_40-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.40-b18, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Darwin 14.1.0 Darwin Kernel Version 14.1.0: Thu Nov 13 18:36:56 PST 2014; root:xnu-2782.10.65~2/RELEASE_X86_64 x86_64
      (Any Yosemite release)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Using a Dvorak keyboard layout, but I think it happens with QWERTY as well.

      A DESCRIPTION OF THE PROBLEM :
      Pressing any modifier key (Command, Shift, Ctrl) causes a NullPointerException and the standard crash dialog. If you choose 'Continue' from the crash dialog, the process does recover successfully until the next modifier key is pressed.


      ADDITIONAL REGRESSION INFORMATION:
      This started with the earliest developer releases of Yosemite.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Open a standalone Swing application from the browser plugin. Press any modifier key.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :

      Process: java [44214]
      Path: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
      Identifier: net.java.openjdk.cmd
      Version: 1.0 (1.0)
      Code Type: X86-64 (Native)
      Parent Process: Google Chrome Helper EH [44142]
      Responsible: Google Chrome [44057]
      User ID: 501

      Date/Time: 2014-11-22 09:33:23.660 -0600
      OS Version: Mac OS X 10.10.2 (14C68k)
      Report Version: 11


      Crashed Thread: 0 AppKit Thread Dispatch queue: com.apple.main-thread

      Exception Type: EXC_BAD_INSTRUCTION (SIGABRT)
      Exception Codes: 0x0000000000000001, 0x0000000000000000

      Application Specific Information:
      Crashing on exception: java.lang.NullPointerException
      at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1078)
      at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1073)
      at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1068)
      at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)
      at java.awt.EventQueue.invokeLater(EventQueue.java:1257)
      at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source)
       
      abort() called

      Application Specific Backtrace 1:
      0 CoreFoundation 0x00007fff948c166c __exceptionPreprocess + 172
      1 libobjc.A.dylib 0x00007fff966da76e objc_exception_throw + 43
      2 CoreFoundation 0x00007fff948c1209 -[NSException raise] + 9
      3 JavaNativeFoundation 0x000000012165eeb0 JNFCallStaticVoidMethod + 233
      4 libnpjp2.dylib 0x0000000128891dcc flagsChanged + 72
      5 CoreGraphics 0x00007fff9547dfef processEventTapData + 619
      6 CoreGraphics 0x00007fff9547dc61 _CGYPostEventTapData + 193
      7 CoreGraphics 0x00007fff95251c96 _XPostEventTapData + 89
      8 CoreGraphics 0x00007fff95251d7f CGYEventTap_server + 86
      9 CoreGraphics 0x00007fff9547dd49 eventTapMessageHandler + 46
      10 CoreFoundation 0x00007fff947dfa2d __CFMachPortPerform + 285
      11 CoreFoundation 0x00007fff947df8f9 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
      12 CoreFoundation 0x00007fff947df86b __CFRunLoopDoSource1 + 475
      13 CoreFoundation 0x00007fff947d13e7 __CFRunLoopRun + 2375
      14 CoreFoundation 0x00007fff947d0858 CFRunLoopRunSpecific + 296
      15 HIToolbox 0x00007fff963712df RunCurrentEventLoopInMode + 235
      16 HIToolbox 0x00007fff9637105a ReceiveNextEventCommon + 431
      17 HIToolbox 0x00007fff96370e9b _BlockUntilNextEventMatchingListInModeWithFilter + 71
      18 AppKit 0x00007fff902b2cf1 _DPSNextEvent + 964
      19 AppKit 0x00007fff902b24a0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
      20 libosxapp.dylib 0x0000000123b1442a -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
      21 AppKit 0x00007fff902a6463 -[NSApplication run] + 594
      22 libosxapp.dylib 0x0000000123b1423e +[NSApplicationAWT runAWTLoopWithApp:] + 156
      23 libawt_lwawt.dylib 0x0000000123aa37d7 -[AWTStarter starter:] + 905
      24 Foundation 0x00007fff9a9ead6c __NSThreadPerformPerform + 293
      25 CoreFoundation 0x00007fff947df681 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      26 CoreFoundation 0x00007fff947d180d __CFRunLoopDoSources0 + 269
      27 CoreFoundation 0x00007fff947d0e3f __CFRunLoopRun + 927
      28 CoreFoundation 0x00007fff947d0858 CFRunLoopRunSpecific + 296
      29 java 0x00000001038a0480 CreateExecutionEnvironment + 871
      30 java 0x000000010389c20c JLI_Launch + 1952
      31 java 0x00000001038a24dd main + 101
      32 java 0x000000010389ba64 start + 52
      33 ??? 0x000000000000000e 0x0 + 14

      Thread 0 Crashed:: AppKit Thread Dispatch queue: com.apple.main-thread
      0 libsystem_kernel.dylib 0x00007fff940ad286 __pthread_kill + 10
      1 libsystem_c.dylib 0x00007fff8dd9fb53 abort + 129
      2 libjvm.dylib 0x0000000104e6c91b os::abort(bool) + 25
      3 libjvm.dylib 0x0000000104f8cc3e VMError::report_and_die() + 2250
      4 libjvm.dylib 0x0000000104e6e546 JVM_handle_bsd_signal + 1131
      5 libjvm.dylib 0x0000000104e6a823 signalHandler(int, __siginfo*, void*) + 47
      6 libsystem_platform.dylib 0x00007fff91f31f1a _sigtramp + 26
      7 com.apple.AppKit 0x00007fff905f4a70 -[NSApplication _crashOnException:] + 109
      8 com.apple.AppKit 0x00007fff905f4d71 -[NSApplication _showException:] + 722
      9 com.apple.AppKit 0x00007fff902a658c -[NSApplication run] + 891
      10 libosxapp.dylib 0x0000000123b1423e +[NSApplicationAWT runAWTLoopWithApp:] + 156
      11 libawt_lwawt.dylib 0x0000000123aa37d7 -[AWTStarter starter:] + 905
      12 com.apple.Foundation 0x00007fff9a9ead6c __NSThreadPerformPerform + 293
      13 com.apple.CoreFoundation 0x00007fff947df681 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      14 com.apple.CoreFoundation 0x00007fff947d180d __CFRunLoopDoSources0 + 269
      15 com.apple.CoreFoundation 0x00007fff947d0e3f __CFRunLoopRun + 927
      16 com.apple.CoreFoundation 0x00007fff947d0858 CFRunLoopRunSpecific + 296
      17 java 0x00000001038a0480 CreateExecutionEnvironment + 871
      18 java 0x000000010389c20c JLI_Launch + 1952
      19 java 0x00000001038a24dd main + 101
      20 java 0x000000010389ba64 start + 52

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Entering any mixed-case text requires the use of copy-and-paste using only the mouse by entering the correct text in some other application then pasting it into the Swing application.

        Activity

        Hide
        scfitch Stephen Fitch added a comment - - edited
        JI Team to ask filer if the issue reproduces with JDK 8uLatest and 9.
        Show
        scfitch Stephen Fitch added a comment - - edited JI Team to ask filer if the issue reproduces with JDK 8uLatest and 9.
        Hide
        pardesha Pardeep Sharma added a comment -
        Received following response from the submitter:
        ======================================================================
        On 10/9/2015 5:26 PM, .......... wrote:

        .............,

        I can continue to reproduce the issue with the latest builds. Below I've included stack traces I produced this morning from 1.8.0_60-b27 and 1.9.0-ea-b83 (the latter is slightly more complete, representing a full crash dump after having pressed "Crash" on the "Internal Error" dialog; the former is simply from information reported in that dialog). At least one variable has changed: I am now on OS X 10.11 El Capitan, but I believe the previous report was filed from Yosemite.

        Thank you, ........
        ******************************************************************************************************************
        Java Plug-in 11.60.2.27
        Using JRE version 1.8.0_60-b27 Java HotSpot(TM)

        Exception Name: JavaNativeException
        Description: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1090)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1085)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1080)
        at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)
        at java.awt.EventQueue.invokeLater(EventQueue.java:1264)
        at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source)

        User Info: (null)

        0 CoreFoundation 0x00007fff867c5bd2 __exceptionPreprocess + 178
        1 libobjc.A.dylib 0x00007fff8ce72dd4 objc_exception_throw + 48
        2 CoreFoundation 0x00007fff867c5b19 -[NSException raise] + 9
        3 JavaNativeFoundation 0x0000000125b13eec JNFCallStaticVoidMethod + 233
        4 libnpjp2.dylib 0x000000012b3fbd14 flagsChanged + 72
        5 CoreGraphics 0x00007fff87d6b155 processEventTapData + 641
        6 CoreGraphics 0x00007fff87c7a0b9 _XPostEventTapData + 269
        7 CoreGraphics 0x00007fff87d6ae7e eventTapMessageHandler + 133
        8 CoreFoundation 0x00007fff86742f8c __CFMachPortPerform + 252
        9 CoreFoundation 0x00007fff86742e79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
        10 CoreFoundation 0x00007fff86742de9 __CFRunLoopDoSource1 + 473
        11 CoreFoundation 0x00007fff8673a81b __CFRunLoopRun + 2171
        12 CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296
        13 HIToolbox 0x00007fff95c57d55 RunCurrentEventLoopInMode + 235
        14 HIToolbox 0x00007fff95c57b8f ReceiveNextEventCommon + 432
        15 HIToolbox 0x00007fff95c579cf _BlockUntilNextEventMatchingListInModeWithFilter + 71
        16 AppKit 0x00007fff8c284236 _DPSNextEvent + 1067
        17 AppKit 0x00007fff8c283665 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
        18 libosxapp.dylib 0x00000001277a53aa -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
        19 AppKit 0x00007fff8c2781c8 -[NSApplication run] + 682
        20 libosxapp.dylib 0x00000001277a514d +[NSApplicationAWT runAWTLoopWithApp:] + 156
        21 libawt_lwawt.dylib 0x0000000127732517 -[AWTStarter starter:] + 905
        22 Foundation 0x00007fff891a654e __NSThreadPerformPerform + 279
        23 CoreFoundation 0x00007fff8675b621 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        24 CoreFoundation 0x00007fff8673ae1c __CFRunLoopDoSources0 + 556
        25 CoreFoundation 0x00007fff8673a33f __CFRunLoopRun + 927
        26 CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296
        27 java 0x00000001087e4463 CreateExecutionEnvironment + 871
        28 java 0x00000001087e01ac JLI_Launch + 1952
        29 java 0x00000001087e64c0 main + 101
        30 java 0x00000001087dfa04 start + 52
        31 ??? 0x000000000000000e 0x0 + 14

        *********************************************************************************************************************
        Java Plug-in 12.0.2 x86_64
        Using JRE version 1.9.0-ea-b83 Java HotSpot(TM)

        Crashed Thread: 0 Dispatch queue: com.apple.main-thread

        Exception Type: EXC_BAD_INSTRUCTION (SIGABRT)
        Exception Codes: 0x0000000000000001, 0x0000000000000000
        Exception Note: EXC_CORPSE_NOTIFY

        Application Specific Information:
        Crashing on exception: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1026)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1021)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1016)
        at java.awt.Toolkit.getEventQueue(Toolkit.java:1458)
        at java.awt.EventQueue.invokeLater(EventQueue.java:1268)
        at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source)
         abort() called

        Application Specific Backtrace 1:
        0 CoreFoundation 0x00007fff867c5bd2 __exceptionPreprocess + 178
        1 libobjc.A.dylib 0x00007fff8ce72dd4 objc_exception_throw + 48
        2 CoreFoundation 0x00007fff867c5b19 -[NSException raise] + 9
        3 JavaNativeFoundation 0x000000012abb0eec JNFCallStaticVoidMethod + 233
        4 libnpjp2.dylib 0x00000001329f5038 flagsChanged + 72
        5 CoreGraphics 0x00007fff87d6b155 processEventTapData + 641
        6 CoreGraphics 0x00007fff87c7a0b9 _XPostEventTapData + 269
        7 CoreGraphics 0x00007fff87d6ae7e eventTapMessageHandler + 133
        8 CoreFoundation 0x00007fff86742f8c __CFMachPortPerform + 252
        9 CoreFoundation 0x00007fff86742e79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
        10 CoreFoundation 0x00007fff86742de9 __CFRunLoopDoSource1 + 473
        11 CoreFoundation 0x00007fff8673a81b __CFRunLoopRun + 2171
        12 CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296
        13 HIToolbox 0x00007fff95c57d55 RunCurrentEventLoopInMode + 235
        14 HIToolbox 0x00007fff95c57b8f ReceiveNextEventCommon + 432
        15 HIToolbox 0x00007fff95c579cf _BlockUntilNextEventMatchingListInModeWithFilter + 71
        16 AppKit 0x00007fff8c284236 _DPSNextEvent + 1067
        17 AppKit 0x00007fff8c283665 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
        18 libosxapp.dylib 0x000000012e96b260 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
        19 AppKit 0x00007fff8c2781c8 -[NSApplication run] + 682
        20 libosxapp.dylib 0x000000012e96b05d +[NSApplicationAWT runAWTLoopWithApp:] + 157
        21 libawt_lwawt.dylib 0x000000012e8ec0dc +[AWTStarter starter:headless:] + 836
        22 JavaNativeFoundation 0x000000012abb3d60 +[JNFRunLoop _performCopiedBlock:] + 17
        23 Foundation 0x00007fff891a654e __NSThreadPerformPerform + 279
        24 CoreFoundation 0x00007fff8675b621 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        25 CoreFoundation 0x00007fff8673ae1c __CFRunLoopDoSources0 + 556
        26 CoreFoundation 0x00007fff8673a33f __CFRunLoopRun + 927
        27 CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296
        28 java 0x00000001083cb021 CreateExecutionEnvironment + 884
        29 java 0x00000001083c7a9f JLI_Launch + 1567
        30 java 0x00000001083cda84 main + 289
        31 java 0x00000001083c6d54 start + 52
        32 ??? 0x000000000000000e 0x0 + 14

        Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
        0 libsystem_kernel.dylib 0x00007fff8df640ae __pthread_kill + 10
        1 libsystem_pthread.dylib 0x00007fff86c3f500 pthread_kill + 90
        2 libsystem_c.dylib 0x00007fff9278c37b abort + 129
        3 libjvm.dylib 0x0000000109cd7506 os::abort(bool, void*, void*) + 22
        4 libjvm.dylib 0x0000000109dfd0df VMError::report_and_die() + 2317
        5 libjvm.dylib 0x0000000109cdb9c8 JVM_handle_bsd_signal + 451
        6 libjvm.dylib 0x0000000109cd914b signalHandler(int, __siginfo*, void*) + 45
        7 libsystem_platform.dylib 0x00007fff90cba52a _sigtramp + 26
        8 ??? 0x00007fff57837e38 0 + 140734661623352
        9 com.apple.AppKit 0x00007fff8c6d2df6 -[NSApplication _showException:] + 717
        10 com.apple.AppKit 0x00007fff8c2782de -[NSApplication run] + 960
        11 libosxapp.dylib 0x000000012e96b05d +[NSApplicationAWT runAWTLoopWithApp:] + 157
        12 libawt_lwawt.dylib 0x000000012e8ec0dc +[AWTStarter starter:headless:] + 836
        13 JavaNativeFoundation 0x000000012abb3d60 +[JNFRunLoop _performCopiedBlock:] + 17
        14 com.apple.Foundation 0x00007fff891a654e __NSThreadPerformPerform + 279
        15 com.apple.CoreFoundation 0x00007fff8675b621 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        16 com.apple.CoreFoundation 0x00007fff8673ae1c __CFRunLoopDoSources0 + 556
        17 com.apple.CoreFoundation 0x00007fff8673a33f __CFRunLoopRun + 927
        18 com.apple.CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296
        19 java 0x00000001083cb021 CreateExecutionEnvironment + 884
        20 java 0x00000001083c7a9f JLI_Launch + 1567
        21 java 0x00000001083cda84 main + 289
        22 java 0x00000001083c6d54 start + 52
        ===================================================================================
        Moving this up for further analyzing.
        Show
        pardesha Pardeep Sharma added a comment - Received following response from the submitter: ====================================================================== On 10/9/2015 5:26 PM, .......... wrote: ............., I can continue to reproduce the issue with the latest builds. Below I've included stack traces I produced this morning from 1.8.0_60-b27 and 1.9.0-ea-b83 (the latter is slightly more complete, representing a full crash dump after having pressed "Crash" on the "Internal Error" dialog; the former is simply from information reported in that dialog). At least one variable has changed: I am now on OS X 10.11 El Capitan, but I believe the previous report was filed from Yosemite. Thank you, ........ ****************************************************************************************************************** Java Plug-in 11.60.2.27 Using JRE version 1.8.0_60-b27 Java HotSpot(TM) Exception Name: JavaNativeException Description: java.lang.NullPointerException at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1090) at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1085) at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1080) at java.awt.Toolkit.getEventQueue(Toolkit.java:1734) at java.awt.EventQueue.invokeLater(EventQueue.java:1264) at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source) User Info: (null) 0 CoreFoundation 0x00007fff867c5bd2 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff8ce72dd4 objc_exception_throw + 48 2 CoreFoundation 0x00007fff867c5b19 -[NSException raise] + 9 3 JavaNativeFoundation 0x0000000125b13eec JNFCallStaticVoidMethod + 233 4 libnpjp2.dylib 0x000000012b3fbd14 flagsChanged + 72 5 CoreGraphics 0x00007fff87d6b155 processEventTapData + 641 6 CoreGraphics 0x00007fff87c7a0b9 _XPostEventTapData + 269 7 CoreGraphics 0x00007fff87d6ae7e eventTapMessageHandler + 133 8 CoreFoundation 0x00007fff86742f8c __CFMachPortPerform + 252 9 CoreFoundation 0x00007fff86742e79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41 10 CoreFoundation 0x00007fff86742de9 __CFRunLoopDoSource1 + 473 11 CoreFoundation 0x00007fff8673a81b __CFRunLoopRun + 2171 12 CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296 13 HIToolbox 0x00007fff95c57d55 RunCurrentEventLoopInMode + 235 14 HIToolbox 0x00007fff95c57b8f ReceiveNextEventCommon + 432 15 HIToolbox 0x00007fff95c579cf _BlockUntilNextEventMatchingListInModeWithFilter + 71 16 AppKit 0x00007fff8c284236 _DPSNextEvent + 1067 17 AppKit 0x00007fff8c283665 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 18 libosxapp.dylib 0x00000001277a53aa -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124 19 AppKit 0x00007fff8c2781c8 -[NSApplication run] + 682 20 libosxapp.dylib 0x00000001277a514d +[NSApplicationAWT runAWTLoopWithApp:] + 156 21 libawt_lwawt.dylib 0x0000000127732517 -[AWTStarter starter:] + 905 22 Foundation 0x00007fff891a654e __NSThreadPerformPerform + 279 23 CoreFoundation 0x00007fff8675b621 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 24 CoreFoundation 0x00007fff8673ae1c __CFRunLoopDoSources0 + 556 25 CoreFoundation 0x00007fff8673a33f __CFRunLoopRun + 927 26 CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296 27 java 0x00000001087e4463 CreateExecutionEnvironment + 871 28 java 0x00000001087e01ac JLI_Launch + 1952 29 java 0x00000001087e64c0 main + 101 30 java 0x00000001087dfa04 start + 52 31 ??? 0x000000000000000e 0x0 + 14 ********************************************************************************************************************* Java Plug-in 12.0.2 x86_64 Using JRE version 1.9.0-ea-b83 Java HotSpot(TM) Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_INSTRUCTION (SIGABRT) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: Crashing on exception: java.lang.NullPointerException at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1026) at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1021) at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1016) at java.awt.Toolkit.getEventQueue(Toolkit.java:1458) at java.awt.EventQueue.invokeLater(EventQueue.java:1268) at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source)  abort() called Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff867c5bd2 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff8ce72dd4 objc_exception_throw + 48 2 CoreFoundation 0x00007fff867c5b19 -[NSException raise] + 9 3 JavaNativeFoundation 0x000000012abb0eec JNFCallStaticVoidMethod + 233 4 libnpjp2.dylib 0x00000001329f5038 flagsChanged + 72 5 CoreGraphics 0x00007fff87d6b155 processEventTapData + 641 6 CoreGraphics 0x00007fff87c7a0b9 _XPostEventTapData + 269 7 CoreGraphics 0x00007fff87d6ae7e eventTapMessageHandler + 133 8 CoreFoundation 0x00007fff86742f8c __CFMachPortPerform + 252 9 CoreFoundation 0x00007fff86742e79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41 10 CoreFoundation 0x00007fff86742de9 __CFRunLoopDoSource1 + 473 11 CoreFoundation 0x00007fff8673a81b __CFRunLoopRun + 2171 12 CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296 13 HIToolbox 0x00007fff95c57d55 RunCurrentEventLoopInMode + 235 14 HIToolbox 0x00007fff95c57b8f ReceiveNextEventCommon + 432 15 HIToolbox 0x00007fff95c579cf _BlockUntilNextEventMatchingListInModeWithFilter + 71 16 AppKit 0x00007fff8c284236 _DPSNextEvent + 1067 17 AppKit 0x00007fff8c283665 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 18 libosxapp.dylib 0x000000012e96b260 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 122 19 AppKit 0x00007fff8c2781c8 -[NSApplication run] + 682 20 libosxapp.dylib 0x000000012e96b05d +[NSApplicationAWT runAWTLoopWithApp:] + 157 21 libawt_lwawt.dylib 0x000000012e8ec0dc +[AWTStarter starter:headless:] + 836 22 JavaNativeFoundation 0x000000012abb3d60 +[JNFRunLoop _performCopiedBlock:] + 17 23 Foundation 0x00007fff891a654e __NSThreadPerformPerform + 279 24 CoreFoundation 0x00007fff8675b621 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 25 CoreFoundation 0x00007fff8673ae1c __CFRunLoopDoSources0 + 556 26 CoreFoundation 0x00007fff8673a33f __CFRunLoopRun + 927 27 CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296 28 java 0x00000001083cb021 CreateExecutionEnvironment + 884 29 java 0x00000001083c7a9f JLI_Launch + 1567 30 java 0x00000001083cda84 main + 289 31 java 0x00000001083c6d54 start + 52 32 ??? 0x000000000000000e 0x0 + 14 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff8df640ae __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff86c3f500 pthread_kill + 90 2 libsystem_c.dylib 0x00007fff9278c37b abort + 129 3 libjvm.dylib 0x0000000109cd7506 os::abort(bool, void*, void*) + 22 4 libjvm.dylib 0x0000000109dfd0df VMError::report_and_die() + 2317 5 libjvm.dylib 0x0000000109cdb9c8 JVM_handle_bsd_signal + 451 6 libjvm.dylib 0x0000000109cd914b signalHandler(int, __siginfo*, void*) + 45 7 libsystem_platform.dylib 0x00007fff90cba52a _sigtramp + 26 8 ??? 0x00007fff57837e38 0 + 140734661623352 9 com.apple.AppKit 0x00007fff8c6d2df6 -[NSApplication _showException:] + 717 10 com.apple.AppKit 0x00007fff8c2782de -[NSApplication run] + 960 11 libosxapp.dylib 0x000000012e96b05d +[NSApplicationAWT runAWTLoopWithApp:] + 157 12 libawt_lwawt.dylib 0x000000012e8ec0dc +[AWTStarter starter:headless:] + 836 13 JavaNativeFoundation 0x000000012abb3d60 +[JNFRunLoop _performCopiedBlock:] + 17 14 com.apple.Foundation 0x00007fff891a654e __NSThreadPerformPerform + 279 15 com.apple.CoreFoundation 0x00007fff8675b621 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 16 com.apple.CoreFoundation 0x00007fff8673ae1c __CFRunLoopDoSources0 + 556 17 com.apple.CoreFoundation 0x00007fff8673a33f __CFRunLoopRun + 927 18 com.apple.CoreFoundation 0x00007fff86739d38 CFRunLoopRunSpecific + 296 19 java 0x00000001083cb021 CreateExecutionEnvironment + 884 20 java 0x00000001083c7a9f JLI_Launch + 1567 21 java 0x00000001083cda84 main + 289 22 java 0x00000001083c6d54 start + 52 =================================================================================== Moving this up for further analyzing.
        Hide
        mhalder Manajit Halder added a comment -
        The problem is reproduced.

        After running a simple Swing Applet program any of the Key press (caps lock, shift, fn, control, option and command) generates the java.lang.NullPointerException exception.

        The exception is generated even if the keys are pressed on any other application as long as the Applet is running.

        Dec 15 21:33:57 mahalder-Mac java[1314]: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1090)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1085)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1080)
        at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)
        at java.awt.EventQueue.invokeLater(EventQueue.java:1264)
        at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source)
        Dec 15 21:33:57 mahalder-Mac java[1314]: (
        0 CoreFoundation 0x00007fff869b803c __exceptionPreprocess + 172
        1 libobjc.A.dylib 0x00007fff8222976e objc_exception_throw + 43
        2 CoreFoundation 0x00007fff869b7bd9 -[NSException raise] + 9
        3 JavaNativeFoundation 0x0000000123314eb0 JNFCallStaticVoidMethod + 233
        4 libnpjp2.dylib 0x000000012b508d14 flagsChanged + 72
        5 CoreGraphics 0x00007fff8c8c0bfc processEventTapData + 714
        6 CoreGraphics 0x00007fff8c8c080f _CGYPostEventTapData + 221
        7 CoreGraphics 0x00007fff8cbd9a14 _XPostEventTapData + 89
        8 CoreGraphics 0x00007fff8cbd9afd CGYEventTap_server + 86
        9 CoreGraphics 0x00007fff8c8c08f7 eventTapMessageHandler + 46
        10 CoreFoundation 0x00007fff868d4dad __CFMachPortPerform + 285
        11 CoreFoundation 0x00007fff868d4c79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
        12 CoreFoundation 0x00007fff868d4beb __CFRunLoopDoSource1 + 475
        13 CoreFoundation 0x00007fff868c6767 __CFRunLoopRun + 2375
        14 CoreFoundation 0x00007fff868c5bd8 CFRunLoopRunSpecific + 296
        15 HIToolbox 0x00007fff8889a56f RunCurrentEventLoopInMode + 235
        16 HIToolbox 0x00007fff8889a2ea ReceiveNextEventCommon + 431
        17 HIToolbox 0x00007fff8889a12b _BlockUntilNextEventMatchingListInModeWithFilter + 71
        18 AppKit 0x00007fff84c698ab _DPSNextEvent + 978
        19 AppKit 0x00007fff84c68e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
        20 libosxapp.dylib 0x000000012577f3aa -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
        21 AppKit 0x00007fff84c5eaf3 -[NSApplication run] + 594
        22 libosxapp.dylib 0x000000012577f14d +[NSApplicationAWT runAWTLoopWithApp:] + 156
        23 libawt_lwawt.dylib 0x000000012570c55b -[AWTStarter starter:] + 905
        24 Foundation 0x00007fff8492ddd0 __NSThreadPerformPerform + 293
        25 CoreFoundation 0x00007fff868d4a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        26 CoreFoundation 0x00007fff868c6b8d __CFRunLoopDoSources0 + 269
        27 CoreFoundation 0x00007fff868c61bf __CFRunLoopRun + 927
        28 CoreFoundation 0x00007fff868c5bd8 CFRunLoopRunSpecific + 296
        29 java 0x0000000106dc1463 CreateExecutionEnvironment + 871
        30 java 0x0000000106dbd1ac JLI_Launch + 1952
        31 java 0x0000000106dc34c0 main + 101
        32 java 0x0000000106dbca04 start + 52

        Show
        mhalder Manajit Halder added a comment - The problem is reproduced. After running a simple Swing Applet program any of the Key press (caps lock, shift, fn, control, option and command) generates the java.lang.NullPointerException exception. The exception is generated even if the keys are pressed on any other application as long as the Applet is running. Dec 15 21:33:57 mahalder-Mac java[1314]: java.lang.NullPointerException at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1090) at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1085) at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1080) at java.awt.Toolkit.getEventQueue(Toolkit.java:1734) at java.awt.EventQueue.invokeLater(EventQueue.java:1264) at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source) Dec 15 21:33:57 mahalder-Mac java[1314]: ( 0 CoreFoundation 0x00007fff869b803c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8222976e objc_exception_throw + 43 2 CoreFoundation 0x00007fff869b7bd9 -[NSException raise] + 9 3 JavaNativeFoundation 0x0000000123314eb0 JNFCallStaticVoidMethod + 233 4 libnpjp2.dylib 0x000000012b508d14 flagsChanged + 72 5 CoreGraphics 0x00007fff8c8c0bfc processEventTapData + 714 6 CoreGraphics 0x00007fff8c8c080f _CGYPostEventTapData + 221 7 CoreGraphics 0x00007fff8cbd9a14 _XPostEventTapData + 89 8 CoreGraphics 0x00007fff8cbd9afd CGYEventTap_server + 86 9 CoreGraphics 0x00007fff8c8c08f7 eventTapMessageHandler + 46 10 CoreFoundation 0x00007fff868d4dad __CFMachPortPerform + 285 11 CoreFoundation 0x00007fff868d4c79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41 12 CoreFoundation 0x00007fff868d4beb __CFRunLoopDoSource1 + 475 13 CoreFoundation 0x00007fff868c6767 __CFRunLoopRun + 2375 14 CoreFoundation 0x00007fff868c5bd8 CFRunLoopRunSpecific + 296 15 HIToolbox 0x00007fff8889a56f RunCurrentEventLoopInMode + 235 16 HIToolbox 0x00007fff8889a2ea ReceiveNextEventCommon + 431 17 HIToolbox 0x00007fff8889a12b _BlockUntilNextEventMatchingListInModeWithFilter + 71 18 AppKit 0x00007fff84c698ab _DPSNextEvent + 978 19 AppKit 0x00007fff84c68e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346 20 libosxapp.dylib 0x000000012577f3aa -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124 21 AppKit 0x00007fff84c5eaf3 -[NSApplication run] + 594 22 libosxapp.dylib 0x000000012577f14d +[NSApplicationAWT runAWTLoopWithApp:] + 156 23 libawt_lwawt.dylib 0x000000012570c55b -[AWTStarter starter:] + 905 24 Foundation 0x00007fff8492ddd0 __NSThreadPerformPerform + 293 25 CoreFoundation 0x00007fff868d4a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 26 CoreFoundation 0x00007fff868c6b8d __CFRunLoopDoSources0 + 269 27 CoreFoundation 0x00007fff868c61bf __CFRunLoopRun + 927 28 CoreFoundation 0x00007fff868c5bd8 CFRunLoopRunSpecific + 296 29 java 0x0000000106dc1463 CreateExecutionEnvironment + 871 30 java 0x0000000106dbd1ac JLI_Launch + 1952 31 java 0x0000000106dc34c0 main + 101 32 java 0x0000000106dbca04 start + 52
        Hide
        mhalder Manajit Halder added a comment -
        Problem was reproduced on:

        OS X10.10.5
        Keyboard layout: U.S. Extended
         
        Show
        mhalder Manajit Halder added a comment - Problem was reproduced on: OS X10.10.5 Keyboard layout: U.S. Extended  
        Hide
        vdyakov Victor Dyakov added a comment -
        might be a target to fix in 9
        Show
        vdyakov Victor Dyakov added a comment - might be a target to fix in 9
        Hide
        prr Philip Race added a comment -
        The problem is that these days AppContext.getAppContext() may return null.
        It was never designed with that in mind and when it was changed to do so
        the change did not do the right thing and go find the many (many) places in
        the JDK that relied on the contract that it never returned null.
        We now have 36 such regression bugs.
        Show
        prr Philip Race added a comment - The problem is that these days AppContext.getAppContext() may return null. It was never designed with that in mind and when it was changed to do so the change did not do the right thing and go find the many (many) places in the JDK that relied on the contract that it never returned null. We now have 36 such regression bugs.
        Hide
        serb Sergey Bylokhov added a comment -
        This is deployment code. similar stack trace:
        https://bugs.openjdk.java.net/browse/JDK-8144548
        Show
        serb Sergey Bylokhov added a comment - This is deployment code. similar stack trace: https://bugs.openjdk.java.net/browse/JDK-8144548
        Hide
        vdyakov Victor Dyakov added a comment -
        it seems a dup of JDK-8144548
        Show
        vdyakov Victor Dyakov added a comment - it seems a dup of JDK-8144548
        Hide
        mwthomps Marty Thompson added a comment - - edited
        8144548
        Show
        mwthomps Marty Thompson added a comment - - edited 8144548

          People

          • Assignee:
            ddehaven David Dehaven (Inactive)
            Reporter:
            webbuggrp Webbug Group
          • Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: