How to solve the Error “maximum execution iteration execeed”

153 views
Skip to first unread message

Han Yang

unread,
Aug 14, 2017, 12:42:51 PM8/14/17
to Blockly
Hi, 
I would like to test if we could use Blockly to realize Encryption algorithm -- DES algorithm.
There are plenty of Blocks and when I run the program, there is an error : Maximum execution iteration execeed , how could I solve this problem.

Thanks for your time!

Andrew n marshall

unread,
Aug 14, 2017, 1:23:44 PM8/14/17
to blo...@googlegroups.com
This doesn't appear to be a blockly bug, but rather a protection in the interpreter to prevent infinite loops. Without further details, I'm not clear which interpreter. Googling "Maximum execution iteration exceed", I see similar errors in PHP, Google's app script, and SaleForce's platform.

If was a JavaScript in the web environment, I'd suggest web workers, or otherwise break the iteration into a sequence of multiple loops, chained together via JavaScript's setTimeout(). I'm sure your platform has something similar.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Neil Fraser

unread,
Aug 15, 2017, 5:22:36 AM8/15/17
to blo...@googlegroups.com
What browser/environment are you using?  Where are you executing this code?  I don't recognize this exact error message.

Firefox uses the message "InternalError: too much recursion" when the stack is 50,000 levels deep.

Chrome uses the message "Maximum call stack size exceeded" when the stack is 19,000 levels deep.

Safari reloads the page without warning when the stack is 3,000 levels deep.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages