Skip to content
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

Stack overflow in //fillr #121

Open
mathiascode opened this issue Mar 10, 2017 · 4 comments
Open

Stack overflow in //fillr #121

mathiascode opened this issue Mar 10, 2017 · 4 comments

Comments

@mathiascode
Copy link
Member

When flying high above the ground and running the command "//fillr stone 17", a stack overflow occurs.

LUA: Plugins/WorldEdit/functions.lua:616: stack overflow
Warn [12:57:02] Stack trace:
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(616): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:02]   Plugins/WorldEdit/functions.lua(634): Next
[...]
Warn [12:57:28]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:28]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:28]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:28]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:28]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:28]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:28]   Plugins/WorldEdit/functions.lua(634): Next
Warn [12:57:28]   Plugins/WorldEdit/functions.lua(645): FillRecursively
Warn [12:57:28]   Plugins/WorldEdit/Commands/Terraforming.lua(202): (no name)
Warn [12:57:28] Stack trace end
Warn [12:57:28] Error in <attached> calling function <callback>()
@NiLSPACE
Copy link
Member

It seems I somehow have to turn the recursive function into a tail call

@madmaxoft
Copy link
Member

Either that, or get rid of the recursion :)

@NiLSPACE
Copy link
Member

I'm not sure if there is a good way to do this without the recursion.

@NiLSPACE
Copy link
Member

Wait, I can probably do it in a similar way as the FloodyWater script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants