Moving from internal bug database - #6676658
Run the attached manual test. You will see a semi-transparent rectangle and a slider. Move the slider. You will get the following exception on the console -
java.lang.NullPointerException
at com.sun.scenario.scenegraph.SGFilter.render(SGFilter.java:258)
at com.sun.scenario.scenegraph.SGTransform.render(SGTransform.java:282)
at com.sun.scenario.scenegraph.SGWrapper.render(SGWrapper.java:100)
at com.sun.scenario.scenegraph.SGGroup.render(SGGroup.java:178)
at com.sun.scenario.scenegraph.SGGroup.render(SGGroup.java:178)
at com.sun.scenario.scenegraph.JSGPanel.paintComponent(JSGPanel.java:546)
at com.sun.javafx.scene.JSGPanelImpl.paintComponent(JSGPanelImpl.java:53)
at javax.swing.JComponent.paint(JComponent.java:1027)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:277)
at javax.swing.RepaintManager.paint(RepaintManager.java:1217)
at javax.swing.JComponent._paintImmediately(JComponent.java:5070)
at javax.swing.JComponent.paintImmediately(JComponent.java:4880)
at javax.swing.JComponent.paintImmediately(JComponent.java:4892)
at com.sun.scenario.scenegraph.JSGPanel.repaintDirtyRegions(JSGPanel.java:602)
at com.sun.scenario.scenegraph.JSGPanelRepainter.repaintAll(JSGPanelRepainter.java:106)
at com.sun.scenario.scenegraph.JSGPanelRepainter$FrameDisplay.run(JSGPanelRepainter.java:112)
at com.sun.scenario.animation.MasterTimer.timePulseImpl(MasterTimer.java:612)
at com.sun.scenario.animation.MasterTimer.timePulse(MasterTimer.java:566)
at com.sun.scenario.animation.MasterTimer$MainLoop.run(MasterTimer.java:448)
at com.sun.embeddedswing.EmbeddedEventQueue.doPulse(EmbeddedEventQueue.java:441)
at com.sun.embeddedswing.EmbeddedEventQueue.access$000(EmbeddedEventQueue.java:71)
at com.sun.embeddedswing.EmbeddedEventQueue$2.run(EmbeddedEventQueue.java:348)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
This is consistantly reproducible with SceneGraph as well as FX. I have also attached a scenegraph test.
Run the attached manual test. You will see a semi-transparent rectangle and a slider. Move the slider. You will get the following exception on the console -
java.lang.NullPointerException
at com.sun.scenario.scenegraph.SGFilter.render(SGFilter.java:258)
at com.sun.scenario.scenegraph.SGTransform.render(SGTransform.java:282)
at com.sun.scenario.scenegraph.SGWrapper.render(SGWrapper.java:100)
at com.sun.scenario.scenegraph.SGGroup.render(SGGroup.java:178)
at com.sun.scenario.scenegraph.SGGroup.render(SGGroup.java:178)
at com.sun.scenario.scenegraph.JSGPanel.paintComponent(JSGPanel.java:546)
at com.sun.javafx.scene.JSGPanelImpl.paintComponent(JSGPanelImpl.java:53)
at javax.swing.JComponent.paint(JComponent.java:1027)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:277)
at javax.swing.RepaintManager.paint(RepaintManager.java:1217)
at javax.swing.JComponent._paintImmediately(JComponent.java:5070)
at javax.swing.JComponent.paintImmediately(JComponent.java:4880)
at javax.swing.JComponent.paintImmediately(JComponent.java:4892)
at com.sun.scenario.scenegraph.JSGPanel.repaintDirtyRegions(JSGPanel.java:602)
at com.sun.scenario.scenegraph.JSGPanelRepainter.repaintAll(JSGPanelRepainter.java:106)
at com.sun.scenario.scenegraph.JSGPanelRepainter$FrameDisplay.run(JSGPanelRepainter.java:112)
at com.sun.scenario.animation.MasterTimer.timePulseImpl(MasterTimer.java:612)
at com.sun.scenario.animation.MasterTimer.timePulse(MasterTimer.java:566)
at com.sun.scenario.animation.MasterTimer$MainLoop.run(MasterTimer.java:448)
at com.sun.embeddedswing.EmbeddedEventQueue.doPulse(EmbeddedEventQueue.java:441)
at com.sun.embeddedswing.EmbeddedEventQueue.access$000(EmbeddedEventQueue.java:71)
at com.sun.embeddedswing.EmbeddedEventQueue$2.run(EmbeddedEventQueue.java:348)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
This is consistantly reproducible with SceneGraph as well as FX. I have also attached a scenegraph test.
- duplicates
-
JDK-8106719 NullPointerException when filter effect needs an image that is too large
-
- Closed
-
- relates to
-
JDK-8106520 Scaling a media after applying InnerShadow throws NPE
-
- Closed
-