Bug 491897

Summary: GL_INVALID_OPERATION in glBindTexture(target mismatch) on opening the overview effect
Product: [Plasma] kwin Reporter: postix <postix>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 6.1.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=513072
Latest Commit: Version Fixed/Implemented In: 6.1.5
Sentry Crash Report:

Description postix 2024-08-19 11:01:17 UTC
STEPS TO REPRODUCE
1. Open Overview

OBSERVED RESULT
```
kwin_wayland[5887]: kwin_scene_opengl: 0x3: GL_INVALID_OPERATION in glBindTexture(target mismatch)
```
is spammed in journalctl log


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.4-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 13.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics


inxi -G
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.2
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
    resolution: 1920x1080
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.5 renderer: AMD
    Radeon Graphics (radeonsi renoir LLVM 18.1.6 DRM 3.57
    6.10.4-200.fc40.x86_64)
  API: Vulkan v: 1.3.283 drivers: N/A surfaces: xcb,xlib,wayland
Comment 1 postix 2024-08-19 11:02:47 UTC
On opening the overview effect the log starts with ...

```
kwin_wayland[5887]: kwin_scene_opengl: 0x3: GL_INVALID_VALUE in glTexStorage2D(width, height or depth < 1)
kwin_wayland[5887]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
kwin_wayland[5887]: kwin_scene_opengl: 0x3: GL_INVALID_OPERATION in glBindFramebuffer(non-gen name)
kwin_wayland[5887]: kwin_scene_opengl: 0x3: GL_INVALID_FRAMEBUFFER_OPERATION in glClear(incomplete framebuffer)
```
Comment 2 postix 2024-08-19 12:33:26 UTC
Does https://invent.kde.org/plasma/kwin/-/merge_requests/6266 fix this?
Comment 3 Nate Graham 2024-08-19 19:10:48 UTC
Looks like it does for me!