ananthakumaran / paisa

Paisa – Personal Finance Manager. https://paisa.fyi demo: https://demo.paisa.fyi
https://paisa.fyi
GNU Affero General Public License v3.0
2.34k stars 117 forks source link

White screen on Linux Fedora x11 #85

Closed airtonix closed 9 months ago

airtonix commented 9 months ago

Describe your Environment

Paisa self build from commit https://github.com/ananthakumaran/paisa/commit/a4194928902a9a88636454b1fccccf29990682ff

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.

ananthakumaran commented 9 months ago

@airtonix This seems like a webkit issue https://github.com/wailsapp/wails/issues/2977. Could you try export WEBKIT_DISABLE_DMABUF_RENDERER=1.

airtonix commented 9 months ago

@ananthakumaran looks like this PR has been merged: https://github.com/wailsapp/wails/pull/3027

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

nobane commented 5 months ago

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