ananthakumaran/paisa

White screen on Linux Fedora x11

Closed this issue · 3 comments

Describe your Environment

Paisa self build from commit a419492

System:
  Host: brass Kernel: 6.4.4-200.fc38.x86_64 arch: x86_64 bits: 64
    Desktop: GNOME v: 44.3 Distro: Fedora release 38 (Thirty Eight)
Graphics:
  Device-1: NVIDIA GA102 [GeForce RTX 3090 Ti] driver: nvidia v: 535.54.03
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.9 driver: X:
    loaded: modesetting,nouveau,nvidia unloaded: fbdev,vesa
    gpu: nvidia,nvidia-nvswitch resolution: 1: 3440x1440~60Hz
    2: 3440x1440~60Hz 3: N/A
  API: OpenGL v: 4.6.0 NVIDIA 535.54.03 renderer: NVIDIA GeForce RTX 3090
    Ti/PCIe/SSE2

Describe the bug

making a build of the desktop app results in it launching with a white screen, however if you move your mouse around it's clearly reacting to clickables in the UI.

This is a bug I've experienced with Wails before, easily fixed with this option:

			WebviewGpuPolicy:    linux.WebviewGpuPolicyNever,

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Builds created for linux x11 should render the UI

Screenshots
If applicable, add screenshots to help explain your problem.

Journal
If applicable, provide a minimal journal to help explain your problem.

@airtonix This seems like a webkit issue wailsapp/wails#2977. Could you try export WEBKIT_DISABLE_DMABUF_RENDERER=1.

@ananthakumaran looks like this PR has been merged: wailsapp/wails#3027

and you just need to update to the latest version of wails.

I ran into this issue trying use webkit2gtk on arch linux (with an nvidia card) and I was able to fix it without setting WEBKIT_DISABLE_DMABUF_RENDERER=1.

Here is how I fixed it:

  1. Check if you have modesetting enabled via

     cat /sys/module/nvidia_drm/parameters/modeset
    
  2. If you see printed N then you need to enable it with

     echo options nvidia_drm modeset=1 | sudo tee /etc/modprobe.d/nvidia_drm.conf
    
  3. Restart your computer