Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 584692 - kde-plasma/kwin - plasma's window decorations disappearing occasionally
Summary: kde-plasma/kwin - plasma's window decorations disappearing occasionally
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-31 19:49 UTC by jhon
Modified: 2016-10-20 04:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to address kwin crashes. (0001-catch-nullptr-effects-when-deleting-shadows.patch,1.18 KB, patch)
2016-07-11 20:42 UTC, Azamat H. Hackimov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jhon 2016-05-31 19:49:27 UTC
I'm having issues with KDE plasma's window decorations disappearing occasionally.
According to this https://bugzilla.redhat.com/show_bug.cgi?id=1247618 thread, which leads to here https://bugs.freedesktop.org/show_bug.cgi?id=91316  - xproto seems to be the culprit.

The latter link mentions the bug was fixed upstream, maybe it's time for a version bump?

BTW: the reporter of the bug mentions she's a Gentoo user in her report. Why oh why didn't she also took care of her Gentoo using fellows... (sigh)
Comment 1 Tomáš Mózes 2016-06-01 02:34:55 UTC
Can you please test the newer 7.0.29 release?
Comment 2 jhon 2016-06-01 07:49:13 UTC
(In reply to Tomáš Mózes from comment #1)
> Can you please test the newer 7.0.29 release?

I am, as the decorations seem to have disappear occasionally - this will take a few days to affirm.

Since yesterday, so far so good.
Comment 3 Tomáš Mózes 2016-06-01 10:28:15 UTC
Thanks for the feedback. I'm closing this for now, if problems persist, do not hesitate to re-open.
Comment 4 Tomáš Mózes 2016-06-01 10:30:11 UTC
Actually, instead of opening a new bug for stabilization, let's use this one.

However, 7.0.29 was pushed 17.5.2016, so we need more time for stabilization.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-06-01 10:42:29 UTC
There exists already bug 579266 for xproto-7.0.29 stabilization.

The original issue reported in this bug is fixed, so either the title should be reverted and the bug marked as fixed, or it should be marked as duplicate of bug 579266.
Comment 6 Tomáš Mózes 2016-06-01 14:21:13 UTC

*** This bug has been marked as a duplicate of bug 579266 ***
Comment 7 jhon 2016-06-01 18:21:47 UTC
Alright so, I found a way to reproduce the problem (window decorations disappearing). it's seems xproto wasn't the culprit after all. 
Nevertheless, since this bug's title is about xproto, I'll guess I'll just have to file a different bug under kwin - because it crashes, I think... (my xsession-errors is filled with bugs)
Comment 8 Tomáš Mózes 2016-06-02 08:57:36 UTC
Is that kde-plasma/kwin or kde-base/kwin you are having problem with? We can change the title and continue.
Comment 9 jhon 2016-06-03 10:09:49 UTC
Yes, it's kde-plasma/kwin.
So, the way I reproduce the bug is by opening Kodi and switch between windowed mode and full-screen mode (using keyboard shortcut key - "\").

Then apparently, kwin crashes, windows lose their decorations and moving or raising them isn't working.

So, to get out of this situation I use Alt+F2: kwin_x11 --replace  and then I kill Kodi.bin.

I found that by deleting ~/.kde4 I can temporarily avoid the crash, however, it's only temporary since plasma 5 creates that folder again later.

One more thing is that my xsession-erros file is swarming with bugs (pun intended), right from the beginning of the session. bugs start to accumulate there, after a couple of hours of KDE session I have almost 20k lines of errors.

Nevertheless, I think these are perhaps the relevant lines since they seem to generate closely to time where the crash happens:

QXcbConnection: XCB error: 3 (BadWindow), sequence: 16919, resource id: 67108866, major code: 15 (QueryTree), minor code: 0
kwin_x11: Couldn't find current GLX or EGL context.

Application::crashHandler() called with signal 11; recent crashes: 1
Could not resolve property : radialGradient4857
Could not resolve property : radialGradient4857
Could not resolve property : radialGradient4857
Could not resolve property : radialGradient4857
QXcbConnection: XCB error: 2 (BadValue), sequence: 21590, resource id: 52547210, major code: 141 (Unknown), minor code: 3
Comment 10 jhon 2016-06-12 18:51:12 UTC
Just wanted to update that I've installed KDE 5 via kde-plasma/plasma-desktop (which is the minimal kde package).
However, on my latest update, portage alerted me to install kde-apps/kdebase-runtime-meta
Now, even though my .xsession-erros file still gets bloated with errors, it seems that the kwin crash I had upon toggling full-screen in Kodi has stopped.
(I report this after a few hours of testing)
Comment 11 Andreas Sturmlechner gentoo-dev 2016-06-12 20:24:52 UTC
kde-apps/kdebase-runtime-meta as a KDE Applications package has no relation to Plasma-5, and it only contains kdelibs4-based stuff.
Comment 12 jhon 2016-06-13 05:45:01 UTC
Well, maybe it's one of the dependencies it pulled that did the trick then:
<code>
# qlop -l | grep 'Sun Jun 12'
Sun Jun 12 19:07:05 2016 >>> net-misc/socat-1.7.3.1
Sun Jun 12 19:07:17 2016 >>> kde-apps/kcmshell-15.12.3
Sun Jun 12 19:07:28 2016 >>> kde-apps/ktimezoned-15.12.3
Sun Jun 12 19:07:41 2016 >>> kde-apps/keditfiletype-15.12.3
Sun Jun 12 19:07:52 2016 >>> kde-apps/kmimetypefinder-15.12.3
Sun Jun 12 19:08:07 2016 >>> kde-apps/solid-runtime-15.12.3
Sun Jun 12 19:08:17 2016 >>> kde-apps/kreadconfig-15.12.3
Sun Jun 12 19:08:28 2016 >>> kde-apps/ktraderclient-15.12.3
Sun Jun 12 19:08:37 2016 >>> kde-apps/kdebase-menu-icons-15.12.3
Sun Jun 12 19:08:48 2016 >>> kde-apps/knewstuff-15.12.3
Sun Jun 12 19:08:59 2016 >>> kde-apps/kquitapp-15.12.3
Sun Jun 12 19:09:12 2016 >>> kde-apps/kurifilter-plugins-15.12.3
Sun Jun 12 19:09:50 2016 >>> kde-apps/plasma-runtime-15.12.3
Sun Jun 12 19:10:01 2016 >>> kde-apps/kdontchangethehostname-15.12.3
Sun Jun 12 19:10:11 2016 >>> kde-apps/kiconfinder-15.12.3
Sun Jun 12 19:10:24 2016 >>> kde-apps/knotify-15.12.3
Sun Jun 12 19:10:35 2016 >>> kde-apps/kstart-15.12.3
Sun Jun 12 19:10:46 2016 >>> kde-apps/kimgio-15.12.3
Sun Jun 12 19:10:56 2016 >>> kde-apps/kdebase-menu-15.12.3
Sun Jun 12 19:11:08 2016 >>> kde-apps/kpasswdserver-15.12.3
Sun Jun 12 19:11:19 2016 >>> kde-apps/kdebase-desktoptheme-15.12.3
Sun Jun 12 19:11:35 2016 >>> kde-apps/phonon-kde-15.12.3
Sun Jun 12 19:11:46 2016 >>> kde-apps/kfile-15.12.3
Sun Jun 12 19:11:57 2016 >>> kde-apps/kioclient-15.12.3
Sun Jun 12 19:12:09 2016 >>> kde-apps/kdebugdialog-15.12.3
Sun Jun 12 19:12:20 2016 >>> kde-apps/renamedlg-plugins-15.12.3
Sun Jun 12 19:12:48 2016 >>> kde-apps/kde-wallpapers-15.08.3
Sun Jun 12 19:12:56 2016 >>> kde-plasma/kwallet-pam-5.6.4-r1
Sun Jun 12 19:13:09 2016 >>> kde-apps/kdebase-data-15.12.3
Sun Jun 12 19:13:14 2016 >>> kde-apps/kdebase-runtime-meta-15.12.3
</code>
Or maybe, the problem stems from a kde 4 conflict - as I mentioned previously, by deleting ~/.kde4 folder I could temporarily avoid the crash...
Comment 13 jhon 2016-06-14 21:31:14 UTC
Update: Kwin still randomly crashes, albeit not upon toggling Kodi full screen mode anymore.
Comment 14 Azamat H. Hackimov 2016-07-11 20:42:20 UTC
Created attachment 440386 [details, diff]
Patch to address kwin crashes.

jhon do you have nvidia video card with nvidia-drivers? It is your case: 
https://bugs.kde.org/show_bug.cgi?id=347495 ?

Can you apply attached file for check?
Comment 15 jhon 2016-07-13 16:55:25 UTC
(In reply to Azamat H. Hackimov from comment #14)
> Created attachment 440386 [details, diff] [details, diff]
> Patch to address kwin crashes.
> 
> jhon do you have nvidia video card with nvidia-drivers? It is your case: 
> https://bugs.kde.org/show_bug.cgi?id=347495 ?
> 
> Can you apply attached file for check?

Hi, I have nvidia card but am using nouveau driver.
Anyways, I applied the patch yet unfortunately I still get the decorations crashes.

Lately (maybe past 2 weeks), it become even worse as previously I could issue:
kbuildsycoca5 ; kquitapp5 plasmashell && plasmashell
using krunner (alt+F2) and then plasma would refresh itself.
but this is no longer the case, since now plasma refreshes itself but the decorations remain hidden and windows cannot be controlled through kde's task manager...
Comment 16 jhon 2016-07-31 20:33:51 UTC
Update: Ever since I upgraded to plasma 5.6 (stable version currently 5.6.5) it seems the crashes are gone.

Therefore I deduce the problem was either in one of Plasma 5.5 parts such as kwin for instance, or qt 5.5 and it's a shame that a buggy version was released as stable. :(
Comment 17 Andreas Sturmlechner gentoo-dev 2016-07-31 21:08:14 UTC
Glad it works for you now.

(In reply to jhon from comment #16)
> and it's a shame that a buggy version was released as stable. :(

No software is free of bugs.
Comment 18 jhon 2016-09-01 07:18:26 UTC
Well, the bug is back :(
Comment 19 Tomáš Mózes 2016-09-01 08:49:17 UTC
Can you please provide some more info about the changes done on the system, versions, etc.?
Comment 20 jhon 2016-09-01 16:08:22 UTC
Sure, what versions do you need?
I have kde-plasma/kwin-5.6.5-r1 and dev-qt/qtcore both versions 4.8.6-r2 and 5.6.1 (unfortunately some kde apps still need the 4th version, for instance:
>=app-text/poppler-0.20[qt4,-exceptions(-)] required by (kde-apps/okular-16.04.3:4/16.04::gentoo, installed)

I can tell you that it only happens when I'm toggling full-screen mode - but not every time. E.g I can watch some video posted on a news site on the web, then make it full screen mode (to see clearer), yet once I exit full screen mode - all the windows on the desktop will have no decorations (borders, buttons, etc...). However, once I log out and back in trying to reproduce the same issue it won't necessarily happen again.
Therefore I say it crashes occasionally, the only pattern I see is the full screen mode.
Comment 21 Tomáš Mózes 2016-10-18 09:20:39 UTC
(In reply to jhon from comment #20)
> Sure, what versions do you need?

Mostly KDE software versions.
Comment 22 Tomáš Mózes 2016-10-18 09:21:23 UTC
Is this still a problem?
Comment 23 jhon 2016-10-19 09:09:04 UTC
(In reply to Tomáš Mózes from comment #22)
> Is this still a problem?

Actually, now that Plasma 5.7 became stable I haven't encountered the issue as of yet.
However, it was like that when Plasma 5.6 became stable and only after a while the issue popped up again.
So I can't confirm the issue is gone...
Comment 24 Tomáš Mózes 2016-10-20 04:24:30 UTC
Closing again, if it happens again, feel free to reopen.