Bug 489857 - Crash in OpenGL
Summary: Crash in OpenGL
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.1.2
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 496420 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-07-07 04:33 UTC by main.zone4654
Modified: 2025-04-29 21:47 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
coredump (61.60 KB, text/plain)
2024-07-07 04:33 UTC, main.zone4654
Details
journalctl (281.93 KB, text/plain)
2024-07-07 04:41 UTC, main.zone4654
Details
journalctl -b 0 --user-unit plasma-kwin_wayland.service (392.78 KB, text/plain)
2024-07-07 07:48 UTC, main.zone4654
Details

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 12 Nate Graham 2025-02-10 20:23:48 UTC
*** Bug 496420 has been marked as a duplicate of this bug. ***
Comment 13 Peter Harrison 2025-04-29 21:47:44 UTC
I had a similar issue with the "kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)" messages repeatedly showing up in the /var/log/syslog file. It caused my system to slow down, freeze or crash depending on the load and the uptime. This was resolved by adding this to the kernel boot parameters
 
nvidia.NVreg_EnableGpuFirmware=0

It is discussed here: https://bbs.archlinux.org/viewtopic.php?id=300648