Animation errors appear approximately once every few times.

Animation::_find: Found the key outside the animation range. Consider using the clean-up option in AnimationTrackEditor to fix it.

When I previously asked about this error, I was told that the cause was a key set outside the animation range. However, even after isolating a single object and cleaning up all its animations, this error still appears. Could this be a bug? Or are there cases where the clean-up function cannot resolve the error?

By the way, even when performing exactly the same animation, the error occurs only occasionally (about once every few attempts) with no discernible pattern. If there were an issue with the animation itself, I would expect this error to occur every time that specific animation is played, not intermittently.

Could you please confirm this in the project we received? Which animation are you referring to?

This can be confirmed in the project we sent.

Errors occur in any scene, but it would be best to verify with all objects except the player character removed from the game scene.

In this case, since only the player character is animated, I suspect the cause of the error lies in the player character’s animations. However, even after cleaning up all animations for this character, the error still occurs occasionally.

The error consistently happens immediately after the scene starts. If you move the player left and right right after the scene starts, the error occurs every few times.

What is puzzling is that once the error occurs, it does not happen a second time even after resetting the game, and I cannot figure out why it does not occur every time. If there were an issue with the animations, I would expect it to occur even after a reset.

I would appreciate your guidance on countermeasures.

I have tested the provided project about 20 times, but I was unable to reproduce the issue, so the cause remains unclear.

Since this error is specific to Godot’s AnimationPlayer, it cannot occur elsewhere, and it is certainly related to some animation issue. However, as I cannot reproduce it in my environment, it is possible that this is a bug on Godot’s side.

One thing to note is that in the RESET animation, the volumdb bar of an AudioStreamPlayer that extends beyond the screen is visible. Could it be that the error stops occurring if this is hidden?

Moonling

This isn’t a fundamental solution, but I’ve identified what’s causing the issue.

This character has footstep sounds embedded in the animation to play at regular intervals while dashing. After removing the key for these footsteps and testing approximately 10 times, no errors occurred.

Previously, an error appeared at least once every three attempts. Therefore, it seems (for reasons unknown) that this is the culprit.

Until the root cause is identified, I will proceed by disabling the footstep sounds.

By the way, simply removing the volumedb band did not change the symptoms.

This error is harmless, so there should be no issue. However, it is indeed unsettling, so we will investigate it. Please wait a little longer.

P.S.: Regarding the error content, although it appears scary because it is in red text, as mentioned previously, it is merely a warning suggesting, “There was a key outside the animation range; wouldn’t it be better to review it?”

1 Like

Thank you for your response.
Understood.