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

Harbor App does not work under Wayland #61

Open
maeyounes opened this issue Oct 14, 2024 · 2 comments
Open

Harbor App does not work under Wayland #61

maeyounes opened this issue Oct 14, 2024 · 2 comments
Labels

Comments

@maeyounes
Copy link

Hello,

great job with the development of this amazing project!

I wanted to try the Harbor App under my Linux system that uses Wayland instead of X11. I get the following error however:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Cannot get default EGL display: EGL_SUCCESS
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)

Even ignoring the error by setting QT_QPA_PLATFORM=wayland does not help:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
Cannot get default EGL display: EGL_SUCCESS
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
@av
Copy link
Owner

av commented Oct 14, 2024

Thanks for the kind words and for trying it out!

The EGL_SUCCESS should be related to the webkitgtk and should be fixed by them in the upcoming releases, meanwhile disabling compositing via env vars could work:

# Try this first
WEBKIT_DISABLE_DMABUF_RENDERER=1

# If the first doesn't work
WEBKIT_DISABLE_COMPOSITING_MODE=1

More info:
tauri-apps/tauri#10749

@av av added the OS:Linux label Oct 14, 2024
@maeyounes
Copy link
Author

Thank you for the reply.

Using WEBKIT_DISABLE_DMABUF_RENDERER=1 helps, while WEBKIT_DISABLE_COMPOSITING_MODE=1 doesn't.

However, although the app is rendered now, there is another issue that might not be related. The app does not show any service: Unexpected error: No such file or directory (os error 2)
image

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

No branches or pull requests

2 participants