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

[bug] Tauri app crashes when opening devtools (Pop!_OS) #12622

Open
Silzinc opened this issue Feb 4, 2025 · 0 comments
Open

[bug] Tauri app crashes when opening devtools (Pop!_OS) #12622

Silzinc opened this issue Feb 4, 2025 · 0 comments
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Silzinc
Copy link

Silzinc commented Feb 4, 2025

Describe the bug

When I open the devtools via right click + "inspect", or when I call window.open_devtools in Rust, the app just goes poof. If I hit ctrl+shift+i, the devtools windows opens for a few seconds, then the app goes poof and I am left with this message:

VM 0x73e356400000 on pid 147430 received NeedDebuggerBreak trap

It might be related to #3407 but the solutions provided here did not work for me.

Reproduction

Start a default tauri project with a Typescript + React or Svelte frontend using pnpm create tauri <app-name> (I did not try of other frameworks but I don't believe the issue is here) and run it using pnpm tauri dev. Then, try to open the devtools with "inspect" or ctrl+shift+i. I also tried to add the "devtools" feature to the Rust part.

Expected behavior

No crash.

Full tauri info output

[✔] Environment
    - OS: Pop!_OS 22.4.0 x86_64 (X64) (pop on x11)
    ✔ webkit2gtk-4.1: 2.46.5
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.84.1 (e71f9a9a9 2025-01-27)
    ✔ cargo: 1.84.1 (66221abde 2024-11-19)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 22.10.0
    - pnpm: 10.2.0
    - yarn: 1.22.22
    - npm: 10.9.0
    - deno: deno 2.1.7

[-] Packages
    - tauri 🦀: 2.2.5
    - tauri-build 🦀: 2.0.5
    - wry 🦀: 0.48.1
    - tao 🦀: 0.31.1
    - @tauri-apps/api : 2.2.0
    - @tauri-apps/cli : 2.2.7

[-] Plugins
    - tauri-plugin-opener 🦀: 2.2.5
    - @tauri-apps/plugin-opener : 2.2.5

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

Stack trace

Ctrl+shift+i method: VM 0x73e356400000 on pid 147430 received NeedDebuggerBreak trap
Other methods: None

Additional context

Thank you for your help!

@Silzinc Silzinc added status: needs triage This issue needs to triage, applied to new issues type: bug labels Feb 4, 2025
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