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

NPE in populateFontFileNameMap

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8u141
    • Fix Version/s: None
    • Component/s: javafx

      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?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: