Bug 214011 - Graphical corruption in the splash screen when using a depth 30 desktop
Summary: Graphical corruption in the splash screen when using a depth 30 desktop
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-10 18:17 UTC by Pierre-Loup A. Griffais
Modified: 2018-05-09 22:48 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Depth 30 corruption when logging out (771.01 KB, image/png)
2009-11-10 18:18 UTC, Pierre-Loup A. Griffais
Details
Splash screen corruption at depth 30. (639.95 KB, image/png)
2009-11-10 18:20 UTC, Pierre-Loup A. Griffais
Details
Window decoration corruption at 10bpc with desktop effects enabled. (894.36 KB, image/png)
2011-10-20 01:05 UTC, Pierre-Loup A. Griffais
Details
Dump of xdpyinfo after starting X with -depth 30 (36.72 KB, text/plain)
2011-10-21 13:48 UTC, Pierre-Loup A. Griffais
Details
Dump of glxinfo after starting X with -depth 30 (38.76 KB, text/plain)
2011-10-21 13:49 UTC, Pierre-Loup A. Griffais
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Loup A. Griffais 2009-11-10 18:17:01 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

When using a depth 30 desktop (10 bit per color component), I can see graphical corruption in several places: the splash screen, the logout desktop fade effect and the K icon in the KDE Help Center. It looks like KDE is sourcing from the desktop assuming an 8bpc format and getting the wrong channels.
Comment 1 Pierre-Loup A. Griffais 2009-11-10 18:18:16 UTC
Created attachment 38233 [details]
Depth 30 corruption when logging out

Attaching screenshot.
Comment 2 Pierre-Loup A. Griffais 2009-11-10 18:20:45 UTC
Created attachment 38234 [details]
Splash screen corruption at depth 30.

One more screenshot.
Comment 3 Kai-Uwe Behrmann 2009-12-23 18:25:11 UTC
Confirming this bug. 

There are more issues with OpenGL based effects are not starting. Would 
this be a new bug?
Comment 4 Pierre-Loup A. Griffais 2011-10-20 01:05:56 UTC
Created attachment 64717 [details]
Window decoration corruption at 10bpc with desktop effects enabled.

Just confirmed that the window decoration corruption does indeed happen with desktop effects enabled. Attached new screenshot highlighting that.
Comment 5 Kai-Uwe Behrmann 2011-10-20 06:47:31 UTC
Just for the record. Here is the link to Pierre-Loup's response on the 
Xorg email list:
http://lists.x.org/archives/xorg/2011-October/053688.html

I can confirm the "Window decoration corruption at 10bpc with desktop 
effects enabled" look with Compiz using the kde4 decorator the same on
a nvidia quadro with nvidia drivers set to 30-bit and a 30-bit HP 
monitor connected over DP. There are many more monitors with high bit depth 
support from different manufacturers known in the graphics community.
Comment 6 Fredrik Höglund 2011-10-21 12:12:21 UTC
Could you please attach the glxinfo and xdpyinfo output so we can better understand the visuals and framebuffer configurations as they're seen by KWin?

Does this happen with Xrender compositing or OpenGL compositing, or both?
Comment 7 Pierre-Loup A. Griffais 2011-10-21 13:48:46 UTC
Created attachment 64759 [details]
Dump of xdpyinfo after starting X with -depth 30
Comment 8 Pierre-Loup A. Griffais 2011-10-21 13:49:15 UTC
Created attachment 64760 [details]
Dump of glxinfo after starting X with -depth 30
Comment 9 chadwick.ferguson 2012-02-15 07:41:13 UTC
Confirming on XServer 1.11.3 and nvidia 295.20.  The nv guys just enabled Depth 80 an all consumer cards > GF8.  Same Psychedelic colors, also gtk+ apps are unaffected within same session.  

Expect there to be some more chatter now that depth 30 happens without the Quadros.
Comment 10 chadwick.ferguson 2012-02-15 07:44:39 UTC
(In reply to comment #9)
> Confirming on XServer 1.11.3 and nvidia 295.20.  The nv guys just enabled Depth
> 80 an all consumer cards > GF8.  Same Psychedelic colors, also gtk+ apps are
> unaffected within same session.  
> 
> Expect there to be some more chatter now that depth 30 happens without the
> Quadros.

The nv guys just enabled Depth 80 an all consumer cards > GF8 [sic]
Depth 30
Comment 11 Alberto 2013-08-22 10:17:53 UTC
I am also experiencing the same problem with the latest releases of KDE (currently 4.10)
Comment 12 Christoph Feck 2013-08-30 00:26:42 UTC
Alberto, do you see the bug only with the splash screen, or also at other places? If yes, do pure Qt applications render correctly?
Comment 13 Alberto 2013-08-31 10:11:21 UTC
I re-tested it now. The situation is as follows:
* The log-in screen is corrupted
* The splash screen is *not* corrupted
* The desktop is all corrupted except window title bars and the "Run command" dialog (ALT+F2) which are OK
* Digikam (which should be a Qt application, if I am not wrong) is completely corrupted
* GIMP is OK, except for the tool icons which are corrupted
* Geeqie shows a black rectangle instead of images
Comment 14 Christoph Feck 2013-09-19 00:40:29 UTC
Digikam is actually a KDE application (check its About > About KDE menu item). Can you please check a pure Qt application, such as qtconfig, designer, linguist, or applications from the Razor-Qt project?

The "Run command" dialog (krunner) runs with Qt graphicssystem=native, because it needs to access XPixmap for its cursor startup feedback animation. This would indicate that using raster graphicssystem (which internally uses QImage, i.e. 24 bit RGB) fails to convert to 30 bit pixmaps when actually flushing the backing store to the X11 window.

In other words, this could be a Qt bug.
Comment 15 Fredrik Höglund 2013-09-19 01:23:15 UTC
The corruption with the raster graphics system is a Qt bug, and you should vote for it:

https://bugreports.qt-project.org/browse/QTBUG-25998

I could have sworn I had already added a link to it in this bug report.

But rendering in R8G8B8 and converting to R10G10B10 defeats the purpose of using depth 30 in the first place.
Comment 16 Christoph Feck 2013-09-19 01:30:33 UTC
True, there will be very few applications that actually render with 30 bits. But the main advantage would be having a 10 bit LUT, so that gamma correction does not create severe banding. Special applications for photos would probably not use Qt in the first place, because it is limited to 8 bit even for its image loaders.
Comment 17 Thomas Lübking 2013-09-19 11:40:15 UTC
(In reply to comment #15)

> I could have sworn I had already added a link to it in this bug report.
No, but to bug #307282 ;-)
Comment 18 Alberto 2013-09-28 08:36:36 UTC
Apologies for the delay in replying.
designer-qt4 shows corruption in colours too.
Comment 19 Allan Sandfeld 2018-04-13 12:53:30 UTC
This should be long fixed with Qt 5