bevyengine / bevyengine/bevy

AMD Memory Leak

Open
#7,108 12 comments 0 reactions 0 assignees View on GitHub
C-Bug C-Performance
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.9.1

## Relevant system information

If you cannot get Bevy to build or run on your machine, please include:

- the Rust version you're using (you can get this by running `cargo --version`)
- cargo 1.68.0-nightly (70898e522 2022-12-05)
- rustc 1.68.0-nightly (bdb07a8ec 2022-12-11)
- rustc 1.66.0 (69f9c33d7 2022-12-12)
- the operating system or browser used, including its version
- Arch Linux
- Linux archpc 6.1.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 04 Jan 2023 16:28:15 +0000 x86_64 GNU/Linux
- AMD Ryzen 9 3950X 16-Core Processor

If your bug is rendering-related, copy the adapter info that appears when you run Bevy.

```ignore
2023-01-06T08:09:33.812139Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1.25
2023-01-06T08:09:34.007245Z INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 5700 XT", vendor: 4098, device: 29471, device_type: DiscreteGpu, driver: "AMD open-source driver", driver_info: "2022.Q4.4 (LLPC)", backend: Vulkan }
```

You should also consider testing the examples of our upstream dependencies to help isolate any setup-specific issue:

- [`wgpu`](https://github.com/gfx-rs/wgpu) for rendering problems
- [`winit`](https://github.com/rust-windowing/winit) for input and window management
- [`gilrs`](https://docs.rs/gilrs/latest/gilrs/) for gamepad inputs

## What 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:

- application does not exit fully, must be killed with Ctrl+C or sigkill
- memory usage is constantly increasing on every screen (even Main Menu without any interaction)

## 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:

- logs
[bevy.log](https://github.com/bevyengine/bevy/files/10358625/bevy.log)
- workarounds that you used:
- multiple pc
- master branch
- links to related bugs, PRs or discussions

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.