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] Really high memory usage while resizing a window in Linux (V1 and V2) #10102

Open
TypicalAuthor opened this issue Jun 23, 2024 · 0 comments
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@TypicalAuthor
Copy link

Describe the bug

In both Tauri V1 and V2, if you resize the app constantly, memory usage will go up really fast, and it wont really go down unless you close the app and wait for the process to end.

Also I found that sometimes while resizing, the app will randomly just stop resizing, even if you try again, its just after a few seconds that the app will let you resize it again, but after that resizing becomes really slow/laggy

While I was testing in V1, memory usage went up to +95%, my whole system became so unstable that I had to perform an emergency restart
On V2 it takes a bit longer to see the memory usage go up like in V1, but it eventually does.

In both V1 and V2 memory usage goes down when you stop resizing, but really slowly, leaving the system borderline unusable for a while.

This is not a behavior I see in other web-based apps (in discord memory usage goes up a bit, but also down constantly)

My system:
Ryzen 5 3400G
16 GB RAM (only 14GB is usable by the system)
Arch Linux + KDE 6.1 (Wayland)
I dont know is this is important, but I also have a dual monitor setup
Also, I only tested this in Debug builds.

Reproduction

Run npm run tauri dev on any V1 or V2 and resize the window constantly

Expected behavior

No response

Full tauri info output

> [email protected] tauri
> tauri info


[⚠] Environment
    - OS: Arch Linux Rolling Release X64
    ✔ webkit2gtk-4.0: 2.44.2
    ✔ rsvg2: 2.58.1
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10) (Arch Linux rust 1:1.79.0-1)
    ✔ cargo: 1.79.0
    ⚠ rustup: not installed!
      If you have rust installed some other way, we recommend uninstalling it
      then use rustup instead. Visit https://rustup.rs/
    ⚠ Rust toolchain: couldn't be detected!
      Maybe you don't have rustup installed? if so, Visit https://rustup.rs/
    - node: 22.3.0
    - npm: 10.8.1

[-] Packages
    - tauri [RUST]: 1.6.8
    - tauri-build [RUST]: 1.5.2
    - wry [RUST]: 0.24.10
    - tao [RUST]: 0.16.9
    - @tauri-apps/api [NPM]: 1.5.6
    - @tauri-apps/cli [NPM]: 1.5.14

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

Stack trace

No response

Additional context

In the attached video you can see how simply resizing an app makes the system ram usage go up, and also the whole system becomes really laggy, and it doesnt stop until I close the app. The image is for the same test but on a V2 app, the same thing happens.

out.mp4

Screenshot_20240622_172304

@TypicalAuthor TypicalAuthor added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jun 23, 2024
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