Skip to content

Regression : can't use debugger in v0.17 #21858

@djeedai

Description

@djeedai

Bevy version and features

v0.17

AdapterInfo { name: "NVIDIA GeForce RTX 4070", vendor: 4318, device: 10118, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "566.36", backend: Vulkan }

What you did

Set a breakpoint. Resume after a few seconds.

What went wrong

wgpu loses the GPU device and the renderer immediately panics after the first breapoint is resumed. So you can hit exactly one breakpoint before your app panics and crashes.

thread 'Compute Task Pool (15)' (2132) panicked at C:\Users\_\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_render-0.17.2\src\view\window\mod.rs:270:17:
Couldn't get swap chain texture, operation unrecoverable: Acquiring a texture failed with a generic error. Check error callbacks for more information

Additional information

There's a bunch of other issues around handling device lost etc. but I wanted to raise the criticality of the consequence of it. This is a serious regression in Bevy if you can't use a debugger anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Dev-ToolsTools used to debug Bevy applications.A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorC-UsabilityA targeted quality-of-life change that makes Bevy easier to useP-RegressionFunctionality that used to work but no longer does. Add a test for this!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions