Sokomine reports: lag-death. all was frozen. aft ... #4124

Open
opened 2023-04-05 20:54:31 +00:00 by yourland-report · 11 comments

Sokomine reports a bug:

lag-death. all was frozen. after death, i saw my bones and could walk around a bit. after respawn now, i get a headache because it turns me around randomly. hope that stops soon

Player position:

{
	x = 2001.8430175781,
	z = 1153.5549316406,
	y = 14.5
}

Player look:

{
	x = -0.031140226870775,
	z = -0.96410071849823,
	y = -0.26370468735695
}

Player information:

{
	lang_code = "",
	formspec_version = 6,
	protocol_version = 41,
	state = "Active",
	minor = 7,
	ip_version = 6,
	min_rtt = 0.01799999922514,
	max_rtt = 8.6789999008179,
	min_jitter = 0,
	max_jitter = 8.1810007095337,
	avg_jitter = 0,
	connection_uptime = 8331,
	serialization_version = 29,
	patch = 0,
	version_string = "5.7.0-dev-7048fc25d-dirty",
	major = 5,
	avg_rtt = 0.019999999552965
}

Player meta:

{
	fields = {
		inflicted_damage = "4516254",
		jointime = "1617905120",
		bitten = "0",
		["stamina:poisoned"] = "no",
		repellant = "0",
		["ocean_build.last_warning"] = "1.65032e+09",
		["3d_armor_inventory"] = "return {\"\", \"\", \"\", \"\", \"\", \"\"}",
		xp = "1978741",
		yl_commons_thankyou = "367",
		["stamina:level"] = "18",
		["stamina:exhaustion"] = "154.5",
		crafted = "530713",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"water_life:croc_bag\"}",
		partychat = "main",
		arenalib_infobox_arenaID = "0",
		played_time = "12640571",
		digged_nodes = "1761471",
		placed_nodes = "298964",
		died = "41",
		yl_commons_player_joined = "1680719765",
		["signslib:pos"] = "(2247,-164,1417)",
		["ocean_build.ocean_built"] = "5",
		yl_church = "return {[\"last_death_portal\"] = 1680366715, [\"last_death\"] = {[\"x\"] = 2943, [\"z\"] = 498, [\"y\"] = 78}, [\"last_heal\"] = 1673909657}",
		["ethereal:fly_timer"] = "-99",
		yl_commons_player_created = "1617905120",
		punch_count = "217985",
		hud_state = "on"
	}
}

Log identifier


[MOD] yl_report log identifier = KJ6OfZ4nm5ZJXdze9sp1LKnrqJdvqvgx

Profiler save:

profile-20230405T205431.json_prettyEE

Status:

# Server: version: 5.6.1-yl | game: Minetest Game | uptime: 5d 15h 28min 40s | max lag: 1.83s | clients (41/52): Alaf, AliasAlreadyTaken, Aliza, Apocralypse, AspireMint, Athena_, Bailiff, Balrog_Dude, Barlog4, Beth75, Bishiro, bizon, Chache, Chameleon, copper248, darealbang, daydream, drgn, Ecklair, Ente, flux, Hexer, HorusDamocles, JeCel, Julia, Kaline, Lucien, Lupercus, mahou, MineWorlds, Murmel, niceride, Oscoder_, Ravise, Sarinha, Service, sneik, Sokomine, Sonickyle, STEALTH, Sysmatic

Teleport command:

/teleport xyz 2002 15 1154

Compass command:

/give_compass Construction KJ6OfZ4nm5ZJXdze9sp1LKnrqJdvqvgx D2691E 2002 15 1154
Sokomine reports a bug: > lag-death. all was frozen. after death, i saw my bones and could walk around a bit. after respawn now, i get a headache because it turns me around randomly. hope that stops soon Player position: ``` { x = 2001.8430175781, z = 1153.5549316406, y = 14.5 } ``` Player look: ``` { x = -0.031140226870775, z = -0.96410071849823, y = -0.26370468735695 } ``` Player information: ``` { lang_code = "", formspec_version = 6, protocol_version = 41, state = "Active", minor = 7, ip_version = 6, min_rtt = 0.01799999922514, max_rtt = 8.6789999008179, min_jitter = 0, max_jitter = 8.1810007095337, avg_jitter = 0, connection_uptime = 8331, serialization_version = 29, patch = 0, version_string = "5.7.0-dev-7048fc25d-dirty", major = 5, avg_rtt = 0.019999999552965 } ``` Player meta: ``` { fields = { inflicted_damage = "4516254", jointime = "1617905120", bitten = "0", ["stamina:poisoned"] = "no", repellant = "0", ["ocean_build.last_warning"] = "1.65032e+09", ["3d_armor_inventory"] = "return {\"\", \"\", \"\", \"\", \"\", \"\"}", xp = "1978741", yl_commons_thankyou = "367", ["stamina:level"] = "18", ["stamina:exhaustion"] = "154.5", crafted = "530713", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"water_life:croc_bag\"}", partychat = "main", arenalib_infobox_arenaID = "0", played_time = "12640571", digged_nodes = "1761471", placed_nodes = "298964", died = "41", yl_commons_player_joined = "1680719765", ["signslib:pos"] = "(2247,-164,1417)", ["ocean_build.ocean_built"] = "5", yl_church = "return {[\"last_death_portal\"] = 1680366715, [\"last_death\"] = {[\"x\"] = 2943, [\"z\"] = 498, [\"y\"] = 78}, [\"last_heal\"] = 1673909657}", ["ethereal:fly_timer"] = "-99", yl_commons_player_created = "1617905120", punch_count = "217985", hud_state = "on" } } ``` Log identifier ``` [MOD] yl_report log identifier = KJ6OfZ4nm5ZJXdze9sp1LKnrqJdvqvgx ``` Profiler save: ``` profile-20230405T205431.json_prettyEE ``` Status: ``` # Server: version: 5.6.1-yl | game: Minetest Game | uptime: 5d 15h 28min 40s | max lag: 1.83s | clients (41/52): Alaf, AliasAlreadyTaken, Aliza, Apocralypse, AspireMint, Athena_, Bailiff, Balrog_Dude, Barlog4, Beth75, Bishiro, bizon, Chache, Chameleon, copper248, darealbang, daydream, drgn, Ecklair, Ente, flux, Hexer, HorusDamocles, JeCel, Julia, Kaline, Lucien, Lupercus, mahou, MineWorlds, Murmel, niceride, Oscoder_, Ravise, Sarinha, Service, sneik, Sokomine, Sonickyle, STEALTH, Sysmatic ``` Teleport command: ``` /teleport xyz 2002 15 1154 ``` Compass command: ``` /give_compass Construction KJ6OfZ4nm5ZJXdze9sp1LKnrqJdvqvgx D2691E 2002 15 1154 ```
AliasAlreadyTaken was assigned by yourland-report 2023-04-05 20:54:31 +00:00
AliasAlreadyTaken added the
4. step/needs confirmation
3. source/lag
labels 2023-04-05 22:01:35 +00:00

The recorded max_lag does not hint at the server having issues.

Might be clientside or connection issue

The recorded max_lag does not hint at the server having issues. Might be clientside or connection issue
Member

there certainly were a few huge lag spikes, cf. #4123

disabling the anticheat mechanism might reduce the incidence of lag deaths by not putting a player back into a deadly situation that they thought they ran away from.

there certainly were a few huge lag spikes, cf. #4123 disabling the anticheat mechanism *might* reduce the incidence of lag deaths by not putting a player back into a deadly situation that they thought they ran away from.
Member

i wish there was a way to turn the anticheat on/off on the fly - e.g. during events and when lag exceeds some threshold

i wish there was a way to turn the anticheat on/off on the fly - e.g. during events and when lag exceeds some threshold
Member

Could have been anticheat. But that'd have been only one contribution then.

How it looked to me: Mobs and players were frozen (animation still running).

Before, I had tried to kill a Small. It wasn't the least impressed. No change to his HP, though (with very huge delay) some hitting sounds.

Earlier incarnations of lag like this usually ended after a couple of seconds. Not this time. It remained frozen. The server (or client) just wasn't particulary intrested in what I was doing. I could still run around, but feedback from the server was not arriving. Eating golden apples worked, but with terrible delay. Eventually, while moving alone with nobody around, i got hit with a few seconds delay and couldn't do anything to it but watch. Then I saw my bones appear. After that I could still walk around for 5-10 seconds until I got the death screen.

And after respawning, my character was turned randomly around for at least 30 seconds. Extremly annoying. Had to look elsewhere.

Chat worked to some degree, although with considerable delay compared to IRC.

My connection is usually very stable and reliable. Admittedly, it is very slow by today's standards.

Some network packages regarding movement definitely got out of sync or lost. There's the random turning at the end, so my movements 1-2 minutes earlier probably got processed then (after respawning).

Could have been anticheat. But that'd have been only one contribution then. How it looked to me: Mobs and players were frozen (animation still running). Before, I had tried to kill a Small. It wasn't the least impressed. No change to his HP, though (with very huge delay) some hitting sounds. Earlier incarnations of lag like this usually ended after a couple of seconds. Not this time. It remained frozen. The server (or client) just wasn't particulary intrested in what I was doing. I could still run around, but feedback from the server was not arriving. Eating golden apples worked, but with terrible delay. Eventually, while moving alone with nobody around, i got hit with a few seconds delay and couldn't do anything to it but watch. Then I saw my bones appear. After that I could still walk around for 5-10 seconds until I got the death screen. And after respawning, my character was turned randomly around for at least 30 seconds. Extremly annoying. Had to look elsewhere. Chat worked to some degree, although with considerable delay compared to IRC. My connection is usually very stable and reliable. Admittedly, it is very slow by today's standards. Some network packages regarding movement definitely got out of sync or lost. There's the random turning at the end, so my movements 1-2 minutes earlier probably got processed then (after respawning).
Member

Summary of what Alias and I found out through testing: Each mob moving around sends a data packet. If there are too many of them, my internet connection is overflooded. MT apparently doesn't have adequate handling for such a huge amount of mobs.

Summary of what Alias and I found out through testing: Each mob moving around sends a data packet. If there are too many of them, my internet connection is overflooded. MT apparently doesn't have adequate handling for such a huge amount of mobs.
Member

the fact that the server step is so short might mean that more packets are sent every second, if mob positions are updated on every step.

the fact that the server step is so short might mean that more packets are sent every second, if mob positions are updated on every step.
flux added the
1. kind/other
label 2023-04-09 00:02:28 +00:00
Member

Perhaps we could disable smooth rotation (rotation in 8 steps) for voice mobs? It only affects random walking mode. But then - not all are always attacking, and any packet not sent is welcome.

As long as mobs don't do anything, there's most likely no new packet sent.

But even an update every second by about a 1000 mobs would certainly be too much.

Perhaps we could disable smooth rotation (rotation in 8 steps) for voice mobs? It only affects random walking mode. But then - not all are always attacking, and any packet not sent is welcome. As long as mobs don't do anything, there's most likely no new packet sent. But even an update every second by about a 1000 mobs would certainly be too much.

Imagine you have 1000 mobs who want to send you a packet each step. One step is 0.47ms, that's about 21 steps per second. That's 21 000 packets per second. With a 1 Mbit/s landline you get at max 125 Kilobyte per second. 125 000 Bytes / 21 000 packets means, a packet may have less than 6 Bytes of overall content. Even the header is larger.

Imagine you have 1000 mobs who want to send you a packet each step. One step is 0.47ms, that's about 21 steps per second. That's 21 000 packets per second. With a 1 Mbit/s landline you get at max 125 Kilobyte per second. 125 000 Bytes / 21 000 packets means, a packet may have less than 6 Bytes of overall content. Even the header is larger.

... and Sokomine bytes the dust.

sry couldnt resist

... and Sokomine bytes the dust. sry couldnt resist
Member

possibly relevant upstream issue: https://github.com/minetest/minetest/issues/10694

possibly relevant upstream issue: https://github.com/minetest/minetest/issues/10694
Member

Perhaps we could disable smooth rotation (rotation in 8 steps) for voice mobs?

this seems to be controlled by a "global" setting for mobs_redo, and not per-mob: https://notabug.org/TenPlus1/mobs_redo/src/master/api.txt#L772

i vote we disable it and see if anything improves?

> Perhaps we could disable smooth rotation (rotation in 8 steps) for voice mobs? this seems to be controlled by a "global" setting for mobs_redo, and not per-mob: https://notabug.org/TenPlus1/mobs_redo/src/master/api.txt#L772 i vote we disable it and see if anything improves?
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 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#4124
No description provided.