Closed Inspirateur closed 9 months ago
Check this message.
Wow i honestly didn't believe this could cause a leak so big but I removed it from my cargo.toml and the leak is gone ! Thank you very much 👍
That being said this really ought to be documented as it has cost me (and probably others) numerous hours of debugging !
This is due to tracing-tracy being enabled, not a bug.
Relevant information
Bevy 0.12.1
What you did
I was experiencing a huge memory leak, initially 200MB/s, on my bevy game https://github.com/Inspirateur/ourcraft even when seemingly nothing was happening (no entity changes, no new terrain generating) that quickly lead to a crash when RAM ran out (status access violation).
Here are the debugging steps I took then:
This issue seems similar to https://github.com/bevyengine/bevy/issues/5691 but my leak is bigger, persists with
cargo run --release
and always end up crashing the game (and sometimes bricking my computer too) !Another reproduction
My friend tried the game out and had the same leak (same rate too) with this config: