crash due to /list_areas #1869

Closed
opened 2022-05-02 22:48:20 +00:00 by flux · 4 comments
Member

oh, this is the version of the areas mod where it tries to concatenate the info about every area on the server into a single string and runs out of memory.

94faafcada/chatcommands.lua (L175-L190)

we fixed this on blocky:

927b7324a7

i'll submit a similar PR to our fork

oh, this is the version of the areas mod where it tries to concatenate the info about *every area on the server* into a *single string* and runs out of memory. https://gitea.your-land.de/your-land/areas/src/commit/94faafcada3544c1b4d60b3bf8132b59f3677a6a/chatcommands.lua#L175-L190 we fixed this on blocky: https://github.com/BlockySurvival/areas/commit/927b7324a71a3b759b661e97f8884541c9e71fe0 i'll submit a similar PR to our fork
flux added the
1. kind/bug
2. prio/critical
labels 2022-05-02 23:13:35 +00:00
Author
Member
fix @ https://gitea.your-land.de/your-land/areas/pulls/2

2022-05-03 00:40:41: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback on_chat_message(): String too long
2022-05-03 00:40:41: ERROR[Main]: stack traceback:
2022-05-03 00:40:41: ERROR[Main]: [C]: in function 'chat_send_player'
2022-05-03 00:40:41: ERROR[Main]: .../mtlive/5.5.0/Minetest_live/bin/../builtin/game/chat.lua:103: in function 'func'
2022-05-03 00:40:41: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>
2022-05-03 00:40:41: ERROR[Main]: ...ive/5.5.0/Minetest_live/bin/../builtin/game/register.lua:425: in function <...ive/5.5.0/Minetest_live/bin/../builtin/game/register.lua:409>

2022-05-03 00:40:41: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback on_chat_message(): String too long 2022-05-03 00:40:41: ERROR[Main]: stack traceback: 2022-05-03 00:40:41: ERROR[Main]: [C]: in function 'chat_send_player' 2022-05-03 00:40:41: ERROR[Main]: .../mtlive/5.5.0/Minetest_live/bin/../builtin/game/chat.lua:103: in function 'func' 2022-05-03 00:40:41: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100> 2022-05-03 00:40:41: ERROR[Main]: ...ive/5.5.0/Minetest_live/bin/../builtin/game/register.lua:425: in function <...ive/5.5.0/Minetest_live/bin/../builtin/game/register.lua:409>

IMO this should be solved in the engine. Here's the upstream bugs.

https://github.com/minetest/minetest/issues/10246

https://github.com/minetest/minetest/issues/10246

I pulled the PR regardless, because it does help to solve the immediate problem.

IMO this should be solved in the engine. Here's the upstream bugs. https://github.com/minetest/minetest/issues/10246 https://github.com/minetest/minetest/issues/10246 I pulled the PR regardless, because it does help to solve the immediate problem.
AliasAlreadyTaken added this to the 1.1.110 milestone 2022-05-03 06:47:08 +00:00
AliasAlreadyTaken added the
3. source/mod upstream
label 2022-05-03 06:50:24 +00:00
Author
Member

Seems the open upstream issue is https://github.com/minetest/minetest/issues/9326

Seems the open upstream issue is https://github.com/minetest/minetest/issues/9326
AliasAlreadyTaken added the
5. result/fixed
label 2022-05-04 18:01:16 +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#1869
No description provided.