Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gentoo] Electron UI appears blank in Wayland #294

Open
Kangie opened this issue Apr 25, 2023 · 8 comments
Open

[Gentoo] Electron UI appears blank in Wayland #294

Kangie opened this issue Apr 25, 2023 · 8 comments

Comments

@Kangie
Copy link

Kangie commented Apr 25, 2023

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
Copy link
Author

Kangie commented Apr 26, 2023

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 Kangie changed the title [Gentoo] Electron UI appears blank. [Gentoo] Electron UI appears blank in Wayland Apr 26, 2023
@Kangie
Copy link
Author

Kangie commented Apr 27, 2023

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.

@michaldybczak
Copy link

On Manjaro testing branch, TCC works fine under Wayland when it opens with XWayland.

When opened with:

tuxedo-control-center --enable-features=UseOzonePlatform --ozone-platform=wayland

I can confirm it segfaults:


Failed to register global shortcut
Debugger trap/breakpoint (memory dump)

@crissi-tuxedo
Copy link
Contributor

I looked into it and I think it might be related to this problem here:
electron/electron#32436

The fix is only backported till electron version 17:
electron/electron#33355

So we will have to wait till we can update the electron Version (don't worry, we are working on it :) ) and see if that fixes it!

in the meantime I suggest using XWayland for the time being.

Oh and in general: if the GUI is not completely dead and "just" blank you can usually still open the developer console by using ctrl + shift + I and see if it's spewing out any errors.
For the main process it spills it's errors onto the commandline if you start tcc from there.

best regards, Crissi

@crissi-tuxedo
Copy link
Contributor

I couldn't get the current version of TCC to start in native wayland at all (it just ignored the flags and ran on xwayland), but I tested my branch with electron 19 and it runs in native wayland just fine :)

gotta be patient for the big update ;)

@Kangie
Copy link
Author

Kangie commented Mar 19, 2024

Thanks. I'll keep an eye out and get the Gentoo package updated when it's out. :)

@Kangie
Copy link
Author

Kangie commented Apr 16, 2024

I couldn't get the current version of TCC to start in native wayland at all (it just ignored the flags and ran on xwayland), but I tested my branch with electron 19 and it runs in native wayland just fine :)

gotta be patient for the big update ;)

Is this going to be Tuxedo Control Center 3.0.0?

@tuxedoder
Copy link
Contributor

We haven't decided on a release version yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants