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

Linux Wayland composition blank screen #194

Open
GrayBoltWolf opened this issue Jul 7, 2024 · 4 comments
Open

Linux Wayland composition blank screen #194

GrayBoltWolf opened this issue Jul 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@GrayBoltWolf
Copy link

Just noting here for others who might hit the same issue.

On Arch Linux when running in Wayland, the AppImage requires the env flag WEBKIT_DISABLE_COMPOSITING_MODE=1 or it will be a blank screen.

Without:
image

With:
image

Found from tauri-apps/tauri#5143

@rampa3
Copy link

rampa3 commented Jul 7, 2024

Does not seem to be Wayland's problem. Watch how the same thing occours on X11:

image

The same workaround works here too.

@Gawdl3y
Copy link
Owner

Gawdl3y commented Jul 13, 2024

Supposedly this may be caused by a specific version range of libwebkitgtk, as they switched over to supporting Wayland by default, but it fails to automatically fall back to X11. This has since been fixed in the library, but some distros are still shipping older versions without the fix. When I release the next build, this might be solved, depending on the version of libwebkitgtk still being provided on Ubuntu Server 24.04 (the OS being used for the build).

In the meantime, if you try running the AppImage with WEBKIT_DISABLE_COMPOSITING_MODE=1 set as an env var, does it render okay?

@Gawdl3y Gawdl3y added the bug Something isn't working label Jul 13, 2024
@rampa3
Copy link

rampa3 commented Jul 13, 2024

In the meantime, if you try running the AppImage with WEBKIT_DISABLE_COMPOSITING_MODE=1 set as an env var, does it render okay?

It does - I even mentioned it already under the screenshot, that the posted workaround works on X11. My main point was that the issue said it is Wayland issue, while it behaved on X11 in same way.

@GrayBoltWolf
Copy link
Author

In the meantime, if you try running the AppImage with WEBKIT_DISABLE_COMPOSITING_MODE=1 set as an env var, does it render okay?

rampa3's response was a bit strong, but yes, this was the workaround already posted.

Made this issue so others could find the fix as the bug is not with your app but with a gtk library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants