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

JavaFX on MAC platform cannot show some PNG files

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Won't Fix
    • Affects Version/s: fx1.2
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      MAC

      Description


      I followed recommendations for Mac platform from here: http://java.sun.com/javafx/1/reference/system-requirements-1-2.html
      (used JavaFX v 1.2 and JDK 1.5.0_22_147 for MAC)

      The sample is attached, also I attached two PNG files one of them (cloud.png) causes exception:

      JNLPAppletLauncher: static initializer
      Tue Dec 01 11:12:56 PST 2009 JEP creating applet org.jdesktop.applet.util.JNLPAppletLauncher (http://.../)
      java.io.UTFDataFormatException: malformed input around byte 15275
        at java.io.DataInputStream.readUTF(DataInputStream.java:612)
        at javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java:309)
        at com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.java:443)
        at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:652)
        at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1314)
        at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1601)
        at com.sun.javafx.tk.desktop.AWTImageLoader.readImageFromStream(Unknown Source)
        at com.sun.javafx.tk.desktop.AWTImageLoader.readImage(Unknown Source)
        at com.sun.javafx.tk.desktop.AWTImageLoader.<init>(Unknown Source)
        at com.sun.javafx.tk.swing.SwingToolkit.loadImage(Unknown Source)
        at javafx.scene.image.Image.initialize(Unknown Source)
        at javafx.scene.image.Image.postInit$(Unknown Source)
        at com.sun.javafx.runtime.FXBase.complete$(Unknown Source)
        at animatedmotion.Main.javafx$run$(Main.fx:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at com.sun.javafx.runtime.adapter.AppletStartupRoutine.run(Unknown Source)
        at com.sun.javafx.tk.swing.SwingToolkit$StartupRoutine.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at jep.MySimpleEventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      ...

        Attachments

        1. baloon.png
          baloon.png
          24 kB
        2. binaries.zip
          175 kB
        3. cloud.png
          cloud.png
          157 kB
        4. src.zip
          969 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ailjin Artem Iljin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: