Black horizontal band across the whole desktop while the game runs (RX 9060 XT, Bazzite KDE Wayland); KWin logs GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT #268

Closed
opened 2026-12-02 23:07:19 +00:00 by github-bot · 2 comments
Owner

@⁠Jruiz1001 on GitHub · 2026-12-02 23:03 UTC · original

Summary

./run.sh play starts, loads all pipelines, reaches the menu and, according to
the log, presents frames normally (frame=16384, ~100 fps in the menu). But a
black horizontal band appears across my whole desktop and no image of the game
is ever shown. The band disappears when the game process is killed. KWin logs
Invalid framebuffer status: "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT" about twice
per second, only while the game runs. The kernel log is clean (no GPU reset,
page fault or ring timeout).

Environment

  • OS: Bazzite 45.20261125, KDE Plasma 6.8.3, KWin Wayland (no X11 session installed)
  • Kernel: 7.3.5-ogc3.1.fc45
  • CPU: Ryzen 5 9600X, 32 GB RAM
  • GPUs: RX 9060 XT (card1, PCI 03:00.0, monitor on DP-1), Radeon 610M iGPU (card2, no monitor)
  • Monitor: 2560x1440 @ 180 Hz, scale 110%
  • Wine: GE-Proton11-11 (used by setup.sh instead of building a wineserver)
  • Built inside an Arch distrobox, run from the host
  • Commit: 241c79e303
  • run.conf: GAME=, KEEP_FREE=4096

displays.txt
game-end.log
game-start.log
gpus.txt
kernel.log
kwin.log
system.txt
versions.txt
vulkan.txt

Captura de pantalla_02122026_163751

Steps to reproduce

  1. ./setup.sh (finished without errors)
  2. ./run.sh shaders (hits=2692 misses=0)
  3. ./run.sh play

What I tried (same black band in every case unless noted)

  • Default launch: Xwayland crashed once (miValidateTree / compRedirectWindow),
    taking down other X11 apps
  • gamescope -W 1920 -H 1080 -f -- ./run.sh play: loops
    Failed to create swapchain - vr: VK_ERROR_OUT_OF_HOST_MEMORY
  • env -u DISPLAY ./run.sh play: no Xwayland crash, same band
  • RADV_DEBUG=nodcc
  • VICTORY_FULLSCREEN=1, VICTORY_OUTPUT=1920x1080 and 1280x720
    (the band keeps the same size and position)
  • KDE display settings: color depth 16 bit and 8 bit
  • Scale 100%

Logs

Attached: game-start.txt, game-end.txt, kwin.txt, kernel.txt, displays.txt,
gpus.txt, vulkan.txt, system.txt, versions.txt

Questions

  • README says it was tested on RX 9070 XT / Arch / Wine 11.22. Is the RX 9060 XT
    or a KWin Wayland session known to be unsupported?
  • Is there a debug setting or build that would help find why KWin cannot
    attach the game's buffers?
**@⁠Jruiz1001** on GitHub · 2026-12-02 23:03 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/268) ## Summary `./run.sh play` starts, loads all pipelines, reaches the menu and, according to the log, presents frames normally (frame=16384, ~100 fps in the menu). But a black horizontal band appears across my whole desktop and no image of the game is ever shown. The band disappears when the game process is killed. KWin logs `Invalid framebuffer status: "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"` about twice per second, only while the game runs. The kernel log is clean (no GPU reset, page fault or ring timeout). ## Environment - OS: Bazzite 45.20261125, KDE Plasma 6.8.3, KWin Wayland (no X11 session installed) - Kernel: 7.3.5-ogc3.1.fc45 - CPU: Ryzen 5 9600X, 32 GB RAM - GPUs: RX 9060 XT (card1, PCI 03:00.0, monitor on DP-1), Radeon 610M iGPU (card2, no monitor) - Monitor: 2560x1440 @ 180 Hz, scale 110% - Wine: GE-Proton11-11 (used by setup.sh instead of building a wineserver) - Built inside an Arch distrobox, run from the host - Commit: 241c79e303e197dc0184323fbf0cd8dc82a3eb6e - run.conf: GAME=<dump>, KEEP_FREE=4096 [displays.txt](https://github.com/user-attachments/files/35770055/displays.txt) [game-end.log](https://github.com/user-attachments/files/35770054/game-end.log) [game-start.log](https://github.com/user-attachments/files/35770056/game-start.log) [gpus.txt](https://github.com/user-attachments/files/35770048/gpus.txt) [kernel.log](https://github.com/user-attachments/files/35770051/kernel.log) [kwin.log](https://github.com/user-attachments/files/35770053/kwin.log) [system.txt](https://github.com/user-attachments/files/35770047/system.txt) [versions.txt](https://github.com/user-attachments/files/35770052/versions.txt) [vulkan.txt](https://github.com/user-attachments/files/35770049/vulkan.txt) <img width="2560" height="1440" alt="Captura de pantalla_02122026_163751" src="https://github.com/user-attachments/assets/89444b38-2d20-4ed4-8c30-e0257b4b177b" /> ## Steps to reproduce 1. `./setup.sh` (finished without errors) 2. `./run.sh shaders` (hits=2692 misses=0) 3. `./run.sh play` ## What I tried (same black band in every case unless noted) - Default launch: Xwayland crashed once (miValidateTree / compRedirectWindow), taking down other X11 apps - `gamescope -W 1920 -H 1080 -f -- ./run.sh play`: loops `Failed to create swapchain - vr: VK_ERROR_OUT_OF_HOST_MEMORY` - `env -u DISPLAY ./run.sh play`: no Xwayland crash, same band - `RADV_DEBUG=nodcc` - `VICTORY_FULLSCREEN=1`, `VICTORY_OUTPUT=1920x1080` and `1280x720` (the band keeps the same size and position) - KDE display settings: color depth 16 bit and 8 bit - Scale 100% ## Logs Attached: game-start.txt, game-end.txt, kwin.txt, kernel.txt, displays.txt, gpus.txt, vulkan.txt, system.txt, versions.txt ## Questions - README says it was tested on RX 9070 XT / Arch / Wine 11.22. Is the RX 9060 XT or a KWin Wayland session known to be unsupported? - Is there a debug setting or build that would help find why KWin cannot attach the game's buffers?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 23:07:21 +00:00
Author
Owner

@⁠El-Biiscuit on GitHub · 2026-12-03 00:47 UTC · original

I hit the same symptom (log shows frames presented, ~100 fps in the menu, but only a black horizontal band on screen, clean kernel log) and traced it to the Wine prefix rather than the GPU path. It may be the same cause here.

Setup: RX 6700 XT, Fedora 45, KDE Plasma Wayland, GE-Proton11-16, f7f0360.

What was wrong: the prefix had absurd window metrics:

[Control Panel\\Desktop\\WindowMetrics]
"CaptionHeight"="5434094"
"SmCaptionHeight"="5434094"
"MenuHeight"="10867998"

They were written when setup.sh ran wineboot, on a host without the 32-bit FreeType (freetype.i686 on Fedora). Wine derives these heights from font metrics, so that is the likely origin, though I did not prove it.

Why it gives a black band: make_window asks for the output size through AdjustWindowRect + CreateWindowExW. With a 5.4M px caption, the window becomes ~5434188 px wide with a client area 0–1 px high. WINEDEBUG=+waylanddrv shows it:

WAYLAND_WindowPosChanging hwnd 0x1006a ... rects { window (0,0)-(5434188,5434103), client (4,5434099)-(5434184,5434099) ... }
wayland_surface_reconfigure_size hwnd=0x1006a size=5434180x1

vkGetPhysicalDeviceSurfaceCapabilitiesKHR then reports maxImageExtent 0, vkd3d-proton's dxgi_vk_swap_chain_is_occluded() treats the swap chain as occluded, and Present returns DXGI_STATUS_OCCLUDED (0x087A0001, logged once as "swap chain did not present the frame"). Nothing is ever shown. With the same prefix, Xwayland also aborted (compRedirectWindow → miValidateTree) on the X11 path, and gamescope failed with Failed to create swapchain, vr -1. I have not retested those two paths since the fix, so treat them as related, not confirmed.

Check:

grep -A15 'WindowMetrics' local/prefix/user.reg | grep -E 'Height|Width'

Values in the millions are the problem. Normal values are around 17–18 px, or negative twips such as -270.

Fix (with the game and wineserver stopped, after backing up user.reg):

sed -i -e 's/^"CaptionHeight"=.*/"CaptionHeight"="18"/' \
       -e 's/^"SmCaptionHeight"=.*/"SmCaptionHeight"="17"/' \
       -e 's/^"MenuHeight"=.*/"MenuHeight"="18"/' local/prefix/user.reg

After that the window is created at the requested size (1920×1080 here), there is no more occlusion, and the game image shows. Installing the 32-bit FreeType before (re)creating the prefix should avoid it.

I don't know whether your prefix has the same values, and I did not see the GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT messages from KWin. That error would fit a 1-pixel-high surface, but it is unconfirmed.

**@⁠El-Biiscuit** on GitHub · 2026-12-03 00:47 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/268#issuecomment-7363588350) I hit the same symptom (log shows frames presented, ~100 fps in the menu, but only a black horizontal band on screen, clean kernel log) and traced it to the Wine prefix rather than the GPU path. It may be the same cause here. **Setup:** RX 6700 XT, Fedora 45, KDE Plasma Wayland, GE-Proton11-16, `f7f0360`. **What was wrong:** the prefix had absurd window metrics: ``` [Control Panel\\Desktop\\WindowMetrics] "CaptionHeight"="5434094" "SmCaptionHeight"="5434094" "MenuHeight"="10867998" ``` They were written when `setup.sh` ran `wineboot`, on a host without the 32-bit FreeType (`freetype.i686` on Fedora). Wine derives these heights from font metrics, so that is the likely origin, though I did not prove it. **Why it gives a black band:** `make_window` asks for the output size through `AdjustWindowRect` + `CreateWindowExW`. With a 5.4M px caption, the window becomes ~5434188 px wide with a client area 0–1 px high. `WINEDEBUG=+waylanddrv` shows it: ``` WAYLAND_WindowPosChanging hwnd 0x1006a ... rects { window (0,0)-(5434188,5434103), client (4,5434099)-(5434184,5434099) ... } wayland_surface_reconfigure_size hwnd=0x1006a size=5434180x1 ``` `vkGetPhysicalDeviceSurfaceCapabilitiesKHR` then reports `maxImageExtent` 0, vkd3d-proton's `dxgi_vk_swap_chain_is_occluded()` treats the swap chain as occluded, and `Present` returns `DXGI_STATUS_OCCLUDED` (`0x087A0001`, logged once as "swap chain did not present the frame"). Nothing is ever shown. With the same prefix, Xwayland also aborted (`compRedirectWindow` → `miValidateTree`) on the X11 path, and gamescope failed with `Failed to create swapchain, vr -1`. I have not retested those two paths since the fix, so treat them as related, not confirmed. **Check:** ```sh grep -A15 'WindowMetrics' local/prefix/user.reg | grep -E 'Height|Width' ``` Values in the millions are the problem. Normal values are around 17–18 px, or negative twips such as `-270`. **Fix** (with the game and `wineserver` stopped, after backing up `user.reg`): ```sh sed -i -e 's/^"CaptionHeight"=.*/"CaptionHeight"="18"/' \ -e 's/^"SmCaptionHeight"=.*/"SmCaptionHeight"="17"/' \ -e 's/^"MenuHeight"=.*/"MenuHeight"="18"/' local/prefix/user.reg ``` After that the window is created at the requested size (1920×1080 here), there is no more occlusion, and the game image shows. Installing the 32-bit FreeType before (re)creating the prefix should avoid it. I don't know whether your prefix has the same values, and I did not see the `GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT` messages from KWin. That error would fit a 1-pixel-high surface, but it is unconfirmed.
Author
Owner

@⁠Jruiz1001 on GitHub · 2026-12-03 04:19 UTC · original

u are the goat now it works

**@⁠Jruiz1001** on GitHub · 2026-12-03 04:19 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/268#issuecomment-7367515254) u are the goat now it works
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#268
No description provided.