testserver ts_furniture/init.lua:32: attempt to call method 'get_player_velocity' (a nil value) #5548

Closed
opened 2023-11-23 21:17:01 +00:00 by AliasAlreadyTaken · 10 comments
2023-11-23 21:11:08: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback environment_Step(): ...mt/5.7.0/Minetest_test/bin/../mods/ts_furniture/init.lua:32: attempt to call method 'get_player_velocity' (a nil value)
2023-11-23 21:11:08: ERROR[Main]: stack traceback:
2023-11-23 21:11:08: ERROR[Main]: 	...mt/5.7.0/Minetest_test/bin/../mods/ts_furniture/init.lua:32: in function 'on_rightclick'
2023-11-23 21:11:08: ERROR[Main]: 	/home/mt/5.7.0/Minetest_test/bin/../builtin/game/item.lua:313: in function 'on_place'
2023-11-23 21:11:08: ERROR[Main]: 	...mt/5.7.0/Minetest_test/bin/../mods/pipeworks/wielder.lua:439: in function 'act'
2023-11-23 21:11:08: ERROR[Main]: 	...mt/5.7.0/Minetest_test/bin/../mods/pipeworks/wielder.lua:126: in function 'wielder_on'
2023-11-23 21:11:08: ERROR[Main]: 	...mt/5.7.0/Minetest_test/bin/../mods/pipeworks/wielder.lua:162: in function 'action_on'
2023-11-23 21:11:08: ERROR[Main]: 	...Minetest_test/bin/../mods/mesecons/mesecons/internal.lua:193: in function <...Minetest_test/bin/../mods/mesecons/mesecons/internal.lua:186>
2023-11-23 21:11:08: ERROR[Main]: 	...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:137: in function 'old_execute'
2023-11-23 21:11:08: ERROR[Main]: 	.../bin/../mods/mesecons_debug/overrides/mesecons_queue.lua:27: in function 'execute'
2023-11-23 21:11:08: ERROR[Main]: 	...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:111: in function <...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:73>
2023-11-23 21:11:08: 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-11-23 21:11:08: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback environment_Step(): ...mt/5.7.0/Minetest_test/bin/../mods/ts_furniture/init.lua:32: attempt to call method 'get_player_velocity' (a nil value) 2023-11-23 21:11:08: ERROR[Main]: stack traceback: 2023-11-23 21:11:08: ERROR[Main]: ...mt/5.7.0/Minetest_test/bin/../mods/ts_furniture/init.lua:32: in function 'on_rightclick' 2023-11-23 21:11:08: ERROR[Main]: /home/mt/5.7.0/Minetest_test/bin/../builtin/game/item.lua:313: in function 'on_place' 2023-11-23 21:11:08: ERROR[Main]: ...mt/5.7.0/Minetest_test/bin/../mods/pipeworks/wielder.lua:439: in function 'act' 2023-11-23 21:11:08: ERROR[Main]: ...mt/5.7.0/Minetest_test/bin/../mods/pipeworks/wielder.lua:126: in function 'wielder_on' 2023-11-23 21:11:08: ERROR[Main]: ...mt/5.7.0/Minetest_test/bin/../mods/pipeworks/wielder.lua:162: in function 'action_on' 2023-11-23 21:11:08: ERROR[Main]: ...Minetest_test/bin/../mods/mesecons/mesecons/internal.lua:193: in function <...Minetest_test/bin/../mods/mesecons/mesecons/internal.lua:186> 2023-11-23 21:11:08: ERROR[Main]: ...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:137: in function 'old_execute' 2023-11-23 21:11:08: ERROR[Main]: .../bin/../mods/mesecons_debug/overrides/mesecons_queue.lua:27: in function 'execute' 2023-11-23 21:11:08: ERROR[Main]: ...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:111: in function <...etest_test/bin/../mods/mesecons/mesecons/actionqueue.lua:73> 2023-11-23 21:11:08: 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> ```

Was on test server working on projects. One being a deployer with a button on it. With a chair inside the deployer. I pressed the button and the chair was deployed. How ever the button stayed lit up and pressed down for 10 secondsish than the test server crashed. Will see if I can recreate this and will report more after this.

Was on test server working on projects. One being a deployer with a button on it. With a chair inside the deployer. I pressed the button and the chair was deployed. How ever the button stayed lit up and pressed down for 10 secondsish than the test server crashed. Will see if I can recreate this and will report more after this.

I tested it a bunch of times differat setups and item. Finding that it seems to be due to the deployer duping items.

I tested it a bunch of times differat setups and item. Finding that it seems to be due to the deployer duping items.
AliasAlreadyTaken added the
1. kind/bug
label 2023-11-23 22:06:12 +00:00
flux added the
3. source/mod upstream
3. source/integration
labels 2023-11-23 23:49:25 +00:00
Member

flux screams internally about the pipeworks fake player

on the other hand, i can't replicate this locally.

> flux screams internally about the pipeworks fake player on the other hand, i can't replicate this locally.
Member

the button stayed lit up and pressed down for 10 secondsish

because the server had already crashed at this point.

the deployer duping items

this is probably due to the on_place callback getting interrupted.

> the button stayed lit up and pressed down for 10 secondsish because the server had already crashed at this point. > the deployer duping items this is probably due to the `on_place` callback getting interrupted.
Member

i think i'm going to PR pipeworks by implementing all the missing API stuff for the fake player. i'm sick of solving this problem in integration or by PR'ing abandoned mods.

i think i'm going to PR pipeworks by implementing all the missing API stuff for the fake player. i'm sick of solving this problem in integration or by PR'ing abandoned mods.
flux added the
2. prio/critical
label 2023-11-24 00:01:41 +00:00
flux added this to the flux's TODO list project 2023-11-24 00:01:46 +00:00
flux self-assigned this 2023-11-24 00:01:51 +00:00
flux added the
4. step/at work
label 2023-11-24 00:05:16 +00:00
Member

this is probably due to the on_place callback getting interrupted.

nope, was because Parrish has the creative priv, so placing an item (even via a deployer) doesn't decrement the stack.

> this is probably due to the `on_place` callback getting interrupted. nope, was because Parrish has the creative priv, so placing an item (even via a deployer) doesn't decrement the stack.
Member
upstream PR for pipeworks: https://github.com/mt-mods/pipeworks/pull/98
flux added
4. step/blocked
and removed
4. step/at work
labels 2023-11-24 21:04:33 +00:00
flux added
4. step/ready to QA test
and removed
4. step/blocked
labels 2024-01-04 21:09:56 +00:00
Member

the pipeworks PR got accepted, hopefully this will result in better compatibility with other mods

the pipeworks PR got accepted, hopefully this will result in better compatibility with other mods
AliasAlreadyTaken added this to the 1.1.123 milestone 2024-01-04 22:21:30 +00:00
Author
Owner

QA

I can neither reproduce the issue nor can I even get a chair into a deployer

QA I can neither reproduce the issue nor can I even get a chair into a deployer
AliasAlreadyTaken added the
ugh/QA main
label 2024-01-26 04:31:42 +00:00
flux removed this from the flux's TODO list project 2024-03-28 23:44:14 +00:00
flux removed their assignment 2024-03-28 23:44:17 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2024-03-28 23:44:26 +00:00
Member

i'm going to consider this fixed from two directions, even though we never had a repro. bench can go in a deployer, but no boom.

i'm going to consider this fixed from two directions, even though we never had a repro. bench can go in a deployer, but no boom.
flux closed this issue 2024-03-28 23:44:54 +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#5548
No description provided.