F18 OpenJDK 7 caused crash in Java Image Editor -> GTK file requester (fixed with OpenJDK7 update)

Fernando Cassia fcassia at gmail.com
Fri Apr 19 12:59:53 UTC 2013


Just FYI...

The OpenJDK 7 build of Java included in the Fedora 18 LiveCD includes
a bug that causes
Java Image Editor http://www.jhlabs.com/ie/ (a Paint Shop Pro
look-alike written in Pure Java) to crash when trying to open a file.

Luckily, after updating to the latest OpenJDK 7, the app works fine!.

This is what the console shows after I click on File->Open and select
a PNG file...

$ java -jar ImageEditor.jar
Apr 19, 2013 6:46:22 AM it.tidalwave.imageio.util.Logger info
INFO: Installing RAWProcessor...
Apr 19, 2013 6:46:22 AM it.tidalwave.imageio.util.Logger info
INFO: Installed RAWProcessor
RAWProcessor succesfully installed
Exception in thread "Thread-7" java.lang.NullPointerException
        at sun.awt.X11.GtkFileDialogPeer.setFileInternal(GtkFileDialogPeer.java:79)
        at sun.awt.X11.GtkFileDialogPeer.run(Native Method)
        at sun.awt.X11.GtkFileDialogPeer.showNativeDialog(GtkFileDialogPeer.java:172)
        at sun.awt.X11.GtkFileDialogPeer.access$000(GtkFileDialogPeer.java:39)
        at sun.awt.X11.GtkFileDialogPeer$1.run(GtkFileDialogPeer.java:114)

Java version was:

$ java -version
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (fedora-2.3.3.fc18.1-i386)
OpenJDK Server VM (build 23.2-b09, mixed mode)

After updating to openjdk-1.7.0.9-2.3.8.0.fc18.i686.rpm
and now it works fine

$ java -version
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (fedora-2.3.8.0.fc18-i386)
OpenJDK Server VM (build 23.7-b01, mixed mode)
[liveuser at localhost ~]$

...the bug is gone...

Just FYI...
FC

-- 
During times of Universal Deceit, telling the truth becomes a revolutionary act
- George Orwell


More information about the users mailing list