-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report: Stack Overflow When Calling Functions Enough Times #208
Comments
Note if you call two functions, the effect is additive. Calling any functions, an accumulative total of 1000191 times will crash, even if those calls are spread across 100 functions. Also any call to |
Is this still reproducible in the latest build? |
Latest release yes, latest version of main branch, likely but I don't know since I can't build it. If you use that code I posted but put the do_string call in a loop like for i in 1000, then you'll find out very quickly too. |
To verify: |
Ah oops yep.. The whole process call can be looped yes. |
When calling a Lua method from gdscript some number of times, Lua will return a stack overflow error.
To Reproduce
Run this code for ~10s.
Stack overflow might be happening at some specific number of calls.
When forcing it to call the same function 100 times per frame it still crashes on the 999996th call.
When removing the assert line, it crashes at 1000190 in current version and 1000191 in the AssetLib, Godot 4.1.1 version, unknown why it can get higher than the above.
Expected behavior
Lua functions should be able to be called infinite times without a stack overflow.
Environment:
Additional context
Also had the same issue from Godot 4.1.1 with the AssetLib version.
Could also be possible I'm just using things wrong.
The text was updated successfully, but these errors were encountered: