av / harbor

Effortlessly run LLM backends, APIs, frontends, and services with one command.
https://github.com/av/harbor
Apache License 2.0
454 stars 26 forks source link

Harbor App does not work under Wayland #61

Open maeyounes opened 1 week ago

maeyounes commented 1 week ago

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 commented 1 week ago

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: https://github.com/tauri-apps/tauri/issues/10749

maeyounes commented 1 week ago

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