Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-153

Spurious "java.awt.color.CMMException: LCMS error 13: Couldn't link the profiles"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.2.x
    • Component/s: None
    • Labels:
      None

      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/

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gjoseph Magnolia International
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: