tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
81.3k stars 2.43k forks source link

[bug] Blank screen on Flatpak GNOME 45 runtime #8970

Open honnip opened 6 months ago

honnip commented 6 months ago

Describe the bug

2024-02-24 23-58-44

There are tauri apps running on org.gnome.Platform version 45 runtime:

These all show the blank screen. (or it shows the splash screen and then stops)

Reproduction

You can install the SlimeVR and GitButler from Flathub

You can build the ModrinthApp and others:

  1. clone the repository
  2. flatpak-builder --user --install --force-clean build-dir com.modrinth.ModrinthApp.yml This will take some time because it need to build webkit2gtk-4.0.
  3. flatpak run com.modrinth.ModrinthApp

Expected behavior

No response

Full tauri info output

.

Stack trace

No response

Additional context

It does work on org.gnome.Platform 44. I confirmed this with in.cinny.Cinny and by building GitButler to run on GNOME 44 runtime.

I'm not using Nvidia cards and I tried WEBKIT_DISABLE_COMPOSITING_MODE=1 flatpak run <appid>, but no luck.

naman-crabnebula commented 6 months ago

Hi there!

I tested AppImage on Arch Linux Gnome 45, which is running smooth ( Gitbutler 0.10.17 ), and it is running flawlessly.

We currently don't support flatpak, So... :shrug:

FabianLars commented 6 months ago

We currently don't support flatpak, So... 🤷

That's not entirely true, at least in v2 where you don't need to build webkitgtk manually anymore. We just don't generate the manifests (which imo feels kinda useless at least in the context of flathub) and i didn't get to write the docs yet :/

Anyway, since 44 works i will mark this as an upstream issue. Also, if it's not too much work, i'd recommend trying a v2-beta app and see if it works any better.

Lastly for now, SlimeVR works fine for me on WSL ubuntu at least so reproducing may take a while (if i can repro it at all that is)

honnip commented 6 months ago

I'm pretty sure this happens when running webkit2gtk on flatpak GNOME 45 runtime. I haven't tried Tauri v2, but Epiphany, which uses the webkit2gtk provided by the runtime, has the same issue, so I suspect it's there too.

I tested AppImage on Arch Linux Gnome 45, which is running smooth ( Gitbutler 0.10.17 ), and it is running flawlessly.

AppImage and building from source are working fine on my machine too.

FabianLars commented 6 months ago

okay if epiphany is broken too then it's the same in tauri v2. And it would also mean that it'll get fixed relatively quickly hopefully. Of course assuming that it's not just an issue for you (epiphany also works for me 🤷 )

naman-crabnebula commented 6 months ago

At discord, a user posted that using WEBKIT_DISABLE_DMABUF_RENDERER=1 fixes this. ( Making a note here )

honnip commented 5 months ago

Thanks for mentioning it here. Unfortunately that didn't work for me.

helloimalemur commented 5 months ago

@honnip will you please try the other fixes mentioned in https://github.com/tauri-apps/tauri/issues/5143 ?

honnip commented 5 months ago

Hello. Running with env __NV_PRIME_RENDER_OFFLOAD=1 and WEBKIT_DISABLE_COMPOSITING_MODE=1 does not help. I don't use an nvidia card, so it may not be relevant