Skip to main content
SketchbookShark
Participant
February 22, 2019
Answered

too much recursion error - too many frames?

  • February 22, 2019
  • 1 reply
  • 1169 views

I am trying to convert my old animations into HTML5 Canvas projects for my clients. The number of difficulties encountered is ridiculous. Now I get a "too much recursion" error (InternalError: too much recursion - JavaScript | MDN ). This is basically a "preemptive" stack overflow.

I have removed all custom javascript code from my project. This is definitely coming exclusively from the code generated by Animate, not manually written code. It goes away when I drastically reduce the number of frames in my movieclips. Does anyone have any helpful information on this error and how to get around it? Is there a maximum number of frames for movie clips in Canvas projects?

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

I'm sorry about that.

It happened to me this week and the reason was because I had a very long shape tween animation in the main timeline.

Can you verify if you have something similar?

Regards,

JC

1 reply

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
February 22, 2019

Hi.

I'm sorry about that.

It happened to me this week and the reason was because I had a very long shape tween animation in the main timeline.

Can you verify if you have something similar?

Regards,

JC

SketchbookShark
Participant
February 23, 2019

Yes JC, I can confirm that there are several tweens, simple fade-ins and fade-outs using the alpha channel as well as some tweening of the X and Y position. When fading in and out I didn't bother creating a separate keyframe. So the fade-in, fade-out, and the long period of it being displayed at full opacity is indeed one very long tween. I will try to restructure this and see if it helps. Will report back.

JoãoCésar17023019
Community Expert
Community Expert
February 23, 2019

Nice.

Wherever possible, please consider using classic tweens instead of shape tweens.

Regards,

JC