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

[macOS] NPE at sun.lwawt.macosx.CPlatformComponent.setBounds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 11, 17, 18
    • client-libs
    • None
    • Cause Known
    • generic
    • os_x

      Crash reports include stacks like this one

      Exception in NSApplicationAWT:
       java.lang.NullPointerException
      at java.desktop/sun.lwawt.macosx.CPlatformComponent.setBounds(CPlatformComponent.java:66)
      at java.desktop/sun.lwawt.LWComponentPeer.setBounds(LWComponentPeer.java:595)
      at java.desktop/sun.lwawt.LWWindowPeer.notifyReshape(LWWindowPeer.java:730)
      at java.desktop/sun.lwawt.macosx.CPlatformWindow.deliverMoveResizeEvent(CPlatformWindow.java:1208)

      0 CoreFoundation 0x00007fff204ba6af __exceptionPreprocess + 242
      1 libobjc.A.dylib 0x00007fff201f23c9 objc_exception_throw + 48
      2 CoreFoundation 0x00007fff204e2a9a -[NSException raise] + 9
      3 JavaNativeFoundation 0x00007fff6f6b106b JNFCallVoidMethod + 215
      4 libawt_lwawt.dylib 0x0000000110d30c82 -[AWTWindow _deliverMoveResizeEvent] + 375
      5 CoreFoundation 0x00007fff20435fec __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
      6 CoreFoundation 0x00007fff204d189b ___CFXRegistrationPost_block_invoke + 49
      7 CoreFoundation 0x00007fff204d180f _CFXRegistrationPost + 454
      8 CoreFoundation 0x00007fff20406bde _CFXNotificationPost + 723
      9 Foundation 0x00007fff21175abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
      10 AppKit 0x00007fff22cb0120 -[NSWindow _setFrameCommon:display:fromServer:] + 3179
      11 AppKit 0x00007fff22de7d2c -[NSWindow _setFrameAfterMove:] + 768
      12 AppKit 0x00007fff22de78a0 -[NSWindow _windowMovedToRect:] + 167
      13 AppKit 0x00007fff22de76a6 -[NSWindow _windowMoved:] + 1086
      14 AppKit 0x00007fff22de7245 -[NSWindow _internalHandleAppKitDefinedEvent:] + 239
      15 AppKit 0x00007fff22de6480 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 3706
      16 AppKit 0x00007fff22de53ea -[NSWindow(NSEventRouting) sendEvent:] + 347
      17 libawt_lwawt.dylib 0x0000000110d2ede3 -[AWTWindow_Normal sendEvent:] + 86
      18 AppKit 0x00007fff22de412a -[NSApplication(NSEvent) sendEvent:] + 2742
      19 libjcef.dylib 0x0000000150ab4051 -[NSApplication(JCEFApplication) _swizzled_sendEvent:] + 97
      20 libosxapp.dylib 0x0000000110dfe736 -[NSApplicationAWT sendEvent:] + 450
      21 AppKit 0x00007fff230bc36e -[NSApplication _handleEvent:] + 65
      22 AppKit 0x00007fff22c4cb2f -[NSApplication run] + 623
      23 libosxapp.dylib 0x0000000110dfe3a5 +[NSApplicationAWT runAWTLoopWithApp:] + 222
      24 libawt_lwawt.dylib 0x0000000110d5fed6 +[AWTStarter starter:headless:] + 834
      25 JavaNativeFoundation 0x00007fff6f6b470f +[JNFRunLoop _performCopiedBlock:] + 15
      26 Foundation 0x00007fff211ec4d9 __NSThreadPerformPerform + 204
      27 CoreFoundation 0x00007fff20440a0c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      28 CoreFoundation 0x00007fff20440974 __CFRunLoopDoSource0 + 180
      29 CoreFoundation 0x00007fff204406ef __CFRunLoopDoSources0 + 248
      30 CoreFoundation 0x00007fff2043f121 __CFRunLoopRun + 890
      31 CoreFoundation 0x00007fff2043e6ce CFRunLoopRunSpecific + 563
      32 idea 0x000000010cd1abf5 main + 332
      33 libdyld.dylib 0x00007fff20363621 start + 1
      34 ??? 0x0000000000000001 0x0 + 1


      I have not been able to reproduce the problem, but the number of reports like the above is in the hundreds.

            mkartashev Maxim Kartashev
            mkartashev Maxim Kartashev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: