-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[bug] Blank screen on starting tauri application #5143
Comments
Is it an actual Linux installation or a VM (or WSL) ? (Looks like an actual installation to me, just wanna be sure) Did you try your same app on a newer version of Ubuntu by any chance? Can you check the version of webkit2gtk via
Are there relevant updates available tho? Did you try other templates besides the vue one? |
First of all, thanks for you help.
It's an actual Linux installation.
I'll try, but I don't think it can work property.
It seems that 18.04 is a stable Ubuntu version.I'll do something more to check it.
I'll provider other information tomorrow.
I don't think so. When I run
I'll try later.But it looks like nothing different here, it event cannot render |
Yeah stable, but also really old, it didn't receive any new webkit updates for quite some time now :/ But anyway, i didn't see this behavior last time i checked 1804 so that shouldn't matter 🤔 |
Here is webkit2gtk infomation.
I have changed to use |
I found something more.
|
Just figured something out, decided to post separately instead of editing. I was not running Wayland like I thought i was. Switching back to Wayland resolves Tauri apps not working on this machine. This does not concern the partial rendering and random Vite errors which means that is a separate issue. @yang282441848 I think you should try running your app under Wayland, it would help the maintainers isolate the issue |
Found a workaround that let me launch my application. WEBKIT_DISABLE_COMPOSITING_MODE=1 node dev.mjs # or whatever command you use to launch the app The issue is caused by a WebKitGTK bug, tracked here. The issue is not related to Tauri and can be closed. |
FYI, got the same on Steam Deck earlier, WEBKIT_DISABLE_COMPOSITING_MODE=1 fixed as well |
The same fix works with Ubuntu 20.04, X11 desktop environment + i3 window manager + Compton compositor. |
It works, thx. |
Completed? An env var workaround is not a fix. I think this should stay open until the bug is fixed upstream in WebKit. Or has a WebKit update already been completed elsewhere? |
Ok. |
Thanks, this solved the same issue I was having on NixOS. |
Mark.
but normal in the chromium browser.
Fixed by set env. |
I'm noting that on GNOME X11 I need |
I am using XFCE (X11) and I need the workaround to run my app properly. |
Worked for me
Thanks! |
When using nVidia drivers on linux the following environment variable must be set to prevent the following errors and blank Tauri window. export __NV_PRIME_RENDER_OFFLOAD=1 Errors;
|
This application is still in dev |
I wonder how the new solution compares to mine. It seems to be a better one because it disables a lot less, only an nVidia feature instead of an entire WebKit one. At the same time the name of that variable kind of suggests that it is not really intended for public use. Should I update my solution and point whoever finds it to this one instead? |
I have been experiencing the same problem running a Tauri application within an X11 session of GNOME on Nvidia card due to an environment variable setup that was previously required. However, after enabling DRM Kernel Mode Setting (KMS) in my bootloader, the Tauri app now runs smoothly without needing the environment variables. I found the solution on arch wiki https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting. I use 550.x.x Nvidia driver, not sure how it will work with drivers that were released earlier |
@TheRosya's solution seems to be a kernel parameter, which may be a hard ask for some users - this seems to only effect linux platform, we could check this setting and set the related env variables. Thoughts? To summarize, so far we have the following possible fixes related to these render issues; Summarizing symptoms; |
dev: pakeged:
|
I'm having the same issue with the release binary, also notice that resize the window will fix the rendering problem. |
Setting |
A few days ago the package libwebkit2gtk-4.0-37 was updated to version 2.44.1-1. Since this update, no workaround is needed on my debian bookworm / Raspberry Pi OS. I removed the flag and no issue found. Thanks |
I experience the same issue on ubuntu 24.04 on tauri v2 project version 2.0.0-beta.22 Using |
@thewh1teagle see my comment here. Tauri cannot do anything to fix this. Luckily, as @Angel-Gonzalez points out, the issue in WebKitGTK seems to be already resolved and we just need to wait for our distros to update though I also suspect that while updating, they might have been switched to Wayland or The actual reason it works properly with |
@StarLederer the fix is in which release ? |
I'm having this issue. Setting the UPDATE: switched driver to
|
Describe the bug
I create a new taur-app with vue scaffolding, but it does not working properly, it shows blank white screen.
It seems like https://github.com/tauri-apps/tauri/issues/4638
And websocket is fine(with ping message).
No error/warning message in console.
All elements exists in the html dom.
cargo build
andcargo build --release
, but it seems nothing changed.Reproduction
and I did not run
sudo apt update
2. Create Tauri app with pnpm create tauri-app, selecting vite+vue scaffolding.
3. In
${MyAppDir}
, runpnpm run install
;4. Run
pnpm run tauri dev
Expected behavior
Content appears in window.
Platform and versions
package.json
tauri.conf.json
Stack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: