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

Crash when calling WebEngine.print on background thread

XMLWordPrintable

    • web


        java version "1.8.0_75"
        Java(TM) SE Runtime Environment (build 1.8.0_75-b09)
        Java HotSpot(TM) Client VM (build 25.75-b09, mixed mode, sharing)


        Does this problem occur on J2SE 6ux or 7ux or 8ux? Yes / No (pick one)

        Yes, earlier versions of Java 8

        Operating System Configuration Information (be specific):
        Microsoft Windows [Version 6.1.7601]


        Hardware Configuration Information (be specific):
        HP EliteBook 8760W
        Windows 7 Professional 64-bit (SP1)
        8G Ram

        Bug Description:

        This SVG document shows fine in the webview, but does not print correctly.

        Sometimes it causes the VM to crash, other times it will go into an infinite loop of exceptions.

        This document is a bit weird, but it shows find in the webview, so I would think it would print OK
        as well. Some SVG documents I try print fine, others behave as in this example.

        Exception in thread "JavaFX Application Thread"
        java.lang.NullPointerException
                at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
                at com.sun.webkit.Timer.fireTimerEvent(Unknown Source)
                at com.sun.webkit.Timer.notifyTick(Unknown Source)
                at javafx.scene.web.WebEngine$PulseTimer.lambda$static$45(Unknown Source)
                at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.javafx.tk.Toolkit.runPulse(Unknown Source)
                at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(Unknown Source)
                at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
                at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
                at java.lang.Thread.run(Unknown Source)
        Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
                at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
                at com.sun.webkit.Timer.fireTimerEvent(Unknown Source)
                at com.sun.webkit.Timer.notifyTick(Unknown Source)
                at javafx.scene.web.WebEngine$PulseTimer.lambda$static$45(Unknown Source)
                at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.javafx.tk.Toolkit.runPulse(Unknown Source)
                at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(Unknown Source)
                at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
                at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
                at java.lang.Thread.run(Unknown Source)
        Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
                at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
                at com.sun.webkit.Timer.fireTimerEvent(Unknown Source)
                at com.sun.webkit.Timer.notifyTick(Unknown Source)
                at javafx.scene.web.WebEngine$PulseTimer.lambda$static$45(Unknown Source)
                at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.javafx.tk.Toolkit.runPulse(Unknown Source)
                at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(Unknown Source)
                at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
                at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                at com.sun.glass.ui.win.WinApplication.lambda$null$148(UnknownSource)
                at java.lang.Thread.run(Unknown Source)
        Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
                at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
                at com.sun.webkit.Timer.fireTimerEvent(Unknown Source)
                at com.sun.webkit.Timer.notifyTick(Unknown Source)
                at javafx.scene.web.WebEngine$PulseTimer.lambda$static$45(Unknown Source)
                at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.javafx.tk.Toolkit.runPulse(Unknown Source)
                at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(Unknown Source)
                at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
                at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
                at java.lang.Thread.run(Unknown Source)


        Steps to Reproduce (be specific):

        Run the program and try to print.

              kcr Kevin Rushforth
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: