testserver petz/brains/bh_attack.lua:89: attempt to index a nil value #6336

Closed
opened 2024-02-23 15:14:06 +00:00 by AliasAlreadyTaken · 13 comments
2024-02-23 15:13:21: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'petz' in callback luaentity_Step(): ...Minetest_test/bin/../mods/petz/petz/brains/bh_attack.lua:89: attempt to index a nil value
2024-02-23 15:13:21: ERROR[Main]: stack traceback:
2024-02-23 15:13:21: ERROR[Main]: 	...Minetest_test/bin/../mods/petz/petz/brains/bh_attack.lua:89: in function 'func'
2024-02-23 15:13:21: ERROR[Main]: 	.../mt/5.8.0/Minetest_test/bin/../mods/petz/kitz/engine.lua:675: in function 'execute_queues'
2024-02-23 15:13:21: ERROR[Main]: 	.../mt/5.8.0/Minetest_test/bin/../mods/petz/kitz/engine.lua:867: in function 'stepfunc'
2024-02-23 15:13:21: ERROR[Main]: 	...st_test/bin/../mods/petz/petz/petz/polar_bear_mobkit.lua:87: in function 'func'
2024-02-23 15:13:21: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101>
``` 2024-02-23 15:13:21: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'petz' in callback luaentity_Step(): ...Minetest_test/bin/../mods/petz/petz/brains/bh_attack.lua:89: attempt to index a nil value 2024-02-23 15:13:21: ERROR[Main]: stack traceback: 2024-02-23 15:13:21: ERROR[Main]: ...Minetest_test/bin/../mods/petz/petz/brains/bh_attack.lua:89: in function 'func' 2024-02-23 15:13:21: ERROR[Main]: .../mt/5.8.0/Minetest_test/bin/../mods/petz/kitz/engine.lua:675: in function 'execute_queues' 2024-02-23 15:13:21: ERROR[Main]: .../mt/5.8.0/Minetest_test/bin/../mods/petz/kitz/engine.lua:867: in function 'stepfunc' 2024-02-23 15:13:21: ERROR[Main]: ...st_test/bin/../mods/petz/petz/petz/polar_bear_mobkit.lua:87: in function 'func' 2024-02-23 15:13:21: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101> ```
AliasAlreadyTaken added this to the 1.1.123 milestone 2024-02-23 15:14:06 +00:00
AliasAlreadyTaken added the
1. kind/bug
2. prio/critical
labels 2024-02-23 15:14:12 +00:00
Member

a658f52fb7/petz/brains/bh_attack.lua (L89)

related (Alias remembered this):
#3601

also, someone got this crash before (on another server):
#6129

https://gitea.your-land.de/your-land/petz/src/commit/a658f52fb7701d7bd8b94621c39a04b08a767b74/petz/brains/bh_attack.lua#L89 related (Alias remembered this): https://gitea.your-land.de/your-land/bugtracker/issues/3601 also, someone got this crash before (on another server): https://gitea.your-land.de/your-land/bugtracker/issues/6129
Member

supposedly already fixed, though i don't know how to trigger it so not tested. https://github.com/runsy/petz/issues/208

supposedly already fixed, though i don't know how to trigger it so not tested. https://github.com/runsy/petz/issues/208
Member

supposedly already fixed, though i don't know how to trigger it so not tested. https://github.com/runsy/petz/issues/208

6d45bbbe0f

so, it will still just crash -_-

> supposedly already fixed, though i don't know how to trigger it so not tested. https://github.com/runsy/petz/issues/208 https://github.com/runsy/petz/commit/6d45bbbe0f5f56f304023e06163f992f50d5ab5a so, it will still just crash -_-
Member

supposedly already fixed, though i don't know how to trigger it so not tested. https://github.com/runsy/petz/issues/208

6d45bbbe0f

so, it will still just crash -_-

perhaps i need to formally adopt petz

> > supposedly already fixed, though i don't know how to trigger it so not tested. https://github.com/runsy/petz/issues/208 > > https://github.com/runsy/petz/commit/6d45bbbe0f5f56f304023e06163f992f50d5ab5a > > so, it will still just crash -_- perhaps i need to formally adopt petz
Author
Owner
Upstream issue: https://github.com/runsy/petz/issues/211
Member

upstream updated:
45a543d062
hope my code is correct XD

upstream updated: https://github.com/runsy/petz/commit/45a543d062198ae36f38917d9c468689fc764d9e hope my code is correct XD
Author
Owner

Fixed upstream

It somehow relates to roosters fighting, but there is no 100% repro

Fixed upstream It somehow relates to roosters fighting, but there is no 100% repro
AliasAlreadyTaken added the
4. step/ready to QA test
label 2024-02-26 11:01:28 +00:00
Member

the saga continues here:
https://github.com/runsy/petz/pull/213

the saga continues here: https://github.com/runsy/petz/pull/213
whosit added the
ugh/QA NOK
label 2024-02-27 15:35:46 +00:00
Member

https://github.com/runsy/petz/pull/213#event-11941507265
PR closed....

still not sure why wolves don't hunt stuff though.

https://github.com/runsy/petz/pull/213#event-11941507265 PR closed.... still not sure why wolves don't hunt stuff though.
whosit removed the
ugh/QA NOK
label 2024-02-27 19:39:31 +00:00
Author
Owner

The latest fix is now on the testserver

The latest fix is now on the testserver
Member

Now they attack me, but do it silently...

Now they attack me, but do it silently...
Author
Owner

QA

Neither bears nor wolves make an attack sound when they try to bite me. Not on main, not on test. means, it's not worse.

But they do attack me, that works. Also I couldn't reproduce the crash with the rooster fight - that's one we will have to wait for whether it happens again on main. The fix looks like it's pretty much solved now - at this place.

QA Neither bears nor wolves make an attack sound when they try to bite me. Not on main, not on test. means, it's not worse. But they do attack me, that works. Also I couldn't reproduce the crash with the rooster fight - that's one we will have to wait for whether it happens again on main. The fix looks like it's pretty much solved now - at this place.
AliasAlreadyTaken added the
ugh/QA OK
ugh/QA main
labels 2024-02-29 14:47:53 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2024-03-28 22:44:46 +00:00
Member

live

live
flux closed this issue 2024-03-28 22:45:18 +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#6336
No description provided.