-
Notifications
You must be signed in to change notification settings - Fork 23
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
wielder.lua:113: bad argument [#1] to 'ipairs' (table expected, got nil) #24
Comments
given @fluxionary repro, i would guess that this has something to do with meta left behind by worldedit, or external storage of the position being kept, and worldedit not updating it. (voxel manip doesnt call the destroy/remove callbacks, or remove meta) |
When I want to clear an area with WE, I not only set it to air, but I also made a command to get rid of all metadata. And then ofc I clear entities. Anything I forgot? |
would have to look and see if pipeworks is storing things internally, i know it tracks the entities internally at least |
Because in minetest it is easy to break node metadata even without any admin commands this might again be just mod assuming false things based on what it did itself. |
I think MVPS is fine, given that you can push chests around and their contents remain. I think a solution looks like a metadata "sanity check" at the start of I also think WorldEdit needs a blacklist feature. |
Unless I am mistaken and it only looks similar: This happened again, not reproducible again:
For my reference 7042 |
Yeah it's the same, a wielder that doesn't have an inventory, which should never happen normally. Line 71 in e9a9bd7
|
Any debugging code to find what's happening or nil guard to stop it from happening or both I could add? It doesn't happen often, but it hints at some issue somewhere else tbh. |
I added some debug:
And this is what it gave me:
I probably have a repro now, although I must admit I don't understand it. What now? |
You say you found a way to reproduce the error situation, do you mind sharing it? |
Repro as in "happens again 100% of the time I load the mapblock". It's not a repro where I could build a machine and it 100% fails. If you want, I'll show you ingame, you can read out values via lua. Visit me on the YL testserver if that helps or poke me on discord, matrix, IRC or anywhere else: address your-land.de |
@Bastrabun can you provide a worldedit schematic from the area mentioned in the above stacktrace: Should include the region around this:
Or somewhere else where this happens |
That's what is needed though, we know why it fails when loading the mapblock (it's missing an inventory), but we need to know how it got that way. As far as I know the only way it can happen is with worldedit, or some other mod that places nodes with a VoxelManip and doesn't call the appropriate callbacks. |
bugtracker7042_nodebreaker_01.we.zip
The area is from before 13.6.2022, the player did not have Worldedit or any priv above normal player. |
I do not have a repro unfortunately, but flux did a bit of research here: https://gitea.your-land.de/your-land/bugtracker/issues/1816
For my reference 1816
The text was updated successfully, but these errors were encountered: