Whe lighting a nether portal: Invalid position coordinate 'y' (expected number got nil). #638

Closed
opened 2021-06-09 20:56:59 +00:00 by AliasAlreadyTaken · 4 comments

2021-06-09 22:53:37: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback item_OnPlace(): Invalid position coordinate 'y' (expected number got nil).
2021-06-09 22:53:37: ERROR[Main]: stack traceback:
2021-06-09 22:53:37: ERROR[Main]: [C]: in function 'get_areas_for_pos'
2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/areas/api.lua:37: in function 'getAreasAtPos'
2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/xp_redo/areas.lua:8: in function 'is_protected'
2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/yl_nether/mapgen.lua:113: in function 'find_surface_anchorPos'
2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/nether/portal_api.lua:1365: in function 'ignite_portal'
2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/nether/portal_api.lua:2174: in function </home/mtlive1/.minetest/mods/nether/portal_api.lua:2171>

2021-06-09 22:53:37: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback item_OnPlace(): Invalid position coordinate 'y' (expected number got nil). 2021-06-09 22:53:37: ERROR[Main]: stack traceback: 2021-06-09 22:53:37: ERROR[Main]: [C]: in function 'get_areas_for_pos' 2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/areas/api.lua:37: in function 'getAreasAtPos' 2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/xp_redo/areas.lua:8: in function 'is_protected' 2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/yl_nether/mapgen.lua:113: in function 'find_surface_anchorPos' 2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/nether/portal_api.lua:1365: in function 'ignite_portal' 2021-06-09 22:53:37: ERROR[Main]: /home/mtlive1/.minetest/mods/nether/portal_api.lua:2174: in function </home/mtlive1/.minetest/mods/nether/portal_api.lua:2171>
Member

Just adding check for y == nil and returning nil to caller should fix this.

Just adding check for y == nil and returning nil to caller should fix this.
whosit added the
1. kind/bug
label 2021-06-10 06:49:51 +00:00
Author
Owner

I added your fix in 4a88bccf333ff8d14193a17047b62503a30645ae

I added your fix in 4a88bccf333ff8d14193a17047b62503a30645ae
AliasAlreadyTaken added the
4. step/help wanted
label 2021-06-14 05:08:41 +00:00
Author
Owner

Now we need to reproduce it on the testserver to see if it's really fixed. Do you know how to 100% repro it?

Now we need to reproduce it on the testserver to see if it's really fixed. Do you know how to 100% repro it?
Member

Trying to reproduce, now I get a message about about mysterious force, that I've never seen before. Fix seems to work.

Trying to reproduce, now I get a message about about mysterious force, that I've never seen before. Fix seems to work.
AliasAlreadyTaken added the
5. result/fixed
label 2021-07-18 05:45:02 +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#638
No description provided.