3.8.3 2D spriteFrame animation bug: switching between animation clips no display sometimes

I have several 2D animation clips changing spriteFrame, but switching between these clips can sometimes cause the image totally disappears. Logs show that the animation is playing, spriteFrame is changing, node and Sprite component is active, but there is just no image at all.

I have called animation.stop() before play new animation clip, and I tried to play the new animation clip one frame later after animation.stop(), still same.

Anyone knows what’s going on?

I did a spriteFrame changing method in update(), still has the same problem, unbelievable…

Damn… cost me a whole day to figure out the reason is when I change the direction of the image, I use Math.sign() to get the movement direction, and it can sometimes return 0, so it set scale.x to 0… coding life…