mojira.dev
MC-65587

Lag spike while loading player head textures/player skins

There is a massive lagspike while the game tries to load a player head texture. This can even lead to the game completely freezing if the game is in offline mode or the player the skin is supposed to be loaded from doesn't exist.

To reproduce

Existing player

  1. Delete the skin cache in .minecraft/assets/skins

  2. Run

    /give @s minecraft:player_head{SkullOwner:jeb_}

    → ❌ If you're offline, your game will freeze completely, otherwise it will take a second or two before the skin is loaded and the game continues.

Non-existing player

(from MC-216347)

  1. Run

    /give @s minecraft:player_head{"SkullOwner":{"Name":"Notarealplayersnameplsfixthismojang","Properties":{"textures":[{"Value":"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmQzNGIzZTI3YTNmZTUzODI3YjM3YWQ1OTU2YWNjYTA4ZjI4NjNjNjkyNmNjOTcxMTZkZGEzMzQ4Njk3YTVhOSJ9fX0"}]}}}
  2. Place the player head down
    → ❌ The game freezes

Note

For some more detailed explanation read the content of the duplicate MC-132437.

Code analysis

A code analysis by @unknown with further explanation of this bug can be found in MC-216347.

Linked issues

MC-68353 /Giving a skull to yourself with a {SkullOwner:NameHere} Will crash your game when in offline mode. Resolved MC-72479 Give player skull MHF causes lag Resolved MC-79439 Loading player heads in offline mode causes game to freeze Resolved MC-82599 Minecraft Freezes for a few seconds while trying to get head Resolved MC-97538 Lag Spike With minecraft:skull NBT Tags Resolved

Attachments

Comments 27

Probably intended, since the skin downloading is not instant.

Where's the differenct to MC-52653 ? Edit: Removed loop in the space-time-continuum

@unknown wrote there today

Fixed in 14w32b.

[Mod] redstonehelper

You linked the wrong bug, I think. Anyway, the difference to that one is my reported bug only happens when initially❓ giving a player head, the other bug happens anytime when placing any player head.

edit: You meant to link MC-52653.

Confirmed for

  • 1.8 Probably everytime the game loads skulls (also when old worlds with skulls gets opened in newer versions)

  • 1.8.3

17 more comments

Can confirm in 21w07a.

To me it is even more weird. The skins of mob heads do not load in.

Can confirm in 21w11a.

Can this be reproduced twice in a row with the same skull? And is it 100% consistent? (If the answer is no to both this bug seems similar to a few other bugs, one of which may have caused this one)

Is still present in newest release Verison; doesn't seem to be fixed.

[Mod] redstonehelper

slicedlime

Confirmed

Important

Performance, Textures and models

freeze, give, giving, head, mojang_internal_1, player, skull, skullowner, texture

Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32d, Minecraft 14w33a, Minecraft 14w33b, ..., 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a

1.17 Pre-release 1

Retrieved