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

AIOOBE exception in SwingFXUtils.fromFxImage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 7u6
    • javafx
    • None

      I ported HelloBufferedImageExport to use the public snapshot and SwingFXUtils API, and I got the following exception. The program is attached.

      Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
              at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:403)
              at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
              at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
              at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.ArrayIndexOutOfBoundsException
              at java.lang.System.arraycopy(Native Method)
              at com.sun.javafx.image.impl.BaseIntToIntConverter$IntAnyToSameConverter.doConvert(BaseIntToIntConverter.java:148)
              at com.sun.javafx.image.impl.BaseIntToIntConverter.convert(BaseIntToIntConverter.java:86)
              at com.sun.prism.Image$IntAccess.getPixels(Image.java:989)
              at com.sun.prism.Image.getPixels(Image.java:750)
              at javafx.scene.image.Image$2.getPixels(Image.java:1149)
              at javafx.embed.swing.SwingFXUtils.fromFXImage(SwingFXUtils.java:178)
              at helloworld.HelloBufferedImageExport.start(HelloBufferedImageExport.java:45)
              at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
              at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
              at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
              at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
              at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
              at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
              ... 1 more

            flar Jim Graham
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: