You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
* bevy main
* fix gltf example by enabling features required for TonyMcMapface
* bevy 0.11
* don't render empty lines to avoid crash bevyengine/bevy#9089
* polyanya 0.4
# Objective
Fix#9089
## Solution
Don't try to draw lines with less than 2 vertices. These would not be
visible either way.
---------
Co-authored-by: François <mockersf@gmail.com>
# Objective
Fix#9089
## Solution
Don't try to draw lines with less than 2 vertices. These would not be
visible either way.
---------
Co-authored-by: François <mockersf@gmail.com>
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
Additional information
I tested it on both vulkan and dx12.
It used to work on bevy main. #8910 is when it started crashing.
The text was updated successfully, but these errors were encountered: