Closed KoBeWi closed 4 months ago
I was not able to reproduce this in 4.3-beta2
I can still reproduce. Here's a video, in case instructions were unclear:
https://github.com/godotengine/godot/assets/2223172/73544601-40fc-42ba-b7a9-8d3170e08ed4
Thank you, now I have been able to reproduce it, by performing undo TWICE (undoing the "move bezier key" step, without selecting the animation player). Digging a little into it, I found that it stems from the step // 7-reselect
in gui_input()
in the animation bezier editor. Commenting out the lines to do undo and redo of the selection in the loop, the crash does not happen anymore.
Looking further, it seems that after the deletion the animation
field in animation_track_editor.cpp
is NULL, so when the _key_selected
method is called after a key_selected
signal is emitted in the bezier editor, the program tries to access the track count of a null object. Some null checks should do the trick.
Tested versions
4.3 f8a2a9193662b2e8c1d04d65e647399dee94f31e
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
Steps to reproduce
Exact steps are not obvious determine, but it's something like that.
Minimal reproduction project (MRP)
N/A