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

filter-injector.lua:555: attempt to get length of local 'list' (a nil value) #149

Open
cheapie opened this issue Feb 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@cheapie
Copy link
Contributor

cheapie commented Feb 1, 2025

The filter conversion LBM crashes if run on a filter missing its inventory metadata.

Example output:

ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'pipeworks' in callback LuaLBM::trigger(): .../worlds/survival/worldmods/pipeworks/filter-injector.lua:555: attempt to get length of local 'list' (a nil value)
ERROR[Main]: stack traceback:
ERROR[Main]: 	.../worlds/survival/worldmods/pipeworks/filter-injector.lua:555: in function 'put_to_inputinv'
ERROR[Main]: 	.../worlds/survival/worldmods/pipeworks/filter-injector.lua:574: in function 'func'
ERROR[Main]: 	/home/noah/mt/bin/../builtin/profiler/instrumentation.lua:124: in function 'action'
ERROR[Main]: 	/home/noah/mt/bin/../builtin/game/misc.lua:320: in function </home/noah/mt/bin/../builtin/game/misc.lua:304>

This was originally discovered due to a corrupted map (as in it was caused by a corrupted map, it didn't cause the corruption), but an easy way to reproduce it without any corruption is:

  1. With pipeworks enabled, use WorldEdit's //s command or similar to place pipeworks:filter or pipeworks:mese_filter.
  2. Load the world at least once with pipeworks disabled.
  3. Enable pipeworks again and re-load the world. The server will crash when the mapblock containing the filter is loaded.
@BuckarooBanzay BuckarooBanzay added the bug Something isn't working label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants