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

linux development often show blank screen. #12431

Open
yuyang-ok opened this issue Jan 18, 2025 · 10 comments
Open

linux development often show blank screen. #12431

yuyang-ok opened this issue Jan 18, 2025 · 10 comments
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@yuyang-ok
Copy link

when modify some code , sometimes the webview component show nothing.
I need restart pnpm run dev and restart the rust backend to make it working again.
Anyone else have the same problem???

@FabianLars FabianLars added type: bug platform: Linux status: needs triage This issue needs to triage, applied to new issues labels Jan 18, 2025
@FabianLars
Copy link
Member

i don't think i've heard about this behavior before. Can you share the output of pnpm tauri dev as well please?

@yuyang-ok
Copy link
Author

@FabianLars Ok I will make screen shot and some information next time I have this issue

@yuyang-ok
Copy link
Author

@FabianLars first of all I am not using pnpm tauri dev command I am using cargo r and pnpm run dev

@yuyang-ok
Copy link
Author

@yuyang-ok
Copy link
Author

yuyang@yuyang-ThinkBook-16-G5-ARP:~/projects/db/dbnexus-app$ pnpm tauri info 

> [email protected] tauri /home/yuyang/projects/db/dbnexus-app
> tauri "info"

WARNING: Only one package manager should be used, but found yarn and npm and pnpm.
         Please remove unused package manager lock files, will use yarn for now!

[✔] Environment
    - OS: Ubuntu 24.4.0 x86_64 (X64) (ubuntu on wayland)
    ✔ webkit2gtk-4.1: 2.46.5
    ✔ rsvg2: 2.58.0
    ✔ rustc: 1.86.0-nightly (6067b3631 2025-01-17)
    ✔ cargo: 1.86.0-nightly (088d49608 2025-01-10)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: nightly-x86_64-unknown-linux-gnu (default)
    - node: 22.13.0
    - pnpm: 9.15.4
    - yarn: 1.22.22
    - npm: 10.9.2

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - @tauri-apps/api : 2.0.0-beta.13
    - @tauri-apps/cli : 2.2.4

[-] Plugins
    - tauri-plugin-dialog 🦀: 2.2.0
    - @tauri-apps/plugin-dialog : 2.2.0
    - tauri-plugin-fs 🦀: 2.2.0
    - @tauri-apps/plugin-fs : 2.2.0
    - tauri-plugin-http 🦀: 2.2.0
    - @tauri-apps/plugin-http : 2.2.0
    - tauri-plugin-shell 🦀: 2.2.0
    - @tauri-apps/plugin-shell : 2.2.0
    - tauri-plugin-store 🦀: 2.2.0
    - @tauri-apps/plugin-store : 2.2.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

@yuyang-ok
Copy link
Author

yuyang@yuyang-ThinkBook-16-G5-ARP:~/projects/db/dbnexus-app$ pnpm tauri dev 

> [email protected] tauri /home/yuyang/projects/db/dbnexus-app
> tauri "dev"

    Running BeforeDevCommand (`yarn dev`)
yarn run v1.22.22
$ vite

  VITE v6.0.7  ready in 133 ms

  ➜  Local:   http://localhost:1420/
    Info Watching /home/yuyang/projects/db/dbnexus-app/src-tauri for changes...
    Info Watching /home/yuyang/projects/db/dbnexus-db for changes...
    Info Watching /home/yuyang/projects/db/dbnexus-app/src-tauri for changes...
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s
     Running `/home/yuyang/projects/db/target/debug/dbnexus-app`

@FabianLars
Copy link
Member

first of all I am not using pnpm tauri dev command I am using cargo r and pnpm run dev

at first i thought that maybe that the issue could be that you're invoking new rust functionality in your frontend that needs a backend reload and will error out otherwise, but that video shows that the webview itself crashes completely. 🤔

Does setting the WEBKIT_DISABLE_COMPOSITING_MODE=1 env var help?

@yuyang-ok
Copy link
Author

@FabianLars thanks I will try WEBKIT_DISABLE_COMPOSITING_MODE=1 .
I will brief u later

@yuyang-ok
Copy link
Author

@FabianLars I think WEBKIT_DISABLE_COMPOSITING_MODE=1 not working.

@yuyang-ok
Copy link
Author

sometimes restart cargo r not working , somehow u need rerun pnpm run dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants