https://bugs.kde.org/show_bug.cgi?id=443341
Bug ID: 443341 Summary: Flickering and hanging on Nvidia starting at kwin_x11 5.22.90 Product: kwin Version: 5.22.90 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: compositing Assignee: kwin-bugs-n...@kde.org Reporter: nyanpas...@tuta.io Target Milestone: --- SUMMARY Around the time I upgraded to Plasma beta 5.22.90 (and nvidia 470.74), KWin become substantially more unstable. Opening some apps caused black flickering on most of the screen, and the screen froze when re-enabling compositing after some time spent with it off. STEPS TO REPRODUCE For screen hang: 1. Keep compositing at OpenGL 2.0. 2. Turn off compositing using alt+shift+f12 or the equivalent shortcut. I find kwin much more stable in this state. 3. Use the computer for some time. 4. Enable compositing using the keyboard shortcut. OBSERVED RESULT Screen stops updating except for cursor. If I switch to TTY and back, screen is black except for cursor. I can still interact with windows despite screen not redrawing, and restarting kwin_x11 (from Konsole or TTY) fixes the issue. (I'm using systemd user boot for Plasma, so that's systemctl --user restart plasma-kwin_x11.) Full-screen flickering is more random, and is triggered by launching certain application windows (generally GPU-accelerated ones like QML-based System Settings, or gtk4-demo's "Automatic Scrolling"). If you're unlucky, the rest of the screen will flash between the intended contents and black on every 2 or 3 frames, until the window is closed. (IIRC dragging the window around stopped flickering around wherever you dragged the window.) Reopening the window will generally trigger the bug again. Restarting kwin_x11 will prevent the bug from happening even with the same apps, for some time. Sometimes KDE will turn off compositing because it detects OpenGL-related crashes. EXPECTED RESULT Compositing works. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.22.90 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 Kernel Version: 5.14.8-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GT 730/PCIe/SSE2 pacman says I installed nvidia 470.74 around the same time as kwin 5.22.90. I'm not sure which caused the issue. ADDITIONAL INFORMATION Bug 424311 has been filed for a while now, but it seems similar. I have KWIN_DRM_USE_EGL_STREAMS set, but this didn't change between "before" and "after" I saw the bug. I don't think I have a kwin_env.sh in place, and I don't see __GL_NO_DSO_FINALIZER set (though I know I experimented with it in the past, in a failed attempt to fix the KWin shutdown hang where when you log out or shutdown, KWin burns a CPU core because it's stuck in Nvidia's /usr/lib/libGLX_nvidia.so.0 in a lock cmpxchg loop, I suspect waiting for a spinlock). Should I report the KWin hang bug, here or to Nvidia? I'm not sure if it still occurs. -- You are receiving this mail because: You are watching all bug changes.