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] App hanging on startup when switching to other windows #12531

Open
cjonas1999 opened this issue Jan 26, 2025 · 0 comments
Open

[bug] App hanging on startup when switching to other windows #12531

cjonas1999 opened this issue Jan 26, 2025 · 0 comments
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@cjonas1999
Copy link

Describe the bug

Tauri application stops responding when switching to or opening other windows while it is starting up. I have experienced this with my own project opening multiple other applications at the same time, but I have tested and this can happen on a default Tauri + Vite project as well, created following this guide: https://v2.tauri.app/start/create-project/ . In my experience it never seems to recover from this state on its own.

Reproduction

This can happen by opening the tauri app alongside some other applications at the same time. But I've found it can be induced more often by spamming alt+tab quickly and repeatedly while the app is launching, though it does not happen every time. Video demonstration attached. This seems more difficult to reproduce running in dev, probably because of the less predictable startup timing.

tauri-not-responding.mp4

Expected behavior

I would expect the application to be able to launch normally

Full tauri info output

> [email protected] tauri
> tauri info


[✔] Environment
    - OS: Windows 10.0.19045 x86_64 (X64)
    ✔ WebView2: 132.0.2957.127
    ✔ MSVC: 
        - Visual Studio Community 2019
        - Visual Studio Community 2022
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.9.0
    - npm: 10.1.0

[-] 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

None

Additional context

No response

@cjonas1999 cjonas1999 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows 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