tuxedocomputers/tuxedo-control-center

[Gentoo] Electron UI appears blank in Wayland

Kangie opened this issue · 8 comments

Kangie commented

When Tuxedo Control Center is launched on my workstation the UI appears blank.

image

When the cursor is moved over an area that would be used for navigation it changes contextually which suggests that this is a rendering issue.

I am able to reproduce this issue both using the distributed RPM (via Gentoo ebuild - gentoo/gentoo#30759 ) and when building the application from source.

I have seen this on 1.2.4, 2.0.2, and current master (commit 646841d)

I'm not an electron expert but will attempt to hook up a debugger to both the renderer and main process to see if I can gather any additional troubleshooting information.

Other electron apps work as evidenced by my usage of VS Code to build and debug TCC. :)

Please let me know if you have any troubleshooting suggestions.

Kangie commented

I've been able to validate that everything works for me under X11 so it seems to be related to Wayland, where I spend most of my time.

Kangie commented

invoking tuxedo control centre under wayland as follows allows the UI to display:

# Disable GPU acceleration (?)
tuxedo-control-center --disable-gpu
# Force Wayland rather than XWayland
# This actually segfaults :(
tuxedo-control-center --enable-features=UseOzonePlatform --ozone-platform=wayland

I suppose the best solution is just ensuring that under Wayland we default to launching with the Wayland renderer; I'll look into whether or not that's an 'update electron' or a 'change some code' thing.