Bug 431826

Summary: XWayland windows only get rendered on window resize
Product: [Plasma] kwin Reporter: Ilya Bizyaev <bizyaev>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: butirsky, nate
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: wayland-session.log

Description Ilya Bizyaev 2021-01-19 19:55:10 UTC
SUMMARY
In the Plasma Wayland session from master (built with kdesrc-build), XWayland windows do not show any contents after launch (or do not repaint later) unless they are being resized.


STEPS TO REPRODUCE
1. Log in to the development Plasma Wayland session
2. Launch a GTK app with GDK_BACKEND=x11 / a Qt app with QT_QPA_PLATFORM=xcb

OBSERVED RESULT
The app will first be drawn as an empty window frame, and then will only get repainted when resized with mouse or keyboard.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.2-1.g572ce1d-default
Graphics Processor: Mesa DRI IntelĀ® UHD Graphics

ADDITIONAL INFORMATION
There are no problems of this sort with Plasma 5.20.x from openSUSE.
Comment 1 Vlad Zahorodnii 2021-01-25 12:12:03 UTC
I can't reproduce this bug with the latest openSUSE Krypton ISO both on my laptop and main pc.

It will be very helpful if you could apply https://invent.kde.org/plasma/kwin/-/merge_requests/616, restart your computer, and post ~/.local/share/sddm/wayland-session.log after launching any X11 application.
Comment 2 Vlad Zahorodnii 2021-01-25 12:18:20 UTC
edit: the merge request has landed. Could you please rebuild kwin and post wayland-session.log?
Comment 3 Ilya Bizyaev 2021-01-25 21:07:01 UTC
Created attachment 135180 [details]
wayland-session.log

Done
Comment 4 Vlad Zahorodnii 2021-01-26 07:50:28 UTC
Sigh, nothing useful in the log :(

Can you run the following command in the terminal

    env QT_LOGGING_RULES="kwin*.debug=true" dbus-run-session kwin_wayland --xwayland --exit-with-session=glxgears

and post the output here? Also, could you confirm that this bug occurs in a nested kwin_wayland compositor as well?
Comment 5 Ilya Bizyaev 2021-04-08 14:16:26 UTC
I can no longer reproduce this bug, closing.