Bug 493996

Summary: kwin freezes the DE and spams journalctl when connecting a VR device
Product: [Plasma] kwin Reporter: ExDe707 <exde707contact>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Full journalctl since boot

Description ExDe707 2024-10-02 20:59:30 UTC
Created attachment 174338 [details]
Full journalctl since boot

SUMMARY
I was setting up and troubleshooting my VR setup to work on Linux. If I connect my Valve Index HMD to my PC, via the DisplayPort on my GPU, my desktop freezes for around four to five minutes. This sometimes also occurs when restarting the HMD through SteamVR. During this, my system log is spammed by these two errors:

Oct 02 21:59:43 DESKTOP-KG7872C kwin_wayland[1103]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
Oct 02 21:59:43 DESKTOP-KG7872C kwin_wayland[1103]: kwin_scene_opengl: 0x502: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible

See attached journalctl.log for a full journalctl since boot. I removed most of the two lines spammed as the file would've exceeded 40MB in size.

STEPS TO REPRODUCE
1. Install Steam and SteamVR
2. Plug in the Valve Index HMD to power, a USB 3.0 port and a free DisplayPort on your GPU
3. (Optional) Launch SteamVR and restart the headset by right clicking the HMD icon and click "Restart headset"

OBSERVED RESULT
KDE Plasma freezes and I am unable to do anything on my PC. The HMD display is not detected.

EXPECTED RESULT
The HMD display is detected. Launching any VR application briefly causes the main display to go black.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-9700K CPU @ 3.60GHz
Memory: 33.6 GB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2

fastfetch:
OS: Arch Linux x86_64
Host: MS-7B49 (1.0)
Kernel: Linux 6.11.1-arch1-1
Uptime: 7 hours, 15 mins
Packages: 1411 (pacman)
Shell: zsh 5.9
Display (AG241QG4): 2560x1440 @ 144 Hz in 26″ [External] *
Display (VA24D): 1080x1920 @ 75 Hz in 24″ [External]
DE: KDE Plasma 6.1.5
WM: KWin (Wayland)
WM Theme: Jolly-Blur-Aurorae-6
Theme: Breeze (Sweet) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
Icons: Vivid-Dark-Icons [Qt], Vivid-Dark-Icons [GTK2/3/4]
Font: Noto Sans (12pt) [Qt], Noto Sans (12pt) [GTK2/3/4]
Cursor: Sweet (24px)
Terminal: kitty 0.36.4
Terminal Font: NotoSansMono-Regular (11pt)
CPU: Intel(R) Core(TM) i7-9700K (8) @ 4.90 GHz
GPU: NVIDIA GeForce RTX 3080
Memory: 6.91 GiB / 31.29 GiB (22%)
Swap: 768.00 KiB / 4.00 GiB (0%)
Disk (/): 584.75 GiB / 1.82 TiB (31%) - btrfs
Locale: en_US.UTF-8

ADDITIONAL INFORMATION
The problem is inconsistent. On a good day, my HMD works and my main display briefly goes black before I initialize my VR setup and the desktop doesn't freeze. I suspect a defective tether cable is why my Index's display isn't connecting properly but regardless
Comment 1 Zamundaaa 2024-10-02 23:50:11 UTC

*** This bug has been marked as a duplicate of bug 493148 ***