waydroid / waydroid

Waydroid uses a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu.
https://waydro.id
GNU General Public License v3.0
8.1k stars 334 forks source link

[BUG] With multi-window mode, some apps or render surfaces appear translucent #1352

Open kode54 opened 8 months ago

kode54 commented 8 months ago

Describe the bug

In multi-window mode, I realize it appears that Waydroid is rendering a transparent full desktop window layer, with the windows as sub-surfaces of this window, including the cursor. The problem is, some apps, such as 3DMark's Vulkan benchmarks, render with the display surface area as alpha 0, and the color channels appearing to be treated as pre-multiplied by alpha, so their color values are added to the pixels underneath of the Waydroid window.

Waydroid version

1.4.2

Device

Linux Desktop

Operating System

Arch Linux

Kernel version

6.8.4-1-cachyos

Desktop Environment

labwc-git 0.7.1.r90.g5cc07573-1

GPU

AMD Radeon RX 6700 XT

Logs

/var/lib/waydroid/waydroid.cfg /var/lib/waydroid/waydroid.prop /var/lib/waydroid/waydroid_base.prop /var/lib/waydroid/waydroid.log waydroid_stuff.3.tar.gz

sudo waydroid shell -- logcat -d | tee logcat.txt logcat.3.txt

sudo dmesg | tee dmesg.txt dmesg.3.txt

And a video of the thing happening: 3dmark_translucent.mp4

aleasto commented 7 months ago

So I guess we need a black background? Like we already do for full-ui mode.

kode54 commented 7 months ago

Or I could just run certain apps in full-ui mode. It's probably the app misbehaving.

OlegAckbar commented 6 months ago

I can confirm this issue. In some games effects are translucent, for example in Subway Surfers sky is completely translucent. Screen Recording_20240525_015037_2.webm

WesleyVanNeck commented 3 months ago

So I guess we need a black background? Like we already do for full-ui mode.

Yes

ging-dev commented 2 days ago

same problem!