Bug 500530

Summary: kwin_scene_opengl: 0x502: GL_INVALID_OPERATION with window snapping
Product: [Plasma] kwin Reporter: NovaliX <novalix>
Component: scene-openglAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kde, nate
Priority: NOR    
Version First Reported In: 6.3.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description NovaliX 2025-02-21 16:58:30 UTC
SUMMARY
When i trying to snap a window, a bunch of GL_INVALID_OPERATION occurs. The animation is still done, so that's not an emergency, but it's an issue that should be resolved imo to avoid flooding the journal.

By "snapping" i mean the little animation which shows us the new size of the window "snapped" to the top left corner when we move the window to the top left corner for example.

STEPS TO REPRODUCE
1. Just move the window to the top left corner or wherever that triggers the snapping animation to occur

OBSERVED RESULT
The animation is done indeed, but a bunch of GL_INVALID_OPERATIONS are emitted in the journal during that time.

EXPECTED RESULT
The animation is done, and no invalid operations in the logs.


SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux version: Fedora Linux 41
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce RTX 2080 Super with Max-Q Design/PCIe/SSE2
NVidia Driver version : 565.77

(As this is my first issue posted, I'm willing to hear some feedback on how to improve my reportings. If you have any remarks, please let me know about them.)
Comment 1 Adrien 2025-02-23 21:51:59 UTC
Same issue here. 
On top of that, kde crashes around 1/3 of the time when performing this action. The system completely freezes, in the same manner as described in the bug 491751. Only a hard-reset do anything.
The only thing I have in the log in between the crash/freeze and the hard-reset is : 
kwin_scene_opengl: 0x502: GL_INVALID_OPERATION error generated.

System:
Operating System: Arch Linux 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-9600KF CPU @ 3.70GHz
Memory: 15.6 Gio of RAM
Graphics Processor: NVIDIA GeForce RTX 3070
Comment 2 Nate Graham 2025-02-24 16:07:06 UTC
Please open a new bug report for the crash/freeze (also specify which one it is; a crash and a freeze are different outcomes).