DefGuard / client

Best WireGuard desktop client with Multi-Factor Authentication
69 stars 9 forks source link

Window with white background and blank #132

Closed edgan closed 5 months ago

edgan commented 6 months ago

I downloaded the version 0.1.1 from the releases page, extracted it, and ran it. All I get is a window with a white background and it is blank. The tray icon works, and can be used to close it.

If I right click and select reload I see this error in the terminal window.

Asset `client` not found; fallback to client.html

It seems to be an issue with Xorg, since it works on Wayland.

Doesn't work: Fedora 39 Xorg with Nvidia graphics akmod-nvidia-545.29.06-1.fc39.x86_64 kernel-6.6.6-200.fc39.x86_64 xorg-x11-server-Xorg-1.20.14-28.fc39.x86_64

Works: Fedora 39 Wayland with Nvidia graphics akmod-nvidia-545.29.06-1.fc39.x86_64 kernel-6.6.6-200.fc39.x86_64

Works: Fedora 39 Wayland with Intel graphics kernel-6.6.6-200.fc39.x86_64

edgan commented 6 months ago

Also seems to work with XWayland when using GDK_BACKEND=x11.

edgan commented 6 months ago

Running yarn tauri dev has the same outcome. Yet if I go to http://localhost:3000/client in a browser I see the ui.

Running WEBKIT_DISABLE_DMABUF_RENDERER=1 defguard-client make it work.

Downgrading webkit2gtk4.0 also fixes it.

Downgrade javascriptcoregtk4.0 and webkit2gtk4.0 from 2.42.3-1.fc39 to 2.40.0-2.fc38:

wget https://mirrors.kernel.org/fedora/releases/38/Everything/x86_64/os/Packages/w/webkit2gtk4.0-2.40.0-2.fc38.x86_64.rpm
wget https://mirrors.kernel.org/fedora/releases/38/Everything/x86_64/os/Packages/w/webkit2gtk4.0-devel-2.40.0-2.fc38.x86_64.rpm
wget https://mirrors.kernel.org/fedora/releases/38/Everything/x86_64/os/Packages/j/javascriptcoregtk4.0-2.40.0-2.fc38.x86_64.rpm
wget https://mirrors.kernel.org/fedora/releases/38/Everything/x86_64/os/Packages/j/javascriptcoregtk4.0-devel-2.40.0-2.fc38.x86_64.rpm
rpm -U --oldpackage webkit2gtk4.0-2.40.0-2.fc38.x86_64.rpm webkit2gtk4.0-devel-2.40.0-2.fc38.x86_64.rpm javascriptcoregtk4.0-2.40.0-2.fc38.x86_64.rpm javascriptcoregtk4.0-devel-2.40.0-2.fc38.x86_64.rpm

/etc/dnf/dnf.conf:

exclude=javascriptcoregtk4.0* webkit2gtk4.0*

Links: https://bugs.webkit.org/show_bug.cgi?id=261874 https://bugs.archlinux.org/task/79783 https://github.com/eclipse-platform/eclipse.platform.swt/issues/843 https://www.phoronix.com/news/WebKitGTK-DMA-BUF-Rendering https://old.reddit.com/r/Fedora/comments/173461a/does_anyone_know_why_the_option_for_me_to_log_in/ https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1932089.html

teon commented 6 months ago

@edgan thank you for your analysis and comments. We are working heavy on the next version of the client with some important UI changes and functionalities. After we release it (hopefully next week) we will dive into this issue.