Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-65587

Lag spike while loading player head textures/player skins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32d, Minecraft 14w33a, Minecraft 14w33b, Minecraft 14w34b, Minecraft 14w34c, Minecraft 1.8-pre1, Minecraft 1.8, Minecraft 1.8.3, Minecraft 1.8.6, Minecraft 1.8.7, Minecraft 15w40b, Minecraft 15w46a, Minecraft 1.8.9, Minecraft 1.9 Pre-Release 2, Minecraft 1.9.2, Minecraft 16w32b, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 1.12.2, Minecraft 18w07c, Minecraft 1.13-pre5, Minecraft 1.13.1, 1.14.4, 19w46b, 1.15 Pre-release 3, 1.15.2 Pre-release 2, 1.15.2, 1.16.1, 20w30a, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 2, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a
    • Fix Version/s: 1.17 Pre-release 1
    • Confirmation Status:
      Confirmed
    • Category:
      Performance, Textures and models
    • Mojang Priority:
      Important

      Description

      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 Sollace with further explanation of this bug can be found in MC-216347.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              slicedlime [Mojang] slicedlime
              Reporter:
              redstonehelper [Mod] redstonehelper
              Votes:
              36 Vote for this issue
              Watchers:
              19 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: