[Bug 1013] ImageIO.read fails to open .jpg containing ICC_ProfileGray

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Jun 22 03:01:10 PDT 2012


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1013

Mike <mike at bfo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike at bfo.co.uk

--- Comment #9 from Mike <mike at bfo.co.uk> ---
I'm attaching "test.zip", a simpler testcase to demonstrate this - this loads
the ICC profile directly, rather than pulling it out of an image. This testcase
also sets "sun.java2d.cmm.trace" which might help, and the output is included
in the zip along with my hs_err.log and the profile.

Some key points:

1. The profile being loaded is sRGB version 2.1, which is an older version of
the one supplied with Java 7. It's very, very common to see this embedded in
images or  PDFs, so this bug is going to be a showstopper for anyone working
with those files. Can we flag this as a major issue?

2. If I instantiate the built-in sRGB profile first by calling
Color.red.getColorSpace(), I will get a segmentation fault.

3. If I don't instantiate it by commenting out that line, I get
:java.lang.IllegalArgumentException: Can't load standard profile: sRGB.pf" -
also invalid.

I suspect the issue is a clash between the built-in sRGB and the one being
loaded, most likely in the native code being wrapped by
sun.java2d.cmm.lcms.LCMS, but as it's in the native layer I'm not going to get
much further.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120622/90de29cf/attachment.html 


More information about the distro-pkg-dev mailing list