-
Notifications
You must be signed in to change notification settings - Fork 948
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
Memory leak on boids example #5394
Comments
Hi, I believe I'm seeing the same memory leak behavior on Sonoma 14.4.1 (23E224) with Apple M1 Pro. But in my case, the difference in memory usage happened when updating wgpu from 0.18.0 to 0.19.0 (and is still present in 0.19.3). I have a test suite that performs headless rendering to PNG following https://sotrh.github.io/learn-wgpu/showcase/windowless/. And while tests are running the memory usage remained steady with wgpu 0.18.0, but rises steadily in 0.19.3, finally crashing with this backtrace: Backtrace
I'm happy to open a new issue if this doesn't sound like the same issue. Is the |
Since it may be a different problem, I created a dedicate repro for the issue I'm seeing in #5529 |
I managed to reproduce this on d3d12 as well, I'm seeing a ~1MB/min leak on boids. |
This has been fixed by ddff69b (#5141).
|
Description
Starting from MacOS Ventura, some Mac machines (there are Intel and M1 examples) using wgpu and apps using it accumulate memory over time.
Repro steps
With wgpu run
cargo run --example boids --release
; starting from v0.14; orcargo run --bin wgpu-examples boids --release
on later versions. I tested trunk version too, so up to and including 0.19Expected vs observed behavior
I expected old bevy apps to not accumulate memory after I updated MacOS. They do, as does even the wgpu boids example
Extra materials
Right when starting it has few memory usage:
After some time:
Platform
MacOS Sonoma 14.4 (23E214), Radeon Pro 560X 4 GB, memory 8 GB 2667 MHz DDR4.
The text was updated successfully, but these errors were encountered: