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] Application launch is incredibly slow #12742

Open
NotGhoull opened this issue Feb 19, 2025 · 5 comments
Open

[bug] Application launch is incredibly slow #12742

NotGhoull opened this issue Feb 19, 2025 · 5 comments
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@NotGhoull
Copy link

Describe the bug

When running bun [run] tauri dev the window takes upwards of 30 - 40 seconds to connect to the svelte page/vite, it's immediately available in the browser though.

This could very well be user error, and I've just missed something, but even in a clean project the behavior still appears for whatever reason.

Reproduction

  1. run bun create tauri-app
  2. Select Svelte and Typescript
  3. Run the project and observe slow behavior

Expected behavior

For the application to load quicker, maybe this is intended, but it doesn't seem that way.

Full tauri info output

[✔] Environment
    - OS: Arch Linux Rolling Release x86_64 (X64) (KDE on wayland)
    ✔ webkit2gtk-4.1: 2.46.5
    ✔ rsvg2: 2.59.2
    ✔ 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: 23.8.0
    - pnpm: 10.4.0
    - npm: 11.1.0
    - bun: 1.2.2

[-] 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-log 🦀: 2.2.1
    - @tauri-apps/plugin-log : 2.2.1
    - tauri-plugin-opener 🦀: 2.2.5
    - @tauri-apps/plugin-opener : 2.2.5

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

Stack trace


Additional context

No response

@NotGhoull NotGhoull added status: needs triage This issue needs to triage, applied to new issues type: bug labels Feb 19, 2025
@perezd
Copy link

perezd commented Feb 19, 2025

I have this same experience but it's totally random. I end up just restarting the dev server a few times until it works...Not sure what's up.

@NotGhoull
Copy link
Author

I haven't been able to get it to launch fast, even when re-trying multiple times, it being this slow is really annoying for developing applications.

@perezd
Copy link

perezd commented Feb 20, 2025

That's odd. I am on MacOS (not Linux). It happens randomly, and I can't figure out what causes it.

@NotGhoull
Copy link
Author

From what I can tell, it seems to be a bug in maybe the webview? Or whatever window they're using for connecting to the frontend (React, svelte, etc) takes a while to even begin to connect. Since my Rust code runs straight away, the frontend is instantly available on localhost, it's just the window takes forever to connect, for whatever reason.

I'm only a beginner developer, so I could be entirely wrong, but from what I can see that seems to be at least a issue

@NotGhoull
Copy link
Author

I've been able to experience up to, almost 3 and a half minutes to just connect when running in tauri dev it was at about 2.5 minutes before it even started to load my code, which is basically just a hello world page with a bit of tailwind in it
Image

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

3 participants