[MGNLIMG-136] Images render in wrong colors with Java 7 and 8 Created: 13/Dec/13  Updated: 05/Apr/17  Resolved: 31/Oct/16

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: None
Fix Version/s: 3.3

Type: Bug Priority: Neutral
Reporter: Philip Mundt Assignee: Ilgun Ilgun
Resolution: Cannot Reproduce Votes: 0
Labels: java8
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2014-08-04 at 15.03.12.png     PNG File java1.7.0_95.png     PNG File jvm_1.8.0-ea-b119.png     PNG File jvm_1.8.0_11-b12.png     JPEG File jvm_1.8.0_20-b24.jpg    
Issue Links:
Relates
relates to MGNLIMG-157 JPEG issues with Java8 Closed
relates to MGNLIMG-106 Imaging does not work with JPEG image... Closed
dependency
is depended upon by MGNLIMG-194 Update java version to 1.8 Closed
relation
is related to MAGNOLIA-5535 Enable to run with Java 8 Closed
supersession
is superseded by MGNLIMG-153 Spurious "java.awt.color.CMMException... 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:
Sprint: Basel 68
Story Points: 3

 Description   

Using Java/JDK 8 + Tomcat 8 RC5 will result in weird image colors (see attached screenshot jvm_1.8.0-ea-b119.png).

Java:

java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b119)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b61, mixed mode)

Tested with ;

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Both instances had the images properly rendered.



 Comments   
Comment by Magnolia International [ 04/Aug/14 ]

Still occurs but I get different funky colors.

Comment by Philip Mundt [ 06/Aug/14 ]

Getting another set of colors with jvm (jvm_1.8.0_11-b12.png):

java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
Comment by Daniel Lipp [ 06/Aug/14 ]

I got the following result: (jvm_1.8.0_20-b24.jpg)

java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b24)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b22, mixed mode)

On the other side - on my next 5 test runs everything worked like a charm. No exceptions, all colors properly displayed. So to me it looks like we didn't spot the real combination of factors that produces the error.

Comment by Daniel Lipp [ 06/Aug/14 ]

I realized that the filter version (2.0.235) is from 2006 - unfortunately updating to the "latest" (2.0.235-1 from 2012) doesn't solve the prob...

Comment by Magnolia International [ 13/Mar/15 ]

Moved comments related to java.awt.color.CMMException: LCMS error 13: Couldn't link the profiles to MGNLIMG-153.
Marking this issue has superseded by MGNLIMG-153, but really the relation is "split off of".

Comment by Evzen Fochr [ 11/Feb/16 ]

java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

Comment by Adi De Masi [ 31/May/16 ]

Updated from openJD 1.7 to Java Version 1.8.0_91 (build 1.8.0_91-b14) from oracle

Still the same issue!

Comment by Marvin Kerkhoff [ 24/Oct/16 ]

We had the same problem at our customer project.

There was only one way to fix this issue. To update from JAVA 1.7 to this

Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

But in we used Tomcat 7.

See also: https://jira.magnolia-cms.com/browse/SUPPORT-6530

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