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

IndexOutOfBoundsException with transparent PNGs in StackPanes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • fx2.1
    • javafx
    • Javafx JDK 2.1 b16, Java SE 7u3 JRE i586
      Ubuntu 11.10 x64

      Got an exception when putting my mouse over my images.
      Stack trace is printed on stage closure.
      Doesn't seem to happen with not transparent images.
      See attachments to reproduce.

      JavaFX Application Thread uncaught: java.lang.IndexOutOfBoundsExceptionjava.lang.IndexOutOfBoundsException

      at java.nio.Buffer.checkIndex(Unknown Source)
      at java.nio.HeapByteBuffer.get(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit.imageContains(QuantumToolkit.java:1067)
      at javafx.scene.image.ImageView.impl_computeContains(ImageView.java:782)
      at javafx.scene.Node.contains(Node.java:3114)
      at javafx.scene.Node.impl_pickNodeLocal(Node.java:3647)
      at javafx.scene.Node.impl_pickNode(Node.java:3635)
      at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2391)
      at javafx.scene.Node.impl_pickNode(Node.java:3635)
      at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2391)
      at javafx.scene.Node.impl_pickNode(Node.java:3635)
      at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2391)
      at javafx.scene.Node.impl_pickNode(Node.java:3635)
      at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2391)
      at javafx.scene.Node.impl_pickNode(Node.java:3635)
      at javafx.scene.Scene$MouseHandler.pickNode(Scene.java:3055)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:2825)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:2691)
      at javafx.scene.Scene$MouseHandler.access$1300(Scene.java:2657)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1281)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:1915)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:215)
      at com.sun.glass.ui.View.handleMouseEvent(View.java:493)
      at com.sun.glass.ui.View.notifyMouse(View.java:871)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication$2$1.run(GtkApplication.java:79)
      at java.lang.Thread.run(Unknown Source)

        1. Test.java
          4 kB
          Pitt Marson
        2. test.png
          3 kB
          Pitt Marson

            morris Morris Meyer (Inactive)
            pmarsonjfx Pitt Marson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: