bevyengine / bevyengine/bevy

Device lost handling

Open
#21,407 5 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug D-Complex I-Crash S-Ready-For-Implementation X-Uncontroversial
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version and features

baddb7edb7c17f8dce4f9c58380f10207c4a3cf9

## \[Optional\] Relevant system information

```ignore
SystemInfo { os: "Windows 11 Pro", kernel: "26100", cpu: "Intel(R) Core(TM) i9-14900HX", core_count: "24", memory: "127.6 GiB" }
AdapterInfo { name: "NVIDIA GeForce RTX 4090 Laptop GPU", vendor: 4318, device: 10007, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "576.52", backend: Vulkan }
```

## What you did

`cargo run --example 3d_scene`

causing a device lost by disabling the dedicated gpu in device manager

## What went wrong

There is no handling for render device migration, e.g. when switching render devices, Bevy stack overflows or panics.

## Additional information

[.log](https://github.com/user-attachments/files/22711962/default.log)

https://learn.microsoft.com/en-us/windows/uwp/gaming/handling-device-lost-scenarios

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with `cargo run --example 3d_scene` while disabling the dedicated GPU in Windows Device Manager, and inspect the attached `.log`. Read the linked Microsoft device-lost guidance and trace the render-device path involved in the example; done means device loss or migration no longer causes a stack overflow or panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.