Tracking down error without known source

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.

Fixed it - some sort of rogue edit. Look at the base scene file (the inheriting scene was okay):

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1271427598]
animation = &""
autoplay = "closed"

It should be like this:

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1271427598]

I did previously have Sprite Frames in base scene, but I did remove them. Engine decided to keep it, and there was no way to fix it through the editor - I had to brute force my way through the raw file itself.