Bug 496167

Summary: System freeze after wakeup from hibernate/sleep when dragging a window
Product: [Plasma] kwin Reporter: Dominik <kde>
Component: xwaylandAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: crash CC: nate
Priority: NOR Keywords: regression
Version: 6.2.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=489531
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dominik 2024-11-12 10:14:34 UTC
SUMMARY

Since the release of 6.2.0 my system freezes every time after waking up from hibernation or sleep when a window is dragged. It does not happen on the first drag of a window, but it happens at some point certain.

STEPS TO REPRODUCE
1. Start a new session. Work as normal
2. Send system to hibernation
3. Wake system from hibernation
4. Drag some windows around until the system freezes (happens quite often for Firefox and Dolphin, but just because those are the windows I'm dragging the most.
5. Watch system becoming unresponsive while the journal fills itself with messages and audio continues.

OBSERVED RESULT

System comes to a halt. Cannot move the mouse, cannot switch to a text terminal. Audio continues. Systems seems to continue working, but can't be interacted with.

EXPECTED RESULT

System can be used as normal after being resumed from hibernation.

SOFTWARE/OS VERSIONS

Operating System: Manjaro Linux 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.6-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 22 × Intel® Core™ Ultra 7 165H
Memory: 30.2 GiB of RAM
Graphics Processor: Mesa Intel® Arc

ADDITIONAL INFORMATION

I deactivated all kwin effects I had active to rule out that these are not optimised for 6.2.x. I also deactivated the integrated wobbly windows effect. The error still occurs. This was not an issue with 6.1.x

Journal is flooded with
```
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 07 16:13:46 kwin_wayland[1419]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
```

but it looks like that recently changed with one of the last updates. And now the journal is flooded with these messages
```
Nov 12 07:32:39 kwin_wayland[1379]: kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Nov 12 07:32:39 kwin_wayland[1379]: This plugin does not support setting window masks
Nov 12 07:32:39 kwin_wayland[1379]: This plugin does not support setting window masks
Nov 12 07:32:39 kwin_wayland[1379]: This plugin does not support setting window masks
```
Comment 1 Nate Graham 2024-11-13 17:20:50 UTC

*** This bug has been marked as a duplicate of bug 489857 ***
Comment 2 Nate Graham 2024-11-21 20:50:44 UTC
Apparently not a duplicate since Bug 489857 is as crash, not a freeze.