testserver builtin/game/item_entity.lua:172: attempt to index field '_collisionbox' (a nil value) #6551

Open
opened 2024-03-22 19:37:55 +00:00 by AliasAlreadyTaken · 1 comment

When trying to reproduce #5420 this happened:

2024-03-22 19:35:05: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'wielded_light' in callback luaentity_Step(): .../5.8.0/Minetest_test/bin/../builtin/game/item_entity.lua:172: attempt to index field '_collisionbox' (a nil value)
2024-03-22 19:35:05: ERROR[Main]: stack traceback:
2024-03-22 19:35:05: ERROR[Main]: 	.../5.8.0/Minetest_test/bin/../builtin/game/item_entity.lua:172: in function 'on_step'
2024-03-22 19:35:05: ERROR[Main]: 	.../bin/../games/minetest_game/mods/default/item_entity.lua:44: in function 'func'
2024-03-22 19:35:05: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function 'on_step'
2024-03-22 19:35:05: ERROR[Main]: 	...t/5.8.0/Minetest_test/bin/../mods/wielded_light/init.lua:615: in function 'func'
2024-03-22 19:35:05: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function 'old_on_step'
2024-03-22 19:35:05: ERROR[Main]: 	.../bin/../mods/yl_commons/features/item_saplings_plant.lua:49: in function <.../bin/../mods/yl_commons/features/item_saplings_plant.lua:48>
When trying to reproduce #5420 this happened: ``` 2024-03-22 19:35:05: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'wielded_light' in callback luaentity_Step(): .../5.8.0/Minetest_test/bin/../builtin/game/item_entity.lua:172: attempt to index field '_collisionbox' (a nil value) 2024-03-22 19:35:05: ERROR[Main]: stack traceback: 2024-03-22 19:35:05: ERROR[Main]: .../5.8.0/Minetest_test/bin/../builtin/game/item_entity.lua:172: in function 'on_step' 2024-03-22 19:35:05: ERROR[Main]: .../bin/../games/minetest_game/mods/default/item_entity.lua:44: in function 'func' 2024-03-22 19:35:05: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function 'on_step' 2024-03-22 19:35:05: ERROR[Main]: ...t/5.8.0/Minetest_test/bin/../mods/wielded_light/init.lua:615: in function 'func' 2024-03-22 19:35:05: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function 'old_on_step' 2024-03-22 19:35:05: ERROR[Main]: .../bin/../mods/yl_commons/features/item_saplings_plant.lua:49: in function <.../bin/../mods/yl_commons/features/item_saplings_plant.lua:48> ```
AliasAlreadyTaken added the
1. kind/bug
2. prio/critical
labels 2024-03-22 19:38:02 +00:00
Member

not obviously the fault of item_saplings_plant.lua (that line is just calling the old on_step for an item entity).

not obviously the fault of wielded_light (same reason)

not obviously the fault of minetest_game (same reason)

not obviously the fault of the engine's builtin lua code. reading the code, i can't see any reason why _collisionbox wouldn't be initialized properly. i also can't find any code outside of there that munges that value, or the initial_properties of that entity.

not obviously the fault of item_saplings_plant.lua (that line is just calling the old on_step for an item entity). not obviously the fault of wielded_light (same reason) not obviously the fault of minetest_game (same reason) not obviously the fault of the engine's builtin lua code. reading the code, i can't see any reason why `_collisionbox` wouldn't be initialized properly. i also can't find any code outside of there that munges that value, or the `initial_properties` of that entity.
flux added the
3. source/unknown
label 2024-03-25 20:48:36 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#6551
No description provided.