Bug 478067 - The window previews for task manager icons were inverted when using the llvmpipe driver
Summary: The window previews for task manager icons were inverted when using the llvmp...
Status: RESOLVED DUPLICATE of bug 478223
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 5.90.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-04 18:26 UTC by Matt Fagnani
Modified: 2024-02-15 13:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Journal for a boot in which the inverted window previews were shown (516.29 KB, text/plain)
2023-12-04 18:26 UTC, Matt Fagnani
Details
Recording of inverted window previews for Firefox and Dolphin in GNOME Boxes QEMU/KVM VM with 3D acceleration disabled using llvmpipe (3.11 MB, video/mp4)
2023-12-04 19:44 UTC, Matt Fagnani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Fagnani 2023-12-04 18:26:28 UTC
Created attachment 163859 [details]
Journal for a boot in which the inverted window previews were shown

SUMMARY

I booted the Fedora Rawhide/40 KDE Plasma live image Fedora-KDE-Live-x86_64-Rawhide-20231204.n.0.iso in GNOME Boxes QEMU/KVM VMs with 3D acceleration disabled using the llvmpipe mesa 23.3.0 driver in a Fedora 39 KDE Plasma host. To work around the VM getting stuck on the Plasma 5.90.0 on Wayland splash screen as I reported at https://bugs.kde.org/show_bug.cgi?id=477643 I changed to VT2 using the keyboard menu in the top bar of GNOME Boxes and selecting Ctrl+Alt+F2. When I changed back to VT1, Plasma was shown with the Plasma Welcome program open. I started Firefox, Dolphin, and System Settings among others from the Task Manager. I hovered over the icons of those programs in the task manager. The window previews for those programs were inverted. The following kpipewire errors were shown in the journal when I hovered over the icons.

Dec 04 12:59:43 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 12:59:49 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 12:59:53 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 12:59:53 plasmashell[1858]: kpipewire_logging: PipeWire remote error:  -2 target not found
Dec 04 12:59:53 plasmashell[1858]: kpipewire_logging: PipeWire remote error:  -2 unknown resource 3 op:4
Dec 04 12:59:53 plasmashell[1858]: kpipewire_logging: PipeWire remote error:  -2 unknown resource 3 op:7
Dec 04 12:59:58 plasmashell[1858]: kf.windowsystem: static bool KX11Extras::hasWId(WId) may only be used on X11
Dec 04 12:59:59 pipewire[1701]: mod.client-node: 0x55a7c3645470: unknown peer 0x55a7c3639010 fd:41
Dec 04 12:59:59 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 13:00:01 plasmashell[1858]: file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/main.qml:78: TypeError: Type error
Dec 04 13:00:03 plasmashell[1858]: kf.windowsystem: static bool KX11Extras::hasWId(WId) may only be used on X11
Dec 04 13:00:04 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 13:00:14 plasmashell[1858]: kpipewire_logging: PipeWire remote error:  -2 target not found
Dec 04 13:00:14 plasmashell[1858]: kpipewire_logging: PipeWire remote error:  -2 unknown resource 4 op:4
Dec 04 13:00:14 plasmashell[1858]: kpipewire_logging: PipeWire remote error:  -2 unknown resource 4 op:7
Dec 04 13:00:14 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 13:00:17 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 13:00:45 kwin_wayland[1689]: This plugin does not support raise()
Dec 04 13:00:56 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 13:00:56 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.
Dec 04 13:01:01 plasmashell[1858]: file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/main.qml:78: TypeError: Type error
Dec 04 13:01:03 plasmashell[1858]: kpipewire_logging: Failed to query DMA-BUF formats.

All programs I tried had window previews which were upside down. The problem also happened in virt-manager QEMU/KVM VMs with the same image and 3D acceleration disabled using the llvmpipe driver. Plasma 5.27.80 was also affected by this problem. I don't think this happened with Plasma 5.27.9. This problem didn't happen when I booted the same image in GNOME Boxes with 3D acceleration enabled using the virgl mesa driver. The problem might be specific to when the llvmpipe driver is used. I'll attach the journal and a recording of the problem.

STEPS TO REPRODUCE
1. Boot a Fedora 39 KDE Plasma installation updated to 2023-12-3 with updates-testing enabled
2. Log in to Plasma 5.27.9 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-20231204.n.0.iso from https://koji.fedoraproject.org/koji/buildinfo?buildID=2327615
6. Start GNOME Boxes
7. Boot Fedora-KDE-Live-x86_64-Rawhide-20231204.n.0.iso in a GNOME Boxes QEMU/KVM VM with 3 GiB RAM, UEFI enabled, and 3D acceleration disabled 
8. To work around https://bugs.kde.org/show_bug.cgi?id=477643, switch to VT2 in GNOME boxes via the keyboard menu Ctrl+Alt+F2 and back to VT1 with Ctrl+Alt+F1 when the Plasma 5.90.0 splash screen is shown
9. Start Firefox, Dolphin, and System Settings 
10. Hover over the icons for Firefox, Dolphin, and System Settings in the Task Manager

OBSERVED RESULT
The window previews were inverted in VMs using the llvmpipe driver

EXPECTED RESULT
The window previews should've been shown normally in VMs using the llvmpipe driver

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Rawhide/40
(available in About System)
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Matt Fagnani 2023-12-04 19:44:00 UTC
Created attachment 163862 [details]
Recording of inverted window previews for Firefox and Dolphin in GNOME Boxes QEMU/KVM VM with 3D acceleration disabled using llvmpipe
Comment 2 Matt Fagnani 2023-12-04 23:13:40 UTC
When I booted that image in basic graphics mode which used nomodeset on the kernel command line and the llvmpipe driver on bare metal, the problem appeared. When booting the image normally on bare metal using the radeonsi mesa driver and amdgpu kernel driver, the problem didn't appear.
Comment 3 Nate Graham 2023-12-05 17:21:41 UTC
So it's a recurrence of Bug 466299? Or something else?
Comment 4 Matt Fagnani 2023-12-05 19:33:14 UTC
(In reply to Nate Graham from comment #3)
> So it's a recurrence of Bug 466299? Or something else?

This is a different problem from Bug 466299 which had window previews that were right side up but with the wrong colours. In the current problem, the window previews are upside down with the correct colours. The problem might be in kpipewire or kwin. Thanks.
Comment 5 Alessandro Astone 2024-02-15 13:09:02 UTC

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