Also, I expanded the Java code snippet you posted into a full program: === import java.awt.image.BufferedImage; import java.io.*; import java.net.*; import java.nio.file.*; import javax.imageio.ImageIO;
public class Hello { void read() { URL objUrl = this.getClass().getClassLoader().getResource("image1.jpg"); try { byte[] objBytes = Files.readAllBytes(Paths.get(objUrl.toURI())); ByteArrayInputStream bais = new ByteArrayInputStream(objBytes); BufferedImage image = ImageIO.read(bais); //>> this is where the error occurs. System.out.println("success"); } catch (Exception e) { System.out.println("Failed to create buffered image"); } } public static void main(String[] args) { new Hello().read(); } } === When I run this it prints "success", so this isn't reproducing the crash for me either. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1197059 Title: jvm crash in libjpeg.so.8 caused by ImageIO.read To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1197059/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs