Invalid float vector dimension range 'y' (expected -2.14748e+06 < y < 2.14748e+06 got 4.2413e+09). #1476

Closed
opened 2022-02-12 06:57:53 +00:00 by AliasAlreadyTaken · 11 comments

2022-02-12 07:51:28: WARNING[Server]: collisionMoveSimple: Loop count exceeded, aborting to avoid infiniite loop
2022-02-12 07:51:45: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'petz' in callback luaentity_Step(): Invalid float vector dimension range 'y' (expected -2.14748e+06 < y < 2.14748e+06 got 4.2413e+09).
2022-02-12 07:51:45: ERROR[Main]: stack traceback:
2022-02-12 07:51:45: ERROR[Main]: [C]: in function 'set_velocity'
2022-02-12 07:51:45: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:702: in function 'physics'
2022-02-12 07:51:45: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:843: in function 'stepfunc'
2022-02-12 07:51:45: ERROR[Main]: /home/mtlive1/.minetest/mods/petz/petz/petz/pony_mobkit.lua:121: in function 'func'
2022-02-12 07:51:45: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>

2022-02-12 07:51:28: WARNING[Server]: collisionMoveSimple: Loop count exceeded, aborting to avoid infiniite loop 2022-02-12 07:51:45: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'petz' in callback luaentity_Step(): Invalid float vector dimension range 'y' (expected -2.14748e+06 < y < 2.14748e+06 got 4.2413e+09). 2022-02-12 07:51:45: ERROR[Main]: stack traceback: 2022-02-12 07:51:45: ERROR[Main]: [C]: in function 'set_velocity' 2022-02-12 07:51:45: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:702: in function 'physics' 2022-02-12 07:51:45: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:843: in function 'stepfunc' 2022-02-12 07:51:45: ERROR[Main]: /home/mtlive1/.minetest/mods/petz/petz/petz/pony_mobkit.lua:121: in function 'func' 2022-02-12 07:51:45: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>
AliasAlreadyTaken added the
1. kind/bug
2. prio/critical
3. source/mod upstream
ugh/petz
labels 2022-02-12 06:58:17 +00:00
Author
Owner

I hotfixed with

if vnew.x > 500 or vnew.x < -500 or vnew.y > 500 or vnew.y < -500 or vnew.z > 500 or vnew.z < -500 then
        core.log("error","[mobkit] #1476 vnew="..dump(vnew))
        core.log("error","[mobkit] #1476 self="..dump(self))
        self.object:remove()
else
        self.object:set_velocity(vnew)
end
I hotfixed with if vnew.x > 500 or vnew.x < -500 or vnew.y > 500 or vnew.y < -500 or vnew.z > 500 or vnew.z < -500 then core.log("error","[mobkit] #1476 vnew="..dump(vnew)) core.log("error","[mobkit] #1476 self="..dump(self)) self.object:remove() else self.object:set_velocity(vnew) end
Author
Owner
2022-02-12 09:15:35: ERROR[Server]: [mobkit] #1476 vnew={
	y = 34507632640,
	x = 0,
	z = 0
}
2022-02-12 09:15:35: ERROR[Server]: [mobkit] #1476 self={
	shaved = false,
	buoyancy = 0.5,
	dreamcatcher = false,
	father_veloc_stats = {
		
	},
	saddle = false,
	oxygen = 10,
	food_count_wool = 0,
	texture_no = 2,
	is_male = true,
	tag = "",
	father_genes = {
		
	},
	herding = false,
	armor_groups = {
		immortal = 1
	},
	gallop_recover_time = 60,
	show_tag = false,
	lashing_count = 0,
	nearby_players = {
		
	},
	hp = 0,
	water_drag = 1,
	brushed = false,
	square_ball_attached = false,
	is_pregnant = false,
	saddlebag = false,
	lqueue = {
		
	},
	warn_attack = false,
	logic = <function>,
	exchange_item_amount = 1,
	saddlebag_inventory = {
		
	},
	muted = false,
	eggs_count = 0,
	back_home = false,
	nearby_objects = {
		
	},
	max_hp = 15,
	anthill_founded = false,
	gallop_exhausted = false,
	convert_count = 5,
	accel = 7,
	lashed = false,
	beaver_oil_applied = false,
	gallop = false,
	pregnant_count = 5,
	physics = <function>,
	horseshoes = 0,
	time_total = 0,
	height = 2.0624999701977,
	fed = true,
	milked = false,
	isonground = false,
	dtime = 0.18000000715256,
	genes = {
		
	},
	sensefunc = <function>,
	pregnant_time = 0,
	path_dir = 1,
	object = userdata: 0x537240e8,
	lastvelocity = {
		y = 0,
		x = 0,
		z = 0
	},
	max_speed_reverse = 1,
	was_killed_by_player = false,
	memory = {
		shaved = false,
		anthill_founded = false,
		gallop_exhausted = false,
		accel = 7,
		lashed = false,
		beaver_oil_applied = false,
		texture_no = 2,
		gallop = false,
		is_male = true,
		for_sale = false,
		was_killed_by_player = false,
		herding = false,
		growth_time = 1200,
		saddle = false,
		show_tag = false,
		dreamcatcher = false,
		fed = false,
		milked = false,
		dead = true,
		child = false,
		max_speed_forward = 7,
		brushed = false,
		square_ball_attached = false,
		max_speed_reverse = 1,
		is_pregnant = false,
		saddlebag = false,
		captured = true,
		warn_attack = false,
		is_rut = false,
		owner = "Sparkles",
		is_baby = false,
		muted = false,
		back_home = false,
		tamed = true
	},
	affinity = 100,
	for_sale = false,
	captured = true,
	owner = "Sparkles",
	hqueue = {
		
	},
	pos_history = {
		
	},
	is_rut = false,
	child = false,
	dead = true,
	growth_time = 1200,
	is_baby = false,
	exchange_item_index = 1,
	gallop_time = 0,
	max_speed_forward = 7,
	food_count = 0,
	tamed = true
}
``` 2022-02-12 09:15:35: ERROR[Server]: [mobkit] #1476 vnew={ y = 34507632640, x = 0, z = 0 } 2022-02-12 09:15:35: ERROR[Server]: [mobkit] #1476 self={ shaved = false, buoyancy = 0.5, dreamcatcher = false, father_veloc_stats = { }, saddle = false, oxygen = 10, food_count_wool = 0, texture_no = 2, is_male = true, tag = "", father_genes = { }, herding = false, armor_groups = { immortal = 1 }, gallop_recover_time = 60, show_tag = false, lashing_count = 0, nearby_players = { }, hp = 0, water_drag = 1, brushed = false, square_ball_attached = false, is_pregnant = false, saddlebag = false, lqueue = { }, warn_attack = false, logic = <function>, exchange_item_amount = 1, saddlebag_inventory = { }, muted = false, eggs_count = 0, back_home = false, nearby_objects = { }, max_hp = 15, anthill_founded = false, gallop_exhausted = false, convert_count = 5, accel = 7, lashed = false, beaver_oil_applied = false, gallop = false, pregnant_count = 5, physics = <function>, horseshoes = 0, time_total = 0, height = 2.0624999701977, fed = true, milked = false, isonground = false, dtime = 0.18000000715256, genes = { }, sensefunc = <function>, pregnant_time = 0, path_dir = 1, object = userdata: 0x537240e8, lastvelocity = { y = 0, x = 0, z = 0 }, max_speed_reverse = 1, was_killed_by_player = false, memory = { shaved = false, anthill_founded = false, gallop_exhausted = false, accel = 7, lashed = false, beaver_oil_applied = false, texture_no = 2, gallop = false, is_male = true, for_sale = false, was_killed_by_player = false, herding = false, growth_time = 1200, saddle = false, show_tag = false, dreamcatcher = false, fed = false, milked = false, dead = true, child = false, max_speed_forward = 7, brushed = false, square_ball_attached = false, max_speed_reverse = 1, is_pregnant = false, saddlebag = false, captured = true, warn_attack = false, is_rut = false, owner = "Sparkles", is_baby = false, muted = false, back_home = false, tamed = true }, affinity = 100, for_sale = false, captured = true, owner = "Sparkles", hqueue = { }, pos_history = { }, is_rut = false, child = false, dead = true, growth_time = 1200, is_baby = false, exchange_item_index = 1, gallop_time = 0, max_speed_forward = 7, food_count = 0, tamed = true } ```
Author
Owner
2022-02-12 09:15:43: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'petz' in callback luaentity_Step(): /home/mtlive1/.minetest/mods/mobkit/init.lua:77: attempt to index a nil value
2022-02-12 09:15:43: ERROR[Main]: stack traceback:
2022-02-12 09:15:43: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:77: in function 'get_stand_pos'
2022-02-12 09:15:43: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:712: in function 'physics'
2022-02-12 09:15:43: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:848: in function 'stepfunc'
2022-02-12 09:15:43: ERROR[Main]: 	/home/mtlive1/.minetest/mods/petz/petz/petz/pony_mobkit.lua:121: in function 'func'
2022-02-12 09:15:43: ERROR[Main]: 	...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>
``` 2022-02-12 09:15:43: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'petz' in callback luaentity_Step(): /home/mtlive1/.minetest/mods/mobkit/init.lua:77: attempt to index a nil value 2022-02-12 09:15:43: ERROR[Main]: stack traceback: 2022-02-12 09:15:43: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:77: in function 'get_stand_pos' 2022-02-12 09:15:43: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:712: in function 'physics' 2022-02-12 09:15:43: ERROR[Main]: /home/mtlive1/.minetest/mods/mobkit/init.lua:848: in function 'stepfunc' 2022-02-12 09:15:43: ERROR[Main]: /home/mtlive1/.minetest/mods/petz/petz/petz/pony_mobkit.lua:121: in function 'func' 2022-02-12 09:15:43: ERROR[Main]: ...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100> ```
Author
Owner
if vnew.x > 500 or vnew.x < -500 or vnew.y > 500 or vnew.y < -500 or vnew.z > 500 or vnew.z < -500 then
        core.log("error","[mobkit] #1476 vnew="..dump(vnew))
        core.log("error","[mobkit] #1476 self="..dump(self))
        self.object:remove()
        return
else
        self.object:set_velocity(vnew)
end
``` if vnew.x > 500 or vnew.x < -500 or vnew.y > 500 or vnew.y < -500 or vnew.z > 500 or vnew.z < -500 then core.log("error","[mobkit] #1476 vnew="..dump(vnew)) core.log("error","[mobkit] #1476 self="..dump(self)) self.object:remove() return else self.object:set_velocity(vnew) end ```
Author
Owner

https://github.com/runsy/petz/issues/93

Not sure if really petz problem, or rather mobkit problem

https://github.com/runsy/petz/issues/93 Not sure if really petz problem, or rather mobkit problem
Author
Owner
https://github.com/TheTermos/mobkit/issues/38
Member

It's a core minetest problem, I used to get this on blocky survival if mobs_redo rats were placed onto a trampoline made of maptools "pusher" nodes. See https://github.com/BlockySurvival/issue-tracker/issues/61 ("fix" at f3b60a7107)

It's a core minetest problem, I used to get this on blocky survival if mobs_redo rats were placed onto a trampoline made of maptools "pusher" nodes. See https://github.com/BlockySurvival/issue-tracker/issues/61 ("fix" at https://github.com/BlockySurvival/mobs_redo/commit/f3b60a7107b7ddf8031ec941c99b099526fd6c53)
Author
Owner

Only that in our case it was a petz pony. Most likely it affects all entities

Only that in our case it was a petz pony. Most likely it affects all entities
Author
Owner

Imo it should be solved in mobkit and mobs_redo and everywhere, especailly in the engine.

Imo it should be solved in mobkit and mobs_redo and everywhere, especailly in the engine.
Author
Owner
https://github.com/minetest/minetest/issues/11742 https://github.com/minetest/minetest/issues/9346
Author
Owner

Much like #2007 this one got "fixed" by moving to 5.6.1

Much like #2007 this one got "fixed" by moving to 5.6.1
AliasAlreadyTaken added the
5. result/fixed
label 2022-10-28 18:20:52 +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#1476
No description provided.