I have just found out that, using BufferedInputStream - instead of
java.io.File - as parameter for ImageIO.read() will not cause core dump.
This probably means that there is something wrong with the code in
ImageIO.read() that cause crash while reading from java.io.File.

P.S. the difference between NonBugIIO.java and BugIIO.java, is that the
BugIIO.java uses File as parameter for ImageIO.read(), while
NonBugIIO.java uses BufferedInputStream as parameter for ImageIO.read().

** Attachment added: "NonBugIIO.java - this class will run, and *not* cause 
crash."
   
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/913434/+attachment/2732845/+files/NonBugIIO.java

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/913434

Title:
  ImageIO crashes (core dumped) while reading many image files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/913434/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to