Bug 307282 - 30 bit Color (Deep color) shows strange colors
Summary: 30 bit Color (Deep color) shows strange colors
Status: RESOLVED UPSTREAM
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: qt (show other bugs)
Version: 4.9.1
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdelibs bugs
URL: http://postimage.org/image/7pve5xmaj/
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-23 19:25 UTC by kdebug1
Modified: 2012-12-13 10:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kdebug1 2012-09-23 19:25:53 UTC
Using the actual NVidia 304.43 driver enabling 30 bit color makes using kde impossible.
The colors become strange changes (see url) yet only on the desktop and in most windows. 
The top line remains correcty displayed (see url), kdm als login manager is messed up too, but ksplash correctly displays every color. Gwenview shows images correctly too. 
Using argyll to display test colors patches is possible without errors.

Is further information needed?

Reproducible: Always

Steps to Reproduce:
1. Use actual NVidia driver and modify xorg.conf to Depth 30 and DefaultDepth to 30
2. Restart X Server
3. Problem visible even in kdm
Actual Results:  
Colors are changed in certain desktop parts 

Expected Results:  
Show correct colors
Comment 1 Thomas Lübking 2012-09-23 19:55:50 UTC
a) compositing does not seem to be enabled on the screenshot, correct? (even if, the reference to kdm says it's not related to compositing)
b) try "QT_GRAPHICSSYSTEM=native oxygen-demo" - what does that look like?

-> most likely bug #214011 - not that there would not be bug #273347
Comment 2 kdebug1 2012-09-25 15:54:41 UTC
Updated to new 304.51 nvidia driver, problem persists.

Solution b) displays the application correctly, without the environment variable it appears colorcorrupted.

Yet in SystemSettings - Desktop-Effect- QT Graphic System is already set to native without help

Is it possible to set above Environtment variable for all applications?
Comment 3 Thomas Lübking 2012-09-25 16:40:07 UTC
export QT_GRAPHICSSYTEM=native

in an executable shell script in ~/.kde/env
Comment 4 kdebug1 2012-09-25 17:39:54 UTC
Exporting above variable doesn't help. Colors are still corrupt.
Oxygen-demo is broken too. Yet "export" in terminal shows correct declaration of variable as


declare -x QT_GRAPHICSSYTEM="native"

But using "export QT_GRAPHICSYSTEM=native oxygen-demo" shows correct colors again. 

What happens there?
Comment 5 Christoph Feck 2012-09-25 19:10:35 UTC
This is a bug in Qt with conversion of 24 bit raster images to 30 bit native pixmaps. Please report to Qt developers via https://bugreports.qt-project.org/
Comment 6 Thomas Lübking 2012-09-25 19:24:12 UTC
You do not export that somewhere in ~/.bashrc or so, do you? (declare is a shell built-in)

The environment must be set so that it's exported all the way down across the launcher (plasma) ie. actually have an executable script in ~/.kde/env (possibly ~/.kde4/env) that says

#!/bin/sh
export QT_GRAPHICSSYSTEM=native
Comment 7 kdebug1 2012-09-25 19:47:59 UTC
The script 

> cat .kde4/env/qtnative.sh
#!/bin/sh
export QT_GRAPHICSSYTEM=native

is executable in the ~/.kde4/env. User is my standard user, group is users.
But it doesn't correct colors after login (not expected) neither in kdm (expected, as script is not yet run)
Comment 8 Thomas Lübking 2012-09-25 20:34:54 UTC
export QT_GRAPHICSSYTEM=native
                                     ^^^

I'm really a typo king and you don't read close enough ;-)
Comment 9 kdebug1 2012-09-26 17:29:02 UTC
Thanks, your right. 
Now I see the typo too, plasma is fixed. kdm still doesn't display correctly. But even worse, the intended purpose is not met as digikam preview images are now miscolored and rawtherapee doesn't display any images at all.
So more bugs need to be filed.

Thanks for your help
Comment 10 Fredrik Höglund 2012-09-26 17:38:01 UTC
The upstream bug report is: https://bugreports.qt-project.org/browse/QTBUG-25998