castle gates gate_functions.lua:406: attempt to index a nil value #897

Closed
opened 2021-09-14 18:04:21 +00:00 by AliasAlreadyTaken · 7 comments
2021-09-12 19:46:47: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod '' in callback environment_Step(): ...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:406: attempt to index a nil value
2021-09-12 19:46:47: ERROR[Main]: stack traceback:
2021-09-12 19:46:47: ERROR[Main]: 	...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:406: in function 'func'
2021-09-12 19:46:47: ERROR[Main]: 	...ive1/5.4.1/Minetest_live/bin/../builtin/common/after.lua:26: in function 'func'
2021-09-12 19:46:47: ERROR[Main]: 	...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>
2021-09-12 19:46:47: ERROR[Main]: 	...ve1/5.4.1/Minetest_live/bin/../builtin/game/register.lua:422: in function <...ve1/5.4.1/Minetest_live/bin/../builtin/game/register.lua:406>
2021-09-12 19:46:47: ERROR[Main]: stack traceback: corrupted double-linked list
``` 2021-09-12 19:46:47: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod '' in callback environment_Step(): ...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:406: attempt to index a nil value 2021-09-12 19:46:47: ERROR[Main]: stack traceback: 2021-09-12 19:46:47: ERROR[Main]: ...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:406: in function 'func' 2021-09-12 19:46:47: ERROR[Main]: ...ive1/5.4.1/Minetest_live/bin/../builtin/common/after.lua:26: in function 'func' 2021-09-12 19:46:47: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100> 2021-09-12 19:46:47: ERROR[Main]: ...ve1/5.4.1/Minetest_live/bin/../builtin/game/register.lua:422: in function <...ve1/5.4.1/Minetest_live/bin/../builtin/game/register.lua:406> 2021-09-12 19:46:47: ERROR[Main]: stack traceback: corrupted double-linked list ```
Styxcolor added the
1. kind/bug
2. prio/critical
labels 2021-11-03 04:18:25 +00:00
AliasAlreadyTaken was assigned by Styxcolor 2021-11-08 19:46:22 +00:00
Author
Owner
https://github.com/minetest-mods/castle_gates/issues/17
AliasAlreadyTaken added the
3. source/mod upstream
label 2021-12-17 08:09:54 +00:00
Author
Owner

For some reasons the log statement suggested in the aforementioned issue was not or is not anymore included in the mod.

It happened again:

2022-11-29 02:55:55: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback environment_Step(): ...inetest_live/bin/../mods/castle_gates/gate_functions.lua:441: attempt to index a nil value
2022-11-29 02:55:55: ERROR[Main]: stack traceback:
2022-11-29 02:55:55: ERROR[Main]: 	...inetest_live/bin/../mods/castle_gates/gate_functions.lua:441: in function 'func'
2022-11-29 02:55:55: ERROR[Main]: 	...e/mt/5.6.1/Minetest_live/bin/../builtin/common/after.lua:27: in function 'func'
2022-11-29 02:55:55: ERROR[Main]: 	...inetest_live/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>
2022-11-29 02:55:55: ERROR[Main]: 	.../mt/5.6.1/Minetest_live/bin/../builtin/game/register.lua:431: in function <.../mt/5.6.1/Minetest_live/bin/../builtin/game/register.lua:417>
For some reasons the log statement suggested in the aforementioned issue was not or is not anymore included in the mod. It happened again: ``` 2022-11-29 02:55:55: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback environment_Step(): ...inetest_live/bin/../mods/castle_gates/gate_functions.lua:441: attempt to index a nil value 2022-11-29 02:55:55: ERROR[Main]: stack traceback: 2022-11-29 02:55:55: ERROR[Main]: ...inetest_live/bin/../mods/castle_gates/gate_functions.lua:441: in function 'func' 2022-11-29 02:55:55: ERROR[Main]: ...e/mt/5.6.1/Minetest_live/bin/../builtin/common/after.lua:27: in function 'func' 2022-11-29 02:55:55: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100> 2022-11-29 02:55:55: ERROR[Main]: .../mt/5.6.1/Minetest_live/bin/../builtin/game/register.lua:431: in function <.../mt/5.6.1/Minetest_live/bin/../builtin/game/register.lua:417> ```
Author
Owner

Readded the code to castle_gates: e4e378c03f

Readded the code to castle_gates: https://gitea.your-land.de/your-land/castle_gates/commit/e4e378c03f0426243256e6da3a25cacd90d0bdb7
flux added the
4. step/ready to QA test
label 2023-11-15 22:08:06 +00:00
Member

this has supposedly been fixed upstream, though i don't think we ever had a reliable repro so i don't know how we QA this.

this has supposedly been fixed upstream, though i don't think we ever had a reliable repro so i don't know how we QA this.
Author
Owner

We wait whether it happens on main - I don't see any other way

We wait whether it happens on main - I don't see any other way
AliasAlreadyTaken added this to the 1.1.122 milestone 2023-12-05 13:34:43 +00:00
AliasAlreadyTaken added the
ugh/QA main
label 2023-12-05 13:34:48 +00:00

The upstream commit which is said to close this issue adds a line reading like this:

-- Prevent crashes if gate got deleted (e.g. worldedit)

tested in singleplayer: Delete a moving gate with WE.
Old Version: Boom
new Version: nothing happens

The upstream commit which is said to close this issue adds a line reading like this: >-- Prevent crashes if gate got deleted (e.g. worldedit) tested in singleplayer: Delete a moving gate with WE. Old Version: Boom new Version: nothing happens
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-12-18 23:11:51 +00:00
AliasAlreadyTaken was unassigned by flux 2023-12-18 23:11:53 +00:00
Member

this should be live

this should be live
flux closed this issue 2023-12-18 23:12:00 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#897
No description provided.