JDK-8114376 : NPE in com.sun.prism.d3d.D3DSwapChain.present
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-06-21
  • Updated: 2015-06-16
  • Resolved: 2011-10-10
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.
Other
fx2.0.2Fixed
Related Reports
Blocks :  
Duplicate :  
Description
I can not reproduce this. What I did was: in a shell I ran
java -jar Ensemble.jar

and did not use it for a while. Then I clicked the icon in the taskbar. From normal
Windows programs I am used that clicking on a taskbar icon will bring the
corresponding app to the front. This didn't happen for the Ensemble demo.
When I moved my mouse and looked into the shell output I saw multiple of those:

java.lang.NullPointerException
        at com.sun.prism.d3d.D3DSwapChain.present(D3DSwapChain.java:42)
        at com.sun.javafx.tk.quantum.PaintRunnable.run(PaintRunnable.java:241)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at com.sun.prism.render.RenderJob.run(RenderJob.java:29)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at com.sun.javafx.tk.quantum.QuantumRenderer$ObservedRunnable.run(QuantumRenderer.java:70)
        at java.lang.Thread.run(Unknown Source)


Perhaps that stack trace is enough to identify where the NPE came from.
Comments
SQE: verified on 2.0.2 b08. Attached working sample for verification.
11-11-2011

Changeset: 14621 (328a024ab99d) fix : RT-14739, RT-14430, RT-15961 - NPE in com.sun.prism.d3d.D3DSwapChain.prese
10-10-2011

Can not reproduce
28-09-2011

Assigning over to Kirill for further investigation.
13-09-2011

SQE - ok to defer
26-08-2011

Pls target this to Lombard
25-08-2011

Same as other NPE
14-07-2011

I cannot reproduce this at all on my machine (windows 7 nvidia gtx 460). the FireGL may have something to do with it (ie slower framerate triggering a timing issue).
13-07-2011

I was using the machine, reading Jira issues here. So I had no screen lock. When I wanted to look into the running app again I saw it didn���t react and looked into the shell, where I saw the output.
22-06-2011

This looks like a duplicate of RT-14404. Did your system go into screen lock by any chance?
22-06-2011

If it is the same issue, then resizing the application will cause a repaint to happen and stop the exceptions.
22-06-2011