On 12/04/15 19:03, Andrea Aime wrote: > Right, managed to reproduce on my Linux mint using openjdk7 as well. > Apparently it's a bug in lcms itself, or so think the Ubuntu maintainers: > https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/913434
Aha! I recall that, when I made a standalone test class, this call crashed the JVM. The unexpected outcome is that openjdk8 works fine even with LCMS 2.6; so perhaps JDK 8 changes the way it uses LCMS. > I've installed debug symbols and sources in my machine, the issue is > happening because we get a CMMException in this method: [...] > mdl.getTagData(profileID, tagSignature, tagData); [...] > which returns null, which in turn cases the NPE. > The CMMException exception states: > java.awt.color.CMMException: ICC Profile header not found > at sun.java2d.cmm.lcms.LCMS.getTagData(Native Method) [...] > As you can see we're failing indeed in a native method. Confirmed. That is exactly the spot where I was seeing the failure. > Not sure what to make of this, maybe we should just try to detect openjdk7 > and disable the test? We could. But does this mean YCbCr conversions using toCIEXYZ are broken on this platform since the JAI-EXT merge? Is this a significant regression? Should we recommend openjdk8 over openjdk7 for impacted users? > However, on Travis it builds fine, they claim to be running Ubuntu 12.04 > LTS (maybe the issue is new, affects only 14.04 series). Travis CI logs state they are running 12.04 LTS; according to Ubuntu, 12.04 LTS uses LCMS 2.2 which does not exhibit the bug. I have not tested 14.04 but 14.10 and later have the library that should fail (I confirmed the failure with the Ubuntu 14.10 library under Debian). Kind regards, -- Ben Caradoc-Davies <b...@transient.nz> Director Transient Software Limited <http://transient.nz> New Zealand ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel