Bug 354731

Summary: Black or incorrect textures in different places of UI
Product: [Plasma] plasmashell Reporter: Lastique <andysem>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: grave CC: bhush94, chriswhy, kde-bugs, manavjeet18295, nate, patrick.rudolph, plasma-bugs
Priority: NOR    
Version: 5.4.2   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Firefox icon in the task manager is black
Firefox icon in the task manager is grey (maybe a miniature version of the Kate window instead of icon)
Firefox icon in the task manager is possibly a miniature version of the Kmail window
Kate window snapshot is black
Kmail window snapshot shows Firefox icon
The whole bottom panel is black
The "Add Widgets" menu is garbled
Upper panel and maximized window decorations are garbled
Black Muon application button, window stapshot and icon.
Filenames of desktop items are replaced with colorful noise.

Description Lastique 2015-11-02 11:16:44 UTC
This bug stems from https://bugs.kde.org/show_bug.cgi?id=347425.

Occasionally, at different places of the workspace I notice that some textures are either incorrect or black. The places I've noticed so far:

- Application icons in the task manager on the panel. Not specific to any particular applications.
- Application window thumbnail, when you hover mouse over the task manager on the panel. Again, not specific to applications.
- Some other elements of the panel, such as the "Leave..." button.
- The whole panel.
- The text in the "Add Widgets" menu.

The textures may get broken at some point and then "fix" themselves as you perform mouse actions, like hovering over some interface element, and then may get broken again the same or different way.

I don't have a stable recipe to reproduce the problem but it starts manifesting itself sooner or later after some time of working on the machine, like starting applications, web surfing, mail and so on. It seems like the problem has a racy nature.

The original bug for Kwin mentions some texture management problems that were fixed in Kwin but may still be present in clients, like Plasma.

Reproducible: Always




Kubuntu 15.10, x86_64, Nvidia drivers 355.11, Core i7 2600K, 980GTX, 16 GiB RAM, no swap. Desktop theme: Air (here the most problems happen) or Breeze (I haven't tested this one long enough, but I observed the black panel there fairly quickly). I have another machine with the same software but Intel GPU and I'm not seeing the problem there.
Comment 1 Lastique 2015-11-02 11:17:21 UTC
Created attachment 95257 [details]
Firefox icon in the task manager is black
Comment 2 Lastique 2015-11-02 11:19:09 UTC
Created attachment 95258 [details]
Firefox icon in the task manager is grey (maybe a miniature version of the Kate window instead of icon)
Comment 3 Lastique 2015-11-02 11:21:11 UTC
Created attachment 95259 [details]
Firefox icon in the task manager is possibly a miniature version of the Kmail window
Comment 4 Lastique 2015-11-02 11:22:10 UTC
Created attachment 95260 [details]
Kate window snapshot is black
Comment 5 Lastique 2015-11-02 11:23:16 UTC
Created attachment 95261 [details]
Kmail window snapshot shows Firefox icon
Comment 6 Lastique 2015-11-02 11:23:55 UTC
Created attachment 95262 [details]
The whole bottom panel is black
Comment 7 Lastique 2015-11-02 11:24:44 UTC
Created attachment 95263 [details]
The "Add Widgets" menu is garbled
Comment 8 Lastique 2015-11-02 12:11:07 UTC
Created attachment 95264 [details]
Upper panel and maximized window decorations are garbled
Comment 9 Lastique 2015-11-02 12:15:08 UTC
(In reply to Lastique from comment #8)
> Created attachment 95264 [details]
> Upper panel and maximized window decorations are garbled

In fact decorations are not affected in this screenshot - they are displayed correctly when the window is not maximized. It's the black line that is below the panel that covers the decoration header, and it is also present when there's no maximized window. I suspect this is how the shadow texture looks like.
Comment 10 Lastique 2015-11-02 15:11:43 UTC
Created attachment 95266 [details]
Black Muon application button, window stapshot and icon.
Comment 11 David Edmundson 2015-11-05 19:25:45 UTC
 Nvidia drivers 355.11

can you try upgrading/downgrading.

issue is definitely there.
setting
QSG_RENDER_LOOP=basic 

might workaround the issue
Comment 12 Lastique 2015-11-07 10:22:14 UTC
(In reply to David Edmundson from comment #11)
>  Nvidia drivers 355.11
> 
> can you try upgrading/downgrading.

355.11 is the latest driver I have access to. The problem reproduces with 352.55. I don't have access to older versions in Kubuntu 15.10 but the black textures were there in 15.04 as well, when I was using 346.59 (this is outlined in the linked bug).

> issue is definitely there.

As far as I can see, the black/corrupted textures only appear in Plasma elements. I have not seen them in applications themselves, nor in XFCE, including when KDE apps are run in XFCE.

> setting
> QSG_RENDER_LOOP=basic 
> 
> might workaround the issue

That variable is already set.
Comment 13 David Edmundson 2015-11-22 00:49:13 UTC
>That variable is already set.

By whom?

Can you try unsetting it then?
Comment 14 Lastique 2016-03-03 22:32:35 UTC
(In reply to David Edmundson from comment #13)
> >That variable is already set.
> 
> By whom?

By me. I've added it to /etc/environment to fix crashes in different KDE apps, such as System Settings. See https://bugs.kde.org/show_bug.cgi?id=344651 for example.

> Can you try unsetting it then?

It doesn't change anything, the texture corruption was present even before I added this variable.
Comment 15 Chris 2016-04-20 22:44:00 UTC
Created attachment 98486 [details]
Filenames of desktop items are replaced with colorful noise.

I have nvidia 364.16 installed for my GTX 980 and my desktop files look like this when I return from suspend. Using Plasma 5.6.3.
Comment 16 Lastique 2016-04-24 11:46:26 UTC
Still happens to me in Kubuntu 16.04 with Plasma 5.5.5. Will this ever be fixed? This is a show stopper bug for me.
Comment 17 David Edmundson 2016-04-29 14:25:16 UTC
*** Bug 353667 has been marked as a duplicate of this bug. ***
Comment 18 Patrick Rudolph 2017-02-22 08:11:38 UTC
Tested with Plasma 5.8.4.
After entering the lockscreen password the panel is black, while it accepts mouse events. Moving it around got it back to life.
I got a black tray icon several times, too.
Applications aren't affected.

Happened on nvidia binary driver and intel's mesa driver.
Desktop theme is Breeze.
Comment 19 Lastique 2017-11-12 11:21:51 UTC
I've opened a topic on the Nvidia forum:

https://devtalk.nvidia.com/default/topic/1026340/linux/black-or-incorrect-textures-in-kde/
Comment 20 David Edmundson 2018-03-08 01:22:43 UTC

*** This bug has been marked as a duplicate of bug 364766 ***
Comment 21 Lastique 2018-03-08 08:53:53 UTC
This is not a duplicate of https://bugs.kde.org/show_bug.cgi?id=364766 because there is no suspend/resume involved. GLX_NV_robustness_video_memory_purge is not relevant to this problem.
Comment 22 David Edmundson 2018-03-08 11:15:55 UTC
And you still have the issue?
Comment 23 Lastique 2018-03-08 12:02:06 UTC
Admittedly, the problem appears less often than when I initially reported it. If I'm careful, I can use KDE desktop without issue (thanks to whoever fixed the problem, even partially). But it is not completely fixed. For example, I reported https://bugs.kde.org/show_bug.cgi?id=386752 to kwin where I described the steps to reproduce the problem (it reproduces on Kubuntu 17.10). The black textures appear in different elements in the UI, including the desktop background, so I'm not sure if it is a kwin or plasma problem.

I'm not fiddling with plasma widgets often, and haven't seen texture corruption in windows preview or panels for quite a while (at least since Kubuntu 17.10 came out).
Comment 24 arne anka 2018-05-31 15:59:50 UTC
Just my 2ct: I never noticed a change in the occurence -- still happens everytime with part of or all texts in taskbar or folderview widget
Comment 25 Manavjeet Singh 2019-01-17 17:08:29 UTC
This bug was reported for a really old version of plasmashell. Can someone rectify if the bug is still present in 5.12 LTS or latest plasma 5.14?
Comment 26 Manavjeet Singh 2019-01-17 17:10:42 UTC
Status changed with respect to comment 25.
Comment 27 Bug Janitor Service 2019-02-01 04:33:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 28 Bug Janitor Service 2019-02-16 04:33:09 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 29 arne anka 2021-05-05 16:57:56 UTC
Still an issue with 
Operating System: Debian GNU/Linux 11
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.0-6-amd64
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Memory: 15,4 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 30 Nate Graham 2021-08-31 19:38:35 UTC
It's an NVIDIA driver issue which has been fixed in various places; see the fixed-in field of Bug 364766.

*** This bug has been marked as a duplicate of bug 364766 ***
Comment 31 Lastique 2021-08-31 21:00:45 UTC
(In reply to Nate Graham from comment #30)
> It's an NVIDIA driver issue which has been fixed in various places; see the
> fixed-in field of Bug 364766.
> 
> *** This bug has been marked as a duplicate of bug 364766 ***

This is not a duplicate, see comment 21.

Though personally I haven't seen this for a while. I'm not touching plasma widgets after having them set up, which is probably why it no longer reproduces. If the other user in comment 29 still has this problem, this bug needs to be reopened.