Something like this. Yes I can still reproduce, but have moved to pngs
to get past it.

URL objUrl = this.getClass().getClassLoader().getResource("images/image1.jpg");
byte[] objBytes = Files.readAllBytes(Paths.get(objUrl.toURI()));
try (ByteArrayInputStream bais = new ByteArrayInputStream(imageData)) {
            BufferedImage image = ImageIO.read(bais); //>> this is where the 
error occurs.
            return image;
        } catch (IOException e) {
            LOG.error(null, "Failed to create buffered image", e);
            throw new RuntimeException(e);
        }

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to