JDK-8165867 : [macos] JVM continuously throw a NullPointerException on new MacOS 10.12
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 8u111
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2016-09-12
  • Updated: 2017-11-29
  • Resolved: 2016-09-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9
7u121Fixed 8u112Fixed 9Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8167460 :  
Description
During the test of applets on the new macOS 10.12 Sierra, customer have
discovered that the JVM continuously throw a NullPointerException (see the
attached screenshot).
 
They have seen the problem both 8u10 and the upcoming 8u111 b10 and 8u112
b04, and the problem could be reproduced on all their own applets as well as
https://www.java.com/verify, especially when you closed down the applet or
navigated away from the site in the web browser.

They could not give a specific flow because the problem is not consistent.

While the applets still works, the dialogs will be annoying for the end user. 
Comments
Critical Request Template - PSU16_04 - macOS respin only - Justification : Required to provide stability for applet use cases on Mac 10.12 - Risk Analysis : Low - code was removed. Crash inducing code. - Webrev : https://java.se.oracle.com/code/cru/CR-JDK8UDEV-397 - Testing (done/to-be-done) : see https://wiki.se.oracle.com/display/JPG/JDK-8165867 - Back ports (done/to-be-done) : done for JDK 8 and 7 -
30-09-2016

jdk8u-dev (which has the fix) nightly is started at 12 pm pst. It will take around 5 hrs to complete. Once its done bundles can be found at "/net/scanas416.us.oracle.com/export/java_re/build/re3/nightlyws/jdk8u-dev/b02_2016-09-29-1204_7926"
29-09-2016

Was consistently failing on my 10.12 ( macOS 10.12 (16A323)) machine with 8u101 and the verify applet. Every reload. Now, with same OS, and Nakul's build above 8u112+fix, the issue is no longer appearing in my current testing.
28-09-2016

Back port code reviews complete https://java.se.oracle.com/code/cru/CR-JDK8UDEV-397 https://java.se.oracle.com/code/cru/CR-JDK7UCPU-828
28-09-2016

I have uploaded jre 7 build but unfortunately release number is previous so we will get ssv warning. I have started a new jprt build but it will take time. I will upload that once its done.
28-09-2016

Removed 9-na as it's reproducible in 9 too with the recent backout of JDK-8144548
27-09-2016

JDK-8144548 bug fixes the issue but as per david its an incomplete fix and sqe opened a follow up issue JDK-8165424
26-09-2016

Does it affect 9?
23-09-2016

See also (OS X Yosemite (version 10.10) & 8u60) https://bugs.openjdk.java.net/browse/JDK-8135302 issue and also https://bugs.openjdk.java.net/browse/JDK-8046194 (for JDK 9)
22-09-2016

Reproduced with macOS 10.12 (16A323) with JDK 8u112 b14 Failing intermittently on https://www.java.com/en/download/installed.jsp reloads. Attached log from crash event: java_2016-09-22-154921_bali-2.crash Appear, at least in this example to fail in AWT. To get to the crash dump/trace, click "Crash" on the internal error window that appears. --- Crashed Thread: 0 AppKit Thread 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: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:1266) at sun.plugin2.main.client.MacOSXKeyHandler.notifyFlagsChangedFromNative(Unknown Source)
22-09-2016

Does it affect 9 ?
14-09-2016