SUMMARY Sometimes after opening krita, kwin_wayland crashes. I've noticed that before kwin crashes either Dolphin or a desktop window starts paining contents of Krita. STEPS TO REPRODUCE 1. Open Krita OBSERVED RESULT Crash. EXPECTED RESULT No crash. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Created attachment 133016 [details] first case: kwin crashes after clicking pointer
Created attachment 133017 [details] second case: kwin crashes just randomly
I don't understand how XdgToplevelClient::surface() can return null. It should never happen.
Created attachment 133019 [details] the moment kwin is about to crash (note the desktop window displays krita's splash screen)
It seems like this bug affects only git master.
This is a regression introduced by https://invent.kde.org/plasma/kwin/-/commit/28b6db4993612ae7c7244faa07420b19e373b418. Weird.
Ah resource ids are not unique across clients.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/424
Git commit d91da41cef17e34841ad307041fc00f76c105ba6 by Vlad Zahorodnii. Committed on 04/11/2020 at 13:35. Pushed by vladz into branch 'master'. wayland: Fix binding of xwayland surfaces to windows Surface ids are not unique across clients. If the underlying surface of an XdgToplevelClient is replaced with an Xwayland's surface, you may see weird results such as a desktop window having the contents of an X11 window or even worse a crash. M +18 -5 wayland_server.cpp https://invent.kde.org/plasma/kwin/commit/d91da41cef17e34841ad307041fc00f76c105ba6
Not sure about Fixed-In. It's a git master regression.
Oh I see.
(In reply to Vlad Zahorodnii from comment #9) > Git commit d91da41cef17e34841ad307041fc00f76c105ba6 by Vlad Zahorodnii. > Committed on 04/11/2020 at 13:35. > Pushed by vladz into branch 'master'. > > wayland: Fix binding of xwayland surfaces to windows > > Surface ids are not unique across clients. If the underlying surface of > an XdgToplevelClient is replaced with an Xwayland's surface, you may see > weird results such as a desktop window having the contents of an X11 > window or even worse a crash. > > M +18 -5 wayland_server.cpp > > https://invent.kde.org/plasma/kwin/commit/ > d91da41cef17e34841ad307041fc00f76c105ba6 I'm curious if this could have been the cause of 400987 ?
(In reply to Brian from comment #12) > I'm curious if this could have been the cause of 400987 ? I doubt... However, I have never seen bug 400987 in action.