JDK-8112938 : NullPointerException during stage resize
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2011-05-31
  • Updated: 2015-06-16
  • Resolved: 2012-02-06
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.1Resolved
Related Reports
Duplicate :  
Duplicate :  
Description
java.lang.NullPointerException
    at com.sun.prism.impl.ps.BaseShaderGraphics.setPaint(BaseShaderGraphics.java:70)
    at com.sun.javafx.sg.prism.NGShape.renderContent(NGShape.java:129)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:103)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
    at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1000)
    at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:161)
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:352)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:103)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
    at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1000)
    at com.sun.javafx.tk.quantum.PaintRunnable.paintImpl(PaintRunnable.java:137)
    at com.sun.javafx.tk.quantum.PaintRunnable.run(PaintRunnable.java:236)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at com.sun.prism.tkal.RenderJob.run(RenderJob.java:29)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at com.sun.javafx.tk.quantum.QuantumRenderer$ObservedRunnable.run(QuantumRenderer.java:73)
    at java.lang.Thread.run(Thread.java:662)

Check out MigLayoutFX2 (http://java.net/projects/miglayoutfx2/sources/source-code-repository/show)
Import Maven project in Eclipse and / or setup the classpath yourself.
Start MigLayoutFX2Test2
Resize the window until it hits the right side of the screen.

Comments
Unable to reproduce on mac
06-02-2012

It is fixed for windows by the followingchangeset : 14621 (328a024ab99d) fix : RT-14739, RT-14430, RT-15961 - NPE in com.sun.prism.d3d.D3DSwapChain.prese Assigning to Chien to evaluate Mac behaviour
07-11-2011

What are steps for reproduce ? What bits was used ? Is it reproducible with the latest bits ? What OS is used ? What is video drivers configuration (output with -Dprism.verbose=true)
02-11-2011

This is probably a duplicate of RT-15961 but needs to be investigated.
02-09-2011

On b42 while resizing MigPaneTest3 on WindowsXP: java.lang.NullPointerException at com.sun.prism.impl.BaseGraphics.drawTextureVO(Unknown Source) at com.sun.prism.impl.BaseGraphics.drawTexture(Unknown Source) at com.sun.prism.impl.ps.BaseShaderGraphics.drawTexture(Unknown Source) at com.sun.prism.impl.BaseGraphics.drawTexture(Unknown Source) at com.sun.prism.d3d.D3DSwapChain.present(Unknown Source) at com.sun.javafx.tk.quantum.PaintRunnable.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at com.sun.prism.render.RenderJob.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.sun.javafx.tk.quantum.QuantumRenderer$ObservedRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:662)
02-09-2011

Can reproduce on Mac but not Windows, this will be deferred for a future release or update
16-08-2011

I was actually able to reproduce this and pinpoint the source of the NPE.
15-08-2011

Reporter says he hasn't been able to reproduce the issue in a while.
15-08-2011

This is probably a duplicate of RT-10972 which is already fixed (and will be in the beta1 build). Assign to Morris to verify.
01-06-2011