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

NPE when applying a large Shear on a rectangle of bigger size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • fx2.0
    • fx1.0, fx1.2
    • javafx
    • Reproduced it on WinXP - 6u10-b31 - JavaFX SDK b618 from getjfx.sfbay

      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.

        1. duke.gif
          4 kB
          Praveen Mohan
        2. ImageScaleTest.fx
          0.9 kB
          Praveen Mohan
        3. ShapeShearTest.fx
          0.7 kB
          Praveen Mohan
        4. ShapeShearTest.java
          1 kB
          Praveen Mohan

            flar Jim Graham
            pmohan Praveen Mohan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: