Bug 496614 - tabbox shows garbage in wayland
Summary: tabbox shows garbage in wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: tabbox (show other bugs)
Version: git-stable-Plasma/6.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-23 17:56 UTC by Jaime Torres
Modified: 2024-11-25 12:21 UTC (History)
2 users (show)

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


Attachments
This is what I see in the tabbox (108.75 KB, image/png)
2024-11-23 17:56 UTC, Jaime Torres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2024-11-23 17:56:22 UTC
Created attachment 176066 [details]
This is what I see in the tabbox

SUMMARY
When pressing alt-tab, the tabbox only shows flashing garbage (like pieces of windows alternating twice every second).
alt-tab works, only the tabbox shows garbage. It's been this way since 6.0 in wayland.

STEPS TO REPRODUCE
1.  press and keep alt-tab

OBSERVED RESULT
garbage

EXPECTED RESULT
The same as with X11

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20241119
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.10.9-1-default (64-bit)
Graphics Platform: Wayland
Processors: 6 × AMD Phenom(tm) II X6 1100T Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD JUNIPER

ADDITIONAL INFORMATION
Comment 1 John Kizer 2024-11-24 04:25:56 UTC
I cannot reproduce this - possible graphics card hardware/driver issue?

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.8-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 30.4 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4070 SUPER/PCIe/SSE2
Comment 2 Jaime Torres 2024-11-24 14:26:25 UTC
I've found the culprit, a wrongly configured .drirc file
<driconf>
  <device screen="0" driver="r600">
    <application name="Default">
      <option name="force_glsl_extensions_warn" value="false" />
      <option name="mesa_glthread" value="true" />
      <option name="mesa_no_error" value="true" />
    </application>
  </device>
</driconf>

The question I ask myself is: Why this wrong dri configuration only affects the tabbox?
Renaming the file and restarting the session, the tabbox works as expected.

Also this warning is produced.
file:///usr/share/kwin/tabbox/thumbnail_grid/contents/ui/main.qml:170:37: Unable to assign [undefined] to bool
Comment 3 David Edmundson 2024-11-25 12:21:34 UTC
>The question I ask myself is: Why this wrong dri configuration only affects the tabbox?

Not entirely sure, but kwin is very special when it comes to it's GL usage being a compositor. 
I don't think there's anything that implies kwin is doing something wrong.