Bug 480924

Summary: Kwin_wayland spams the systemlog with 4 messages / sec
Product: [Plasma] kwin Reporter: Reinier <rpbikker>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, xaver.hugl
Priority: NOR Keywords: qt6
Version First Reported In: 5.93.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Reinier 2024-02-05 21:24:46 UTC
SUMMARY

When I start  a KDE wayland session the system log receives the following message at a rate of about 4 messages per second.

kwin_wayland[ PID ]: kwin_scene_opengl: 0x1: GL_INVALID_OPERATION in glUniformMatrix(matrix size mismatch)

STEPS TO REPRODUCE
1. Start KDE Wayland
2. type journalctl -f

OBSERVED RESULT
A constant stream of the above message.

EXPECTED RESULT
No messages or a single message.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40 Rawhide
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Machine is Qemu/KVM vm.

inxi -G
Graphics:
  Device-1: Red Hat Virtio 1.0 GPU driver: virtio-pci v: 1
  Display: wayland server: Xwayland v: 23.2.4 compositor: kwin_wayland
    driver: N/A resolution: 1920x1080
  API: EGL v: 1.5 drivers: kms_swrast,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.5 vendor: mesa v: 24.0.0 renderer: llvmpipe (LLVM 17.0.6 256 bits)
  API: Vulkan v: 1.3.268 drivers: llvmpipe surfaces: xcb,xlib,wayland
Comment 1 Zamundaaa 2024-02-05 23:15:21 UTC
https://invent.kde.org/plasma/kwin/-/commit/a649be64db7c66eee5ed26e26ea3f5aeb45552d8 fixed this, but only for when you have HDR enabled or KWIN_DRM_FORCE_COLOR_MANAGEMENT set, which I assume you don't?
Comment 2 Reinier 2024-02-05 23:37:28 UTC
No, I don't. Bog standard Fedora 40 KDE deployed in a WM.

But here is a thing. I didn't see this with kwin_wayland 5.92.0. After upgrading to kwin-wayland-5.93.0-1.fc40.x86_64, the errors suddenly started rolling about 4 hours into the session. Can't see what triggered it in the systemlog. Today the errors started right after logging into the session. However, I just upgraded to kwin-wayland-5.93.0-2.fc40.x86_64, and I haven't seen the errors yet after a reboot. I will leave the session running and report back.
Comment 3 Reinier 2024-02-06 22:02:37 UTC
Haven't seen these errors again in the systemlog in nearly 24h. I suggest closing this bug unless there something you want me to test.
Comment 4 Nate Graham 2024-02-06 23:34:24 UTC
Ok cool, let's close it until you see it again.