Open hukasu opened 1 month ago
Theoretically fixed by #13105 if it gets merged.
Just a little more info, I was migrating this code from 0.12 to 0.14.1 today, and this did not used to happen on 0.12, i pulled the version from before starting the migration and confirmed that in 0.12 this did not happen.
I created a minimal test on both 0.14.1 and 0.15-dev and both panic with "subtract with overflow".
with @mweatherley 's pull request, the curve properly requests 2 or more samples
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