JDK-8193441 : NPE in populateFontFileNameMap
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8u141
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2017-12-13
  • Updated: 2017-12-13
  • Resolved: 2017-12-13
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
1.8.0_131

ADDITIONAL OS VERSION INFORMATION :
'Mac OS X 10.13.1 x86_64

A DESCRIPTION OF THE PROBLEM :
2017-12-04 09:58:40,863 [2420] [JavaFX Application Thread] ERROR - java.lang.NullPointerException
2017-12-04 09:58:40,863 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.javafx.font.MacFontFinder.populateFontFileNameMap(MacFontFinder.java:99)
2017-12-04 09:58:40,863 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.javafx.font.PrismFontFactory.getFullNameToFileMap(PrismFontFactory.java:1740)
2017-12-04 09:58:40,863 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.javafx.font.PrismFontFactory.getFontFamilyNames(PrismFontFactory.java:1279)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.javafx.webkit.prism.WCFontImpl.getFont(WCFontImpl.java:64)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.javafx.webkit.prism.PrismGraphicsManager.getWCFont(PrismGraphicsManager.java:83)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.webkit.Timer.fireTimerEvent(Timer.java:83)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.webkit.Timer.notifyTick(Timer.java:64)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at javafx.scene.web.WebEngine$PulseTimer.lambda$null$49(WebEngine.java:1228)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at java.security.AccessController.doPrivileged(Native Method)
2017-12-04 09:58:40,864 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
2017-12-04 09:58:40,865 [2420] [JavaFX Application Thread] ERROR - 	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See steps in http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8154845

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No crash

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
 I see it's fixed in JDK 10 which is great. Unfortunately that's not going to help users experiencing this in the field for years.

Can we please get this back ported to JRE 8?

We get multiple reports of this daily for our software. It's just a null pointer check, so low risk?


Comments
Closing as a duplicate. We can consider the request to backport JDK-8089900.
13-12-2017

Issue reported by submitter has already been fixed in JDK 10 - JDK-8089900 Submitter requesting for backport to JDK 8 as its just a null pointer check and receives multiple reports for same issue,
13-12-2017