testserver minetest-bones_redo/api.lua:264: error serializing stacks? #5653

Closed
opened 2023-12-11 21:53:23 +00:00 by AliasAlreadyTaken · 3 comments

When a player dies inside solid rock, this happens:

2023-12-11 21:51:25: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback on_chat_message(): Runtime error from mod '' in callback on_dieplayer(): ....0/Minetest_test/bin/../mods/minetest-bones_redo/api.lua:264: error serializing stacks?
2023-12-11 21:51:25: ERROR[Main]: stack traceback:
2023-12-11 21:51:25: ERROR[Main]: 	[C]: in function 'error'
2023-12-11 21:51:25: ERROR[Main]: 	....0/Minetest_test/bin/../mods/minetest-bones_redo/api.lua:264: in function 'place_bones_entity'
2023-12-11 21:51:25: ERROR[Main]: 	...st_test/bin/../mods/minetest-bones_redo/on_dieplayer.lua:49: in function 'func'
2023-12-11 21:51:25: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101>
2023-12-11 21:51:25: ERROR[Main]: 	.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:432>
2023-12-11 21:51:25: ERROR[Main]: 	[C]: in function 'set_hp'
2023-12-11 21:51:25: ERROR[Main]: 	/home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:1348: in function 'func'
2023-12-11 21:51:25: ERROR[Main]: 	/home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:79: in function </home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:52>
2023-12-11 21:51:25: ERROR[Main]: 	.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:432>
2023-12-11 21:51:25: ERROR[Main]: stack traceback:
2023-12-11 21:51:25: ERROR[Main]: 	[C]: in function 'set_hp'
2023-12-11 21:51:25: ERROR[Main]: 	/home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:1348: in function 'func'
2023-12-11 21:51:25: ERROR[Main]: 	/home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:79: in function </home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:52>
2023-12-11 21:51:25: ERROR[Main]: 	.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:432>

The serialization maybe hints at books and compasses the player had with him? is there a limit?

This happens with the new upstream branch of bones, testing for #5628

Workaround: Use old branch, IF the error doesn't happen there as well

When a player dies inside solid rock, this happens: ``` 2023-12-11 21:51:25: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback on_chat_message(): Runtime error from mod '' in callback on_dieplayer(): ....0/Minetest_test/bin/../mods/minetest-bones_redo/api.lua:264: error serializing stacks? 2023-12-11 21:51:25: ERROR[Main]: stack traceback: 2023-12-11 21:51:25: ERROR[Main]: [C]: in function 'error' 2023-12-11 21:51:25: ERROR[Main]: ....0/Minetest_test/bin/../mods/minetest-bones_redo/api.lua:264: in function 'place_bones_entity' 2023-12-11 21:51:25: ERROR[Main]: ...st_test/bin/../mods/minetest-bones_redo/on_dieplayer.lua:49: in function 'func' 2023-12-11 21:51:25: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101> 2023-12-11 21:51:25: ERROR[Main]: .../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:432> 2023-12-11 21:51:25: ERROR[Main]: [C]: in function 'set_hp' 2023-12-11 21:51:25: ERROR[Main]: /home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:1348: in function 'func' 2023-12-11 21:51:25: ERROR[Main]: /home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:79: in function </home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:52> 2023-12-11 21:51:25: ERROR[Main]: .../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:432> 2023-12-11 21:51:25: ERROR[Main]: stack traceback: 2023-12-11 21:51:25: ERROR[Main]: [C]: in function 'set_hp' 2023-12-11 21:51:25: ERROR[Main]: /home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:1348: in function 'func' 2023-12-11 21:51:25: ERROR[Main]: /home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:79: in function </home/mt/5.7.0/Minetest_test/bin/../builtin/game/chat.lua:52> 2023-12-11 21:51:25: ERROR[Main]: .../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:446: in function <.../mt/5.7.0/Minetest_test/bin/../builtin/game/register.lua:432> ``` The serialization maybe hints at books and compasses the player had with him? is there a limit? This happens with the new upstream branch of bones, testing for #5628 Workaround: Use old branch, IF the error doesn't happen there as well
AliasAlreadyTaken added the
1. kind/bug
2. prio/critical
labels 2023-12-11 21:53:34 +00:00
AliasAlreadyTaken added this to the 1.1.122 milestone 2023-12-11 21:53:37 +00:00
flux added the
4. step/ready to QA test
label 2023-12-12 20:44:08 +00:00
flux added this to the flux's TODO list project 2023-12-12 20:44:10 +00:00
flux self-assigned this 2023-12-12 20:44:13 +00:00
Member

The serialization maybe hints at books and compasses the player had with him? is there a limit?

there might be a limit, as it relies on minetest.deserialize at a low level, but i think it'd be a limit on the number of distinct items, not in the length of the final serialized string.

this crash happens if there's any items in the player's inventory whatsoever, and they die in a wall.
fixed: 14b2153c84

> The serialization maybe hints at books and compasses the player had with him? is there a limit? there might be a limit, as it relies on `minetest.deserialize` at a low level, but i think it'd be a limit on the number of distinct items, not in the length of the final serialized string. this crash happens if there's any items in the player's inventory whatsoever, and they die in a wall. fixed: https://github.com/fluxionary/minetest-bones_redo/commit/14b2153c842e86d450dde2d256abf1707e3044fc
Author
Owner

QA

Wow, lucky this never happened on main?

Still, it works now :)

QA Wow, lucky this never happened on main? Still, it works now :)
AliasAlreadyTaken added the
ugh/QA OK
label 2023-12-13 02:21:07 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-12-18 22:47:29 +00:00
flux removed this from the flux's TODO list project 2023-12-18 22:47:32 +00:00
flux removed their assignment 2023-12-18 22:47:34 +00:00
Member

this is live

this is live
flux closed this issue 2023-12-18 23:03:00 +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#5653
No description provided.