-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
AMD Memory Leak #7108
Comments
I tried running splash screen only and even without countdown. Unfortunately this always leaks for me. I tried:
Surprisingly this appear to always run with Wayland backend (even on Xorg). It's also appear to increase by ~21MB of RAM every 2 seconds
|
Versions below 0.9.x crash with
|
Using amd pro seems to slow down leak but leak still exists 1MB per minute
1MB per couple seconds
When using amd_pro prefixes leak more or less disappear. Initially it raises but when left for couple minutes I don't have visible memory usage increase
|
Could you try running some of the wgpu examples at https://github.com/gfx-rs/wgpu/tree/master/wgpu/examples and see if you still have this issue. |
You said you tried running on main and that didn't mitigate it? This seems awfully similar to the memory leak solved by #6878 which is in main but not in 0.9.1. |
Are you running in release or debug mode? Logs can cause memory leaks in debug mode, but that magnitude is very high. |
Today (07.01.2023) results: Subject 1
Subject 2
Screens tested:
Subject 3
After crate edit and logs completely removed Memory leak |
I am running into what appears to be the same issue with an AMD RX 6600 XT external gpu (connected via thunderbolt). In my case memory usage grows by a constant ~100MB per second, leading to a crash in a few minutes of running. When disconnecting the egpu and running with the integrated intel gpu, the leak disappears. I can reproduce with a completely default project with only cargo new bevy_memleak_test
cd bevy_memleak_test
cargo add bevy
echo 'use bevy::prelude::*; fn main() { App::new().add_plugins(DefaultPlugins).run(); }' > src/main.rs
cargo run --release Both 12.1 and the latest git commit are affected. Here's my adapter and system information for reference:
I've tried poking around |
Are you able to reproduce this memory leak on |
Just tried with both wgpu latest and 0.17.1, but I can't reproduce the leak in either. Tried |
Interesting, similarly to #10260 this seems to only affect the AMDVLK driver. The leak doesn't happen with the RADV driver:
|
Bevy version
0.9.1
Relevant system information
If you cannot get Bevy to build or run on your machine, please include:
cargo --version
)If your bug is rendering-related, copy the adapter info that appears when you run Bevy.
You should also consider testing the examples of our upstream dependencies to help isolate any setup-specific issue:
wgpu
for rendering problemswinit
for input and window managementgilrs
for gamepad inputsWhat you did
Example: https://github.com/bevyengine/bevy/blob/v0.9.1/examples/games/game_menu.rs
What went wrong
If it's not clear, break this out into:
Additional information
Tested on 2 mobile Intel and there's no problem
Other information that can be used to further reproduce or isolate the problem.
This commonly includes:
bevy.log
The text was updated successfully, but these errors were encountered: