Animation (from animator) only plays through when scene tab is opened

Hi, while using the animator in Unity, I have an animation that plays when the player presses spacebar. This is the only way the animation plays and the transition to it does not have exit time, but the transition to the animation after it does (if this information helps at all).

The really strange occurrence is that the animation will only successfully play the whole way through while the scene tab is open. If the scene tab is closed, the animation will play a few of the first frames before freezing. Yet when the scene tab is open it will play smoothly. This also happens when I try to build and run the game, the animation freezes.

Could this be a problem within unity itself?

Turns out a fix (at least for now) is to reimport all animations that pause midway through.