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

Super Pickaxe error/server crash #102

Open
Woazboat opened this issue Feb 23, 2016 · 2 comments
Open

Super Pickaxe error/server crash #102

Woazboat opened this issue Feb 23, 2016 · 2 comments

Comments

@Woazboat
Copy link

Activated the super pickaxe with a diamond pick in my hand and tried to break some dirt. The server console spat out this error:

[fa4d08ea693f8d2f|16:21:39] HandleLeftClick: {-32, 128, -1106}; Face: 5; Stat: 0
[fa4d08ea693f8d2f|16:21:39] LUA: Plugins/WorldEdit/Commands/Tool.lua:130: error in function 'BroadcastSoundParticleEffect'.
     argument #2 is 'number'; 'const EffectID' expected.

[fa4d08ea693f8d2f|16:21:39] Stack trace:
[fa4d08ea693f8d2f|16:21:39]   [C](-1): BroadcastSoundParticleEffect
[fa4d08ea693f8d2f|16:21:39]   Plugins/WorldEdit/Commands/Tool.lua(130): (no name)
[fa4d08ea693f8d2f|16:21:39]   (tail call)(-1): 
[fa4d08ea693f8d2f|16:21:39]   (tail call)(-1): 
[fa4d08ea693f8d2f|16:21:39] Stack trace end
[fa4d08ea693f8d2f|16:21:39] LUA: BreakIntoDebugger() not found / not a function
[fa4d08ea693f8d2f|16:21:39] Error in plugin WorldEdit calling function <callback>()

After breaking a few blocks with the non-functional super pickaxe enabled, the server ran into an assertion and crashed:

Cuberite_debug: /home/florian/qtworkspace/cuberite_upstream/cuberite/lib/lua/src/lapi.c:449: lua_pushlstring: Assertion `L->top < L->ci->top' failed.
Aborted

I also managed to crash the server with another assertion. It happened while I was spamming the activation/deactivation command for the pickaxe, but I'm not entirely certain what triggered it.

Cuberite_debug: /home/florian/qtworkspace/cuberite_upstream/cuberite/lib/lua/src/lapi.c:231: lua_pushvalue: Assertion `L->top < L->ci->top' failed.
Aborted
@madmaxoft
Copy link
Member

This is an interesting crash, we should investigate the crash before fixing the WorldEdit plugin. It seems like some of the Lua glue code is not working properly.

@NiLSPACE
Copy link
Member

It seems the EffectID isn't actually exported to Lua, so I can't even fix it at the moment. I find it very weird that it can actually completely crash the server though.

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