-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Comments
I think I ran into the same (or similar) issue. @TypicalAuthor, have you tried running |
Oh wow you're right! If I run the app trough konsole everything works fine,but as soon as I launch the app trough the built-in console in vsc memory usage goes trough the roof 2024-07-12.12-14-28.mp4Really weird behavior, never thought vsc terminal would be the cause |
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 constantlyExpected behavior
No response
Full
tauri info
outputStack 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
The text was updated successfully, but these errors were encountered: