Skip to content

Device lost handling #21407

@valaphee

Description

@valaphee

Bevy version and features

baddb7e

[Optional] Relevant system information

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://learn.microsoft.com/en-us/windows/uwp/gaming/handling-device-lost-scenarios

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorD-ComplexQuite challenging from either a design or technical perspective. Ask for help!P-CrashA sudden unexpected crashS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions