[MGNLIMG-153] Spurious "java.awt.color.CMMException: LCMS error 13: Couldn't link the profiles" Created: 13/Mar/15  Updated: 19/May/22  Resolved: 19/May/22

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.x

Type: Bug Priority: Neutral
Reporter: Magnolia International Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
supersession
supersedes MGNLIMG-136 Images render in wrong colors with Ja... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

This was originally reported under MGNLIMG-136 but seems to be a different issue, actually. Under some load on Linux machines, we get this
On another instance, I don't get images at all, but this strange color-related exception instead:

Caused by: java.lang.RuntimeException: Failed to process request with: java.awt.color.CMMException: LCMS error 13: Couldn't link the profiles
	at info.magnolia.module.cache.executor.Store.processCacheRequest(Store.java:115)
	at info.magnolia.module.cache.executor.CompositeExecutor.processCacheRequest(CompositeExecutor.java:66)
	at info.magnolia.module.cache.filter.CacheFilter.doFilter(CacheFilter.java:153)
	... 64 more
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.awt.color.CMMException: LCMS error 13: Couldn't link the profiles
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
	at info.magnolia.imaging.caching.CachingImageStreamer.serveImage(CachingImageStreamer.java:146)
	at info.magnolia.imaging.ImagingServlet.doGet(ImagingServlet.java:98)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at info.magnolia.cms.filters.ServletDispatchingFilter.doFilter(ServletDispatchingFilter.java:148)
	at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
	at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
	at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:65)
	at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
	at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
	at info.magnolia.cms.filters.VirtualUriFilter.doFilter(VirtualUriFilter.java:68)
	at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
	at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
	at info.magnolia.module.cache.executor.Store.processCacheRequest(Store.java:98)
	... 66 more
Caused by: java.awt.color.CMMException: LCMS error 13: Couldn't link the profiles
	at sun.java2d.cmm.lcms.LCMS.createNativeTransform(Native Method)
	at sun.java2d.cmm.lcms.LCMS.createTransform(LCMS.java:156)
	at sun.java2d.cmm.lcms.LCMSTransform.doTransform(LCMSTransform.java:155)
	at sun.java2d.cmm.lcms.LCMSTransform.colorConvert(LCMSTransform.java:467)
	at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:571)
	at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1268)
	at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
	at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1236)
	at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1039)
	at javax.imageio.ImageIO.read(ImageIO.java:1448)
	at javax.imageio.ImageIO.read(ImageIO.java:1352)

edit: JDK-8041429 and JDK-8032243 seem to indicate this won't be fixed in Java 8.

I was able to reproduce the issue relatively consistently on a Linux machine (e.g jess2), , using the test case at JDK-8041429.
Can't make it happen on my Mac, and since this fails in a native call, we can probably assume it is a *nix-specific issue.

We have also seen it in Jenkins builds: https://jenkins.magnolia-cms.com/job/ee_bundle-with-selenium_profile_java8/233/



 Comments   
Comment by Magnolia International [ 13/Mar/15 ]

Marking this issue has superseding MGNLIMG-136, but really the relation is "split off of".

Comment by Jónatan Einarsson [ 30/Mar/15 ]

Same problem here. Getting weird color distortions on Win/Tomcat/Java 8

Comment by Edgar Vonk [ 24/Jun/15 ]

I am seeing this issue too now. On a Mac.. Some details: Magnolia 5.4-beta, MacBook Pro (mid 2010), java version "1.8.0_31", Jetty 9.

Comment by Edgar Vonk [ 24/Jun/15 ]

Upgraded to JDK 1.8.0_45-b14 and the problem seems to have gone..

Comment by Roman Kovařík [ 19/May/22 ]

Hello,

This ticket is now marked as closed due to one of the following reasons:

  • A long period of inactivity
  • Uses an old or Beta version of an application, module, or framework that we no longer support
  • The issue is no longer reproducible or has been fixed in later versions

If you are still facing a problem or consider this issue still relevant, please feel free to re-open the ticket and we will reach out to you.

Thank you,
The Magnolia Team

Generated at Mon Feb 12 02:12:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.