mesecons_debug/util.lua:11: attempt to perform arithmetic on field 'x' (a nil value) #2673

Closed
opened 2022-09-13 20:19:13 +00:00 by AliasAlreadyTaken · 14 comments
2022-09-13 20:17:51: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '??' in callback environment_Step(): .../5.6.0/Minetest_test/bin/../mods/mesecons_debug/util.lua:11: attempt to perform arithmetic on field 'x' (a nil value)
2022-09-13 20:17:51: ERROR[Main]: stack traceback:
2022-09-13 20:17:51: ERROR[Main]: 	.../5.6.0/Minetest_test/bin/../mods/mesecons_debug/util.lua:11: in function 'hashpos'
2022-09-13 20:17:51: ERROR[Main]: 	...6.0/Minetest_test/bin/../mods/mesecons_debug/context.lua:5: in function 'get_context'
2022-09-13 20:17:51: ERROR[Main]: 	.../bin/../mods/mesecons_debug/overrides/mesecons_queue.lua:14: in function 'execute'
2022-09-13 20:17:51: ERROR[Main]: 	...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:111: in function <...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:73>
2022-09-13 20:17:51: ERROR[Main]: 	.../mt/5.6.0/Minetest_test/bin/../builtin/game/register.lua:429: in function <.../mt/5.6.0/Minetest_test/bin/../builtin/game/register.lua:415>
``` 2022-09-13 20:17:51: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '??' in callback environment_Step(): .../5.6.0/Minetest_test/bin/../mods/mesecons_debug/util.lua:11: attempt to perform arithmetic on field 'x' (a nil value) 2022-09-13 20:17:51: ERROR[Main]: stack traceback: 2022-09-13 20:17:51: ERROR[Main]: .../5.6.0/Minetest_test/bin/../mods/mesecons_debug/util.lua:11: in function 'hashpos' 2022-09-13 20:17:51: ERROR[Main]: ...6.0/Minetest_test/bin/../mods/mesecons_debug/context.lua:5: in function 'get_context' 2022-09-13 20:17:51: ERROR[Main]: .../bin/../mods/mesecons_debug/overrides/mesecons_queue.lua:14: in function 'execute' 2022-09-13 20:17:51: ERROR[Main]: ...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:111: in function <...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:73> 2022-09-13 20:17:51: ERROR[Main]: .../mt/5.6.0/Minetest_test/bin/../builtin/game/register.lua:429: in function <.../mt/5.6.0/Minetest_test/bin/../builtin/game/register.lua:415> ```

I clicked multiple times on the programmable color node from digicolor in the inventory menu. I think it was about three times, and instead of giving me a third stack, the server crashed. Maybe I clicked too fast?

I actually just wanted to see, if it has a crafting recipe on the test server, and forgot that I had creative privs there, which is why I clicked multiple times until I realized.

I clicked multiple times on the programmable color node from digicolor in the inventory menu. I think it was about three times, and instead of giving me a third stack, the server crashed. Maybe I clicked too fast? I actually just wanted to see, if it has a crafting recipe on the test server, and forgot that I had creative privs there, which is why I clicked multiple times until I realized.
flux added the
1. kind/bug
3. source/mod upstream
2. prio/critical
labels 2022-09-13 20:25:13 +00:00
flux self-assigned this 2022-09-13 20:25:21 +00:00
Member

JeCel, pretty sure what you did in unified inventory was just a coincidence, i'll look into this, as mesecons_debug is sort-of my mod now.

JeCel, pretty sure what you did in unified inventory was just a coincidence, i'll look into this, as mesecons_debug is sort-of my mod now.
Member

looks like mesecons_debug isn't really to blame, somehow an "invalid" mesecons action got created without a valid position.

looks like mesecons_debug isn't really to blame, somehow an "invalid" mesecons action got created without a valid position.
Member

made it so that an error is generated if a mesecons action is queued w/ no position, so we can catch the issue when it's created, not when the action is executed.

9831ad7a8d

made it so that an error is generated if a mesecons action is queued w/ no position, so we can catch the issue when it's created, not when the action is executed. https://gitea.your-land.de/your-land/yl_commons/commit/9831ad7a8df876c50b21e136faa406226088a8d2
flux added the
4. step/ready to QA test
label 2022-09-13 21:01:26 +00:00
AliasAlreadyTaken was assigned by flux 2022-09-13 21:01:33 +00:00
AliasAlreadyTaken added this to the 1.1.116 milestone 2022-09-14 00:03:15 +00:00
Author
Owner

Repro:

2022-09-14 00:19:17: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2015,15,1140)
2022-09-14 00:19:17: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2016,15,1141)
2022-09-14 00:19:17: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2017,15,1141)
2022-09-14 00:19:17: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2018,15,1141)
2022-09-14 00:19:18: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2018,15,1139)
2022-09-14 00:19:18: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2018,15,1138)
2022-09-14 00:19:18: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2017,15,1137)
2022-09-14 00:19:19: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2017,15,1136)
2022-09-14 00:19:19: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2016,15,1135)

Result:

2022-09-14 00:19:25: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '??' in callback environment_Step(): .../5.6.0/Minetest_test/bin/../mods/mesecons_debug/util.lua:11: attempt to perform arithmetic on field 'x' (a nil value)
2022-09-14 00:19:25: ERROR[Main]: stack traceback:
2022-09-14 00:19:25: ERROR[Main]: 	.../5.6.0/Minetest_test/bin/../mods/mesecons_debug/util.lua:11: in function 'hashpos'
2022-09-14 00:19:25: ERROR[Main]: 	...6.0/Minetest_test/bin/../mods/mesecons_debug/context.lua:5: in function 'get_context'
2022-09-14 00:19:25: ERROR[Main]: 	.../bin/../mods/mesecons_debug/overrides/mesecons_queue.lua:14: in function 'execute'
2022-09-14 00:19:25: ERROR[Main]: 	...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:111: in function <...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:73>
2022-09-14 00:19:25: ERROR[Main]: 	.../mt/5.6.0/Minetest_test/bin/../builtin/game/register.lua:429: in function <.../mt/5.6.0/Minetest_test/bin/../builtin/game/register.lua:415>
Repro: ``` 2022-09-14 00:19:17: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2015,15,1140) 2022-09-14 00:19:17: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2016,15,1141) 2022-09-14 00:19:17: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2017,15,1141) 2022-09-14 00:19:17: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2018,15,1141) 2022-09-14 00:19:18: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2018,15,1139) 2022-09-14 00:19:18: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2018,15,1138) 2022-09-14 00:19:18: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2017,15,1137) 2022-09-14 00:19:19: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2017,15,1136) 2022-09-14 00:19:19: ACTION[Server]: AliasAlreadyTaken places node digitated:digimeseioexp_0 at (2016,15,1135) ``` Result: ``` 2022-09-14 00:19:25: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '??' in callback environment_Step(): .../5.6.0/Minetest_test/bin/../mods/mesecons_debug/util.lua:11: attempt to perform arithmetic on field 'x' (a nil value) 2022-09-14 00:19:25: ERROR[Main]: stack traceback: 2022-09-14 00:19:25: ERROR[Main]: .../5.6.0/Minetest_test/bin/../mods/mesecons_debug/util.lua:11: in function 'hashpos' 2022-09-14 00:19:25: ERROR[Main]: ...6.0/Minetest_test/bin/../mods/mesecons_debug/context.lua:5: in function 'get_context' 2022-09-14 00:19:25: ERROR[Main]: .../bin/../mods/mesecons_debug/overrides/mesecons_queue.lua:14: in function 'execute' 2022-09-14 00:19:25: ERROR[Main]: ...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:111: in function <...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:73> 2022-09-14 00:19:25: ERROR[Main]: .../mt/5.6.0/Minetest_test/bin/../builtin/game/register.lua:429: in function <.../mt/5.6.0/Minetest_test/bin/../builtin/game/register.lua:415> ```
Member

it sounds like the bug is in the ioexpander then?

it sounds like the bug is in the ioexpander then?
Author
Owner
Yes. https://github.com/antevens/digitated/issues/1
Author
Owner

We'll remove the ioexpander for the moment

We'll remove the ioexpander for the moment
flux added
4. step/blocked
and removed
4. step/ready to QA test
labels 2022-11-05 21:05:41 +00:00
flux added the
4. step/partially fixed
label 2022-11-17 22:05:18 +00:00
Member

digitated is no longer active

digitated is no longer active
flux removed this from the 1.1.116 milestone 2022-11-18 21:17:13 +00:00
Author
Owner

Why remove the milestone? The "fix" went live during 1.1.116, even when that means the mod was removed :D

Why remove the milestone? The "fix" went live during 1.1.116, even when that means the mod was removed :D
Member

Why remove the milestone? The "fix" went live during 1.1.116, even when that means the mod was removed :D

i removed the milestone because the remaining part of the issue doesn't have any planned release, though the fixed part of the issue has already been released. i can split that into a new issue if you prefer.

> Why remove the milestone? The "fix" went live during 1.1.116, even when that means the mod was removed :D i removed the milestone because the remaining part of the issue doesn't have any planned release, though the fixed part of the issue has already been released. i can split that into a new issue if you prefer.
Author
Owner

Let's decide on how to deal with partially fixed issues: #3129

Let's decide on how to deal with partially fixed issues: #3129
flux added the
4. step/ready to QA test
label 2022-12-20 18:24:48 +00:00
Member

i've pushed a fix to mesecons_debug in gitea that ought to avoid crashes due to actions w/out valid positions:

0a3e3f2a90

upstream could use this, but upstream seems to have diverged a bit, and my long-term plans for mesecons_debug are to rework it into a general task scheduling and load-balancing framework.

i've pushed a fix to mesecons_debug in gitea that ought to avoid crashes due to actions w/out valid positions: https://gitea.your-land.de/your-land/mesecons_debug/commit/0a3e3f2a909792a10008193d6e571bbed573941a upstream could use this, but upstream seems to have diverged a bit, and my long-term plans for mesecons_debug are to rework it into a general task scheduling and load-balancing framework.
flux added
5. result/fixed
and removed
4. step/ready to QA test
4. step/partially fixed
labels 2023-01-25 23:01:05 +00:00
Member

the fix for this is live

the fix for this is live
flux closed this issue 2023-01-25 23:01:34 +00:00
flux removed their assignment 2023-01-25 23:01:39 +00:00
AliasAlreadyTaken was unassigned by flux 2023-01-25 23:01:39 +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#2673
No description provided.