Skip to content

[Bug]: SPICE OpenGL black screen after Mesa 26.3.1 update #643

Closed

Description

@JoLa61

Kernel

Linux 7.3.3-1-cachyos-eevdf

Desktop Environment / Window Manager

Other (specify in additional context)

CPU

Intel(R) Core(TM)2 Quad Q8400 (4) @ 2.67 GHz

GPU / Driver

AMD Radeon RX 480 Graphics

Description

After upgrading Mesa from 26.2.6 to 26.3.1, all my existing VMs show a black screen with SPICE OpenGL and VirtIO 3D enabled.

Steps to Reproduce

  1. Update Mesa from 26.2.6 to 26.3.1 on CachyOS.
  2. Start virt-manager under COSMIC or Hyprland (Wayland).
  3. Start a VM configured with SPICE OpenGL and VirtIO 3D acceleration.

Expected Behavior

The VM should display normally with SPICE OpenGL and VirtIO 3D acceleration enabled, as it did before the Mesa update.

Actual Behavior

The VM display remains black. Disabling OpenGL and VirtIO 3D fixes the issue. Using GDK_BACKEND=x11 virt-manager also works.

Logs / Error Messages

https://paste.cachyos.org/p/3f23a6a.log

Additional Context

COSMIC 1.0.0
spice 0.16.0-5, spice-gtk 0.43-2
GDK_BACKEND=x11 virt-manager works
Disabling OpenGL and VirtIO 3D also works
Rebooting does not resolve the issue

This may be related to #637, but that issue was reportedly resolved by using spice 0.16.0-5, which is already installed on my system.

I haven't confirmed the Mesa regression by downgrading.

Several others have the same issue reported in a Forum discussion: https://discuss.cachyos.org/t/virt-manager-black-screen-with-spice-opengl-after-mesa-update/39242

Activity

  1. added
    bug
    on Nov 20, 2026
  2. martino2k6 commented on Nov 20, 2026

    @martino2k6

    Same mesa 26.3.1 regression on Framework Desktop (Strix Halo, gfx1151) via Sunshine/Moonlight — KDE Plasma Wayland session: the Moonlight stream encodes fully black even though the compositor renders fine (spectacle screenshot = correct desktop), and the kscreenlocker password prompt is invisible with kwin_wayland: Failed to create framebuffer: Invalid argument logged on every lock. Downgrading mesa + vulkan-radeon (+ lib32/opencl/implicit-layer split pkgs) to 26.2.6-1 and rebooting fixes both. Same signature (working on 26.2.6 → black on 26.3.1, dmabuf/GL buffer sharing through a second consumer), different surface: hardware video encode importing the scanout buffer, and KWin importing the locker's surface.

  3. wubbl0rz commented on Nov 21, 2026

    @wubbl0rz

    same problem with mesa and sunshine moonlight and kde. restored snapshot from before the update and that fixed it.

  4. ptr1337 commented on Nov 21, 2026

    @ptr1337
    Member

    was this not fixed with -4?

    Anyways, pushing -5. God bless mesa :(

  5. JoLa61 commented on Nov 21, 2026

    @JoLa61
    Author

    Confirmed fixed with Mesa 3:26.3.1-5 on my AMD RX 480.
    SPICE OpenGL + VirtIO 3D now works correctly in virt-manager under COSMIC Wayland.

    Thanks for the quick fix, Peter! 👍

  6. wubbl0rz commented on Nov 21, 2026

    @wubbl0rz

    sunshine moonlight issue is still there. the steps @martino2k6 described worked with downgrading. maybe its a different problem 🤔

  7. martino2k6 commented on Nov 23, 2026

    @martino2k6

    Sunshine/Moonlight variant still black on 3:26.3.1-5 (Framework Desktop, Strix Halo gfx1151, Plasma Wayland): the KWin side is now fixed on −5 — no more Failed to create framebuffer on lock — but Sunshine's hevc_vulkan encoder still produces an all-black frame with a movable cursor overlay, while the compositor renders the desktop fine (verified with spectacle, which bypasses capture+encode). Downgrading mesa to 3:26.2.6-1 + reboot still fixes the stream. So the −5 fix seems to cover the GL/dmabuf consumer path (KWin/SPICE) but not the captured-Wayland-frame import into the Vulkan video encode path.

  8. Gael-Mifsud commented on Nov 23, 2026

    @Gael-Mifsud

    Hello,
    In KDE Plasma 6.8 on CachyOS, even with Mesa 3:26.3.1-5, I have two VM that show a black screen (with only the mouse visible).
    Disabling Spice allows to see them, but with no 3D acceleration.

  9. wubbl0rz commented on Nov 24, 2026

    @wubbl0rz

    just in my case it looks like its this bug from sunshine SunshineStream/Sunshine#6153

  10. wangwang58 commented on Nov 29, 2026

    @wangwang58

    me too

  11. staglib commented on Nov 29, 2026

    @staglib

    Same here on CachyOS, KDE Plasma 6.8 Wayland, AMD RX 6600 (RADV), Mesa 3:26.3.1-5, QEMU 11.1.3 / libvirt 12.9.

    Guest: Windows 10 with virtio-vga-gl + accel3d + SPICE GL. The VM runs and is reachable, but the console stays black. Journal shows:

    • update scanout failed: failed to create EGL image from DMA-BUF: egl_error=0x3003
    • spice_egl_update_display: assertion 'd->ready' failed

    GDK_BACKEND=x11 did not help in this case. Disabling SPICE GL/3D restores the console. Downgrading mesa + vulkan-radeon (and the lib32 counterparts) to 3:26.2.6-1, then restoring the GL VM config, fixes it.

    So 3:26.3.1-5 fixes the RX 480/COSMIC report but not this KDE Plasma + RX 6600 path. Please keep it tracked even though the issue is closed.

  12. staglib commented on Dec 2, 2026

    @staglib

    Cross-linking, because this thread shows the fix did not land for everyone: #658 reports the same DMA-BUF import failure (egl_error=0x3003) on KDE Plasma 6.8 Wayland with an RX 6600, still present on 3:26.3.1-5, where GDK_BACKEND=x11 does not help. It also collects the remaining Sunshine/Moonlight and KWin reports from this thread. Requesting that path be tracked rather than closed with the COSMIC/RX 480 fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions