Bug 489857

Summary: Crash in OpenGL
Product: [Plasma] kwin Reporter: main.zone4654
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: cobeb49063, kde, kde, nate, nepnep, o.malek.cz, postix, xaver.hugl
Priority: NOR    
Version: 6.1.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: coredump
journalctl
journalctl -b 0 --user-unit plasma-kwin_wayland.service

Description main.zone4654 2024-07-07 04:33:34 UTC
Created attachment 171448 [details]
coredump

SUMMARY

Started since 6.1.1, kwin_wayland would crash periodically. Unable to reproduce reliably.

STEPS TO REPRODUCE (not reliably)
1. Use the computer for a few days
2. Press Tab+Alt

OBSERVED RESULT
Kwin crashes, all programs abort



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Comment 1 main.zone4654 2024-07-07 04:41:18 UTC
Created attachment 171449 [details]
journalctl

A dump of journalctl from 1minute before to 1minute after the crash. Of note, there seem to be a lot of `kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)` errors. Unsure if related.
Comment 2 main.zone4654 2024-07-07 07:48:34 UTC
Created attachment 171451 [details]
journalctl -b 0 --user-unit plasma-kwin_wayland.service
Comment 3 main.zone4654 2024-07-07 07:50:24 UTC
The bug is unpredictable but has happened at least 3x over the past few hours. This makes the system unstable for production at all. I am switching to my laptop in the meantime.
Comment 4 David Edmundson 2024-07-11 10:21:56 UTC
*** Bug 489531 has been marked as a duplicate of this bug. ***
Comment 5 Zamundaaa 2024-07-11 14:52:08 UTC
These OpenGL warnings are unrelated and harmless, it's just Qt trying to set a back buffer where there is none.

The crash is in a thread in the OpenGL driver; please report this at https://gitlab.freedesktop.org/mesa/mesa/-/issues
Comment 6 Zamundaaa 2024-11-04 21:55:02 UTC
*** Bug 494440 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2024-11-13 17:20:51 UTC
*** Bug 496167 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2024-11-13 17:23:10 UTC
*** Bug 495678 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2024-11-20 20:23:03 UTC
*** Bug 496420 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-11-20 20:23:59 UTC
We have duplicates from people using non-NVIDIA cards, so it seems more likely this is a Qt issue, not an NVIDIA driver issue.
Comment 11 Dominik 2024-11-21 06:39:02 UTC
(In reply to Nate Graham from comment #10)
> We have duplicates from people using non-NVIDIA cards, so it seems more
> likely this is a Qt issue, not an NVIDIA driver issue.

My original report https://bugs.kde.org/show_bug.cgi?id=496167 was filed with an Intel iGPU. And it started when I updated Plasma to 6.2.0 and Qt from 6.7.2 to 6.7.3.

I also can reliably reproduce the freeze after hibernating the system and moving a Firefox window.

Some of the changes during the last weeks changed it a bit as the system now freezes sometimes without hibernation with a freshly booted system. But hibernation is reliable. I can continue working after hibernation as long as I don't move any window. Some windows can even be dragged without a freeze, but most windows trigger the freeze.

Please let me know if I can contribute anything.