Bug 378663 - KWin won't draw Aurorae themes
Summary: KWin won't draw Aurorae themes
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: aurorae (show other bugs)
Version: 5.9.4
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-11 14:29 UTC by Mircea Kitsune
Modified: 2017-04-14 13:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (25.30 KB, image/png)
2017-04-11 14:29 UTC, Mircea Kitsune
Details
Output of "qdbus org.kde.KWin /KWin supportInformation" (6.69 KB, text/plain)
2017-04-11 18:48 UTC, Mircea Kitsune
Details
Xorg.0.log (56.38 KB, text/x-log)
2017-04-12 12:14 UTC, Mircea Kitsune
Details
kwin_x11.txt (15.42 KB, text/plain)
2017-04-13 01:36 UTC, Mircea Kitsune
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mircea Kitsune 2017-04-11 14:29:37 UTC
Created attachment 104969 [details]
Screenshot

After installing today's openSUSE Tumbleweed snapshot (generated on 07-04-2017) and restarting, I found that KWin no longer renders Aurorae themes. Other themes work fine however, and this only seems to affect Aurorae. The problem happens both with and without desktop effects enabled.

The space where the titlebar and border should be is now completely empty, with no graphics or text or buttons showing. However the blur effect is still functional, and clicking and dragging on any window components works correctly (even if they're invisible).
Comment 1 Martin Flöser 2017-04-11 18:23:50 UTC
please provide the output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 2 Mircea Kitsune 2017-04-11 18:48:31 UTC
Created attachment 104973 [details]
Output of "qdbus org.kde.KWin /KWin supportInformation"

(In reply to Martin Gräßlin from comment #1)

Here you go.
Comment 3 Martin Flöser 2017-04-12 05:09:52 UTC
can you try running kwin from a Konsole and watch the debug output?
Comment 4 Mircea Kitsune 2017-04-12 12:14:00 UTC
Created attachment 104986 [details]
Xorg.0.log

Sorry for forgetting to mention this: My video card is a Radeon R7 370 from Gigabyte, and as such GCN 1.0 / RadeonSI / Pitcairn GPU. Here's also my Xorg.0.log.

(In reply to Martin Gräßlin from comment #3)

I will try this a bit later. Need to make a few preparations first, as shutting down KWin causes all windows to pop up on the screen and overlap with no way of reordering them again, which sometimes makes it tricky to start it up again.
Comment 5 Mircea Kitsune 2017-04-12 20:00:52 UTC
An important note: The exact same bug is also happening on my mother's computer! It also has the latest packages of openSUSE Tumbleweed, as well as an AMD card. However hers is a much older model, and likely not RadeonSI (possibly R600). This means it might be a general Radeon issue.

This is what lspci says on her machine:

VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV635 [Radeon HD 3650/3750/4570/4580]

For that matter, this is what lspci says on mine:

VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R7 370 / R9 270/370 OEM] (rev 81)
Comment 6 Mircea Kitsune 2017-04-13 01:36:39 UTC
Created attachment 105000 [details]
kwin_x11.txt

First of all, I attempted to log in with the following environment variables exported at system level, which I did by adding them to my ~/.profile file:

LIBGL_ALWAYS_SOFTWARE=1
LIBGL_DEBUG=verbose

This has not affected the problem in any way: The issue occurred just like before and KWin would render no window decorations.

While testing this however, I uncovered a strange side effect: If I kill kwin_x11 then start the process back up while the system is running, the problem goes away and the window elements show again, however I can no longer enable desktop effects until I log out and in again. KDE doesn't complain about anything in their regard, but pressing "alt + shift + f12" or trying to enable them from the Desktop Settings menu does nothing.

Lastly I've attached the log generated by running kwin_x11 from bash. There seem to be numerous complaints regarding all of the window elements, as well as a message about a module identifier directive not being protected from external registrations.
Comment 7 Mircea Kitsune 2017-04-13 01:41:22 UTC
The first part of the above comment is incorrect, please ignore it! For some reason an old version I wrote up got posted here, before I did an additional test and modified it. Updated statement:

First of all, I attempted to log in with the following environment variables exported at system level, which I did by adding them to my ~/.profile:

export LIBGL_ALWAYS_SOFTWARE=1
export LIBGL_DEBUG=verbose

This has indeed fixed the issue, and caused KWin to render window decorations again! However certain desktop effects would not work, such as blur.
Comment 8 Martin Flöser 2017-04-13 17:35:40 UTC
Just noticed in the debug output that you use egl and core profile. Please try switching back to glx and to OpenGL 2.
Comment 9 Mircea Kitsune 2017-04-13 22:30:30 UTC
(In reply to Martin Gräßlin from comment #8)

How do I do that? I haven't manually changed any of these settings, so I assume Tumbleweed did. They don't seem to be present in Configure Desktop.
Comment 10 Martin Flöser 2017-04-14 06:11:06 UTC
You need to edit ~/.config/kwinrc and delete the line mentioning egl. And no tumbleweed quite certainly did not change that.
Comment 11 Mircea Kitsune 2017-04-14 13:33:25 UTC
(In reply to Martin Gräßlin from comment #10)

Thank you very much for your suggestion! Switching back from egl to glx has indeed solved the problem, now my KWin theme draws once more. This sucks as egl was visibly faster and better, but it's something I can live without for now.

I am going to leave this bug report open however: There is a real issue present and it's breaking egl support, whether the fault lies with KDE or a video driver. If the KDE developers believe there's nothing on their end to investigate, I'm fine with this being closed now that there's a workaround.
Comment 12 Martin Flöser 2017-04-14 13:53:59 UTC
We dropped EGL support on X11 as it just was not working reliable.