-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
A-GizmosVisual editor and debug gizmosVisual editor and debug gizmosC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-CrashA sudden unexpected crashA sudden unexpected crash
Milestone
Description
Bevy version
Bevy 0.11
What you did
Have a system that unconditionally runs gizmos.linestrip_2d(path, Color::YELLOW);
, where path is an iterator over a list of points that can be empty.
What went wrong
It crashes with
thread 'main' panicked at 'Buffer slices can not be empty', C:\Users\elabajaba\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.16.2\src\lib.rs:2362:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in exclusive system `bevy_render::renderer::render_system`!
Additional information
I tested it on both vulkan and dx12.
It used to work on bevy main. #8910 is when it started crashing.
Metadata
Metadata
Assignees
Labels
A-GizmosVisual editor and debug gizmosVisual editor and debug gizmosC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-CrashA sudden unexpected crashA sudden unexpected crash