Godot Version
v4.6.2.stable.mono.official [71f334935]
Question
I have an error that shows up instantly upon launching the game:
E 0:00:01:743 NativeCalls.cs:3111 @ Godot.GodotObject Godot.NativeCalls.godot_icall_1_335(nint, nint, int): There is no animation with name ''.
<C++ Error> Method/function failed.
<C++ Source> scene/2d/animated_sprite_2d.cpp:565 @ set_animation()
Stack trace shows nothing of value - it only shows the line where I load the level, so it can be virtually everything.
The error does say what is the problem - the thing is I never call an empty animation (AnimatedSprite2D.Play(‘’); ). I did track down the issue to specific scene and script (removing that object from the level fixes the issue, it’s an Area2D with AnimatedSprite2D as a child, it inherits from another scene, this is just a specific variant), but I’ve already remade Sprite Frames for that AnimatedSprite2D and it did not fix the issue. Which makes things even more confusing.