Bug 494327 - [GTK3] Inconsistent behavior for SWT.COLOR_TRANSPARENT flag
Summary: [GTK3] Inconsistent behavior for SWT.COLOR_TRANSPARENT flag
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.6   Edit
Hardware: PC CentOS
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sravan Kumar Lakkimsetti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 12:05 EDT by Sravan Kumar Lakkimsetti CLA
Modified: 2022-03-31 03:37 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sravan Kumar Lakkimsetti CLA 2016-05-23 12:05:06 EDT
+++ This bug was initially created as a clone of Bug #493640 +++

4.6 RC1

Bug459961Test.testTransparentColorConstantReference consistently fails on CentOs

http://download.eclipse.org/eclipse/downloads/drops4/I20160512-1000/testresults/html/org.eclipse.e4.ui.tests.css.swt_ep46I-unit-cen64_linux.gtk.x86_64_8.0.html


expected:<255> but was:<237>

java.lang.AssertionError: expected:<255> but was:<237>
at org.eclipse.e4.ui.tests.css.swt.Bug459961Test.assertRGBAEquals(Bug459961Test.java:46)
at org.eclipse.e4.ui.tests.css.swt.Bug459961Test.testTransparentColorConstantReference(Bug459961Test.java:42)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:743)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:351)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
at org.eclipse.core.launcher.Main.main(Main.java:34)

In GTK 3 when a widget is styled using color-transparent css style the resultant background color is background obtained from the gtk theme with transparent flag set. In case of GTK2 it is white with transparent flag set. 

When we compare with COLOR_TRANSPARENT it fails. 

Expectation here is color-transparent should manipulate only the transparency flag. should not have default color
Comment 1 Lakshmi P Shanmugam CLA 2017-03-24 05:16:12 EDT
Sravan, can you please verify if it still happens with master?
Comment 2 Sravan Kumar Lakkimsetti CLA 2017-05-08 07:55:52 EDT
(In reply to Lakshmi Shanmugam from comment #1)
> Sravan, can you please verify if it still happens with master?

I tested on Ubuntu 17.04 this problem does not reduce.
Comment 3 Sravan Kumar Lakkimsetti CLA 2017-05-09 08:24:08 EDT
(In reply to Sravan Kumar Lakkimsetti from comment #2)
> (In reply to Lakshmi Shanmugam from comment #1)
> > Sravan, can you please verify if it still happens with master?
> 
> I tested on Ubuntu 17.04 this problem does not reduce.

I tested with Ubuntu 17.04. This problem does not gets reproduced. But this exists in centos 7/rhel7 which are supported platforms.
Comment 4 Niraj Modi CLA 2017-05-11 06:39:38 EDT
(In reply to Sravan Kumar Lakkimsetti from comment #3)
> (In reply to Sravan Kumar Lakkimsetti from comment #2)
> > (In reply to Lakshmi Shanmugam from comment #1)
> > > Sravan, can you please verify if it still happens with master?
> > 
> > I tested on Ubuntu 17.04 this problem does not reduce.
> 
> I tested with Ubuntu 17.04. This problem does not gets reproduced. But this
> exists in centos 7/rhel7 which are supported platforms.

Looks like something specific to GTK3 version, which is causing the difference across various Linux distro, moving out of Oxygen.
Comment 5 Lakshmi P Shanmugam CLA 2017-06-14 02:53:31 EDT
Assigning back to Sravan.
Comment 6 Sravan Kumar Lakkimsetti CLA 2018-05-04 10:26:12 EDT
Could not get time to fix this moving out of 4.8
Comment 7 Eric Williams CLA 2018-05-04 10:40:28 EDT
If this doesn't happen on Ubuntu 17.04/18.04 which has GTK3.22 then it probably won't reproduce on RHEL 7.4/7.5 which also has GTK3.22. 

I'm not sure it's worth the time investment to fix older versions of GTK3 as they are all obsolete: GTK3.22 is the final and stable version of GTK3.
Comment 8 Alexander Kurtakov CLA 2019-02-08 02:16:28 EST
Marking as closed as we haven't seen such test failures lately.
Comment 9 Lars Vogel CLA 2022-03-30 08:40:58 EDT
(In reply to Alexander Kurtakov from comment #8)
> Marking as closed as we haven't seen such test failures lately.

Test was disabled, I push an Gerrit to activate it again. Works fine on my Linux.
Comment 10 Eclipse Genie CLA 2022-03-30 08:41:26 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/192365