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

App opens with blank screen on Linux with Nvidia gpu #276

Open
frundette opened this issue May 16, 2024 · 15 comments
Open

App opens with blank screen on Linux with Nvidia gpu #276

frundette opened this issue May 16, 2024 · 15 comments
Labels
bug Something isn't working

Comments

@frundette
Copy link

frundette commented May 16, 2024

Describe the bug
I just downloaded the app to give it a try. After installing, I tried to open it. It gives no error, but just opens to a blank white window. It's Version 2.0.6 (20240514.150423). I'm running a MacOS 12.0.1 (21A559)

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/surrealdb/surrealist/releases
  2. Download [Surrealist_2.0.6_x64.dmg]
  3. Add to applications.
  4. Run. I just get a white screen.

Expected behavior
Open application and see... something?

Environment:

 N/A

Maintainer edit:

A workaround can be found here

@frundette frundette added the bug Something isn't working label May 16, 2024
@kearfy
Copy link
Member

kearfy commented May 16, 2024

Hey @frundette, sorry about that! When you open the desktop app, could you please press Command + Option + I to open the developer console, and in the Console tab see if any errors show up? Thanks!

@frundette
Copy link
Author

Hi kearfy! Thank you for the reply! I tried pressing Command + Option + I. Nothing happened. (I tried the same thing in Chrome just to be sure I had the right key combo, and it opened the dev console right up.)

@shadowbrok3r
Copy link

@frundette getting the same error on Manjaro linux, was running into gtk errors

G_DEBUG=all GDK_DEBUG=all surrealist_2.1.1_amd64.AppImage
Qt: Session management error: None of the authentication protocols specified are supported
Gtk-Message: 10:49:46.464: Failed to load module "xapp-gtk3-module"
Gtk-Message: 10:49:46.464: Failed to load module "/usr/lib/gtk-3.0/modules"
Gdk-Message: 10:49:46.464: Trying x11 backend

same issue on surrealist 2.1.0
contents of /usr/lib/gtk-3.0/modules

ls /usr/lib/gtk-3.0/modules
total 120K
4.0K drwxr-xr-x 2 root root 4.0K Jun 11 10:24 .
4.0K drwxr-xr-x 4 root root 4.0K Dec 22 18:59 ..
 36K -rwxr-xr-x 1 root root  35K May 26 12:00 libappmenu-gtk-module.so
 28K -rwxr-xr-x 1 root root  26K Jan 29  2023 libcanberra-gtk3-module.so
   0 lrwxrwxrwx 1 root root   26 Jan 29  2023 libcanberra-gtk-module.so -> libcanberra-gtk3-module.so
 16K -rwxr-xr-x 1 root root  14K May 25 14:45 libcolorreload-gtk-module.so
 16K -rwxr-xr-x 1 root root  14K May 25 14:45 libwindow-decorations-gtk-module.so
 16K -rwxr-xr-x 1 root root  14K Apr  7 04:00 libxapp-gtk3-module.so

@Karinkuto
Copy link

Hey @frundette, sorry about that! When you open the desktop app, could you please press Command + Option + I to open the developer console, and in the Console tab see if any errors show up? Thanks!

Hey @kearfy, I'm on macOS 11.7.10 and had the same error, I opened the console to check the error and it showed the error below. How should I proceed?
Screen Shot 2024-06-25 at 8 55 14 AM

@nottisa
Copy link

nottisa commented Jul 1, 2024

Hey there, bumping this issue and dropping run logs. Running Ubuntu 24.04 and Surrealist 2.1.2.
I can't open the console.

Update: opening the port in the web browser functions as intended.
Logs: https://pastebin.com/PbAb1Mdh
Image:
image

@macjuul
Copy link
Contributor

macjuul commented Jul 2, 2024

Hello everyone! We understand this has been a frustrating painpoint and we intend on fixing it as soon as we can, however it appears this issue is complex and may have different causes per platform.

For Linux users, this might be related to an upstream issue in Tauri. A temporary workaround is to define WEBKIT_DISABLE_DMABUF_RENDERER=1 in your /etc/environment.

As for MacOS, we are still investigating this issue further, however it may be related to the version of MacOS and Safari being used. I'll report back once we have further clarity on this issue

@nottisa
Copy link

nottisa commented Jul 2, 2024

@macjuul This workaround does solve the issues on Ubuntu 24.04

@macjuul macjuul changed the title App Opens to Blank Screen App opens with blank screen on Linux with Nvidia gpu Sep 5, 2024
@macjuul macjuul pinned this issue Sep 5, 2024
@macjuul macjuul unpinned this issue Sep 6, 2024
@macjuul macjuul pinned this issue Sep 6, 2024
@gander
Copy link

gander commented Oct 6, 2024

It only helps me partially. Thanks to this method I see UI instead of a white window, but then when I try to create a connection it ends with the application hanging.

@gander
Copy link

gander commented Oct 9, 2024

@macjuul are you planning to fix this? In beta version 1, everything worked fine. But after you released beta 2, it stopped working. Can you check what changed and try to fix it? Will you try to repair it, or will this issue remain unresolved forever?

@gander
Copy link

gander commented Oct 11, 2024

I apologize for my earlier words. I was already very frustrated that nothing was happening in the thread, but I shouldn't have vented that anger here. I am very sorry.

@macjuul
Copy link
Contributor

macjuul commented Oct 11, 2024

No worries @gander! I fully understand the frustration!

As for this specific issue, this is something out of our control and caused by webkit2gtk, the Linux package used to run webview processes, and Nvidia graphics cards. The workaround for this is to specify an environment variable on launch.

There is however another issue plaguing Surrealist on Linux, which is being tracked in this issue. This is also caused by webkit2gtk and causes it to crash when executing WebAssembly, which Surrealist relies on. This might be what you are experiencing.

Unfortunately as mentioned in a comment on that issue there is no solution at the moment, and we will have to wait until a fixed version is published. The web app should still work, however I understand this is not a complete replacement for the desktop app.

We will continue to monitor these issues and report on any further findings and updates

@rnp0728
Copy link

rnp0728 commented Oct 12, 2024

Feels like I am also facing the same issue. I just entered my connection details and post that the plain screen is visible
image

@agarfer1
Copy link

agarfer1 commented Nov 6, 2024

If you update the distribution (to update libwebkit2gtk), does this fix the problem? Since I think this was basically a duplicate of #424 and that one is fixed already. #424 (comment)

@rnp0728
Copy link

rnp0728 commented Nov 7, 2024

I will check this in sometime

@macjuul
Copy link
Contributor

macjuul commented Nov 8, 2024

I have implemented a possible solution that incorporates the workaround directly into the application (#557).

Since this only affects Linux systems using Nvidia graphics cards I am unable to test this solution myself. I invite anyone experiencing this issue to build the application from source to test the implemented fix, as this would allow me to make potential changes before the next release.

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

9 participants