-
Bug
-
Resolution: Not an Issue
-
P3
-
fx2.0
-
latest presidio-graphics-scrum
b44 as well
Windows 7
I run demo which I was not touching for two weeks and got strange NPE. Investigation shows that this NPE is caused by MediaPlayer and Media initialized "too earlier". However, this isn't done on wrong thread so I believe this is valid bug.
Please find lines marked with "// option 1" through "// option 3". Options 1 and 2 throw exception, option 3 doesn't.
java.lang.NullPointerException
at com.sun.javafx.sg.prism.NGMediaView.renderContent(NGMediaView.java:124)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:185)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1128)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:202)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:185)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1128)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:202)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:185)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1128)
at com.sun.javafx.tk.quantum.PaintRunnable.doPaint(PaintRunnable.java:217)
at com.sun.javafx.tk.quantum.PaintRunnable.paintImpl(PaintRunnable.java:154)
at com.sun.javafx.tk.quantum.PaintRunnable.run(PaintRunnable.java:329)
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(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:67)
at java.lang.Thread.run(Thread.java:662)
Please find lines marked with "// option 1" through "// option 3". Options 1 and 2 throw exception, option 3 doesn't.
java.lang.NullPointerException
at com.sun.javafx.sg.prism.NGMediaView.renderContent(NGMediaView.java:124)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:185)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1128)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:202)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:185)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1128)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:202)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:185)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1128)
at com.sun.javafx.tk.quantum.PaintRunnable.doPaint(PaintRunnable.java:217)
at com.sun.javafx.tk.quantum.PaintRunnable.paintImpl(PaintRunnable.java:154)
at com.sun.javafx.tk.quantum.PaintRunnable.run(PaintRunnable.java:329)
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(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:67)
at java.lang.Thread.run(Thread.java:662)