https://bugs.kde.org/show_bug.cgi?id=487777

            Bug ID: 487777
           Summary: kwin_wayland 6.0.90.1 crashed repeatedly when starting
                    in VMs using the virgl driver resulting in a black
                    screen
    Classification: Plasma
           Product: kwin
           Version: git-stable-Plasma/6.1
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: matt.fagn...@bell.net
  Target Milestone: ---

Created attachment 169964
  --> https://bugs.kde.org/attachment.cgi?id=169964&action=edit
screenshot of kwin_wayland trace when starting in VM using the virgl driver

SUMMARY

I booted the Fedora Rawhide/41 KDE Plasma live image
Fedora-KDE-Live-x86_64-Rawhide-20240529.n.0.iso in a QEMU/KVM VM using GNOME
Boxes with 3D acceleration enabled using the virgl driver from mesa 24.1.0. The
screen remained black with just a blinking text cursor at the top left. I
switched to VT2. The journal showed kwin_wayland 6.0.90.1 crashed repeatedly
when starting due to errors including.

kwin_wayland_wrapper[1788]: No provider of glBufferStorage found. Requires one
of:
kwin_wayland_wrapper[1788]:    Desktop OpenGL 4.4
kwin_wayland_wrapper[1788]:    GL_ARB_buffer_storage
kwin_wayland_wrapper[1788]:    GL_EXT_buffer_storage

The journal above that showed virgl had OpenGL 4.3 support. I guess virgl
doesn't support OpenGL 4,4,  GL_ARB_buffer_storage, or GL_EXT_buffer_storage.

I'm attaching a trace of the first of ten such kwin_wayland crashes as a
screenshot since I'm unsure how to copy or send text from bash in a VT in a VM
to the host. The crashes were aborts in gl_provider_resolver in libepoxy, but
they involved various kwin functions below that. Various other Plasma processes
crashed after that. The crashes happened on 2/2 boots. The problem is likely
that virgl doesn't meet the requirements of kwin 6.0.90, but I'm reporting to
kwin since it prevented Plasma from starting.

STEPS TO REPRODUCE
1. Boot a Fedora 40 KDE Plasma installation updated to 2024-5-29 with
updates-testing enabled
2. Log in to Plasma 6.0.5 on Wayland
3. Start Konsole
4. Install GNOME Boxes if it isn't already with sudo dnf install gnome-boxes
5. Download Fedora-KDE-Live-x86_64-Rawhide-20240529.n.0.iso from
https://koji.fedoraproject.org/koji/buildinfo?buildID=2458143
6. Start GNOME Boxes
7. Boot Fedora-KDE-Live-x86_64-Rawhide-20240529.n.0.iso in a GNOME Boxes
QEMU/KVM VM with 3 GiB RAM, UEFI enabled, and 3D acceleration enabled using the
virgl driver

OBSERVED RESULT
kwin_wayland 6.0.90.1 crashed repeatedly when starting in VMs using the virgl
driver resulting in a black screen

EXPECTED RESULT
No crashes would happen

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Rawhide
(available in About System)
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION

This problem didn't happen when booting
Fedora-KDE-Live-x86_64-Rawhide-20240529.n.0.iso in a GNOME Boxes QEMU/KVM VM
with 3 GiB RAM, UEFI enabled, and 3D acceleration disabled using the llvmpipe
driver.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to