bevy_animation::animate_targets crashes with "subtract with overflow" if there is an empty curve on AnimationClip #14766
Labels
A-Animation
Make things move and change over time
C-Bug
An unexpected or incorrect behavior
P-Crash
A sudden unexpected crash
S-Waiting-on-Author
The author needs to make changes or address concerns before this can be merged
Bevy version
0.14.1
[Optional] Relevant system information
SystemInfo { os: "Linux 24.05 NixOS", kernel: "6.6.45", cpu: "Intel(R) Core(TM) i7-14700KF", core_count: "20", memory: "31.2 GiB" }
AdapterInfo { name: "NVIDIA GeForce RTX 4060 Ti", vendor: 4318, device: 10243, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "550.78", backend: Vulkan }
What you did
Created an AnimationClip and added a curve to it with empty
keyframe_timestamps
andkeyframes
and attempted to play the clip.What went wrong
Application crashed with "attempted to subtract with overflow", preferably it should warn that the
VariableCurve
was created with emptykeyframe_timestamps
andkeyframes
over crashing.Additional information
Crash log, a bit mangled because there is multiple errors being printed in parallel
The text was updated successfully, but these errors were encountered: