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

Painting / Item frame spawners crash the game, regardless of data provided

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.6.2, Minecraft 13w37a, Minecraft 1.7.2, Minecraft 13w48b, Minecraft 1.7.4, Minecraft 14w02b, Minecraft 14w02c, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w10b, Minecraft 14w10c, Minecraft 1.8, Minecraft 1.8.1-pre1, Minecraft 1.8.5, Minecraft 1.8.6, Minecraft 1.8.7, Minecraft 1.8.9
    • Community Consensus

      Please don't close this bug as a duplicate of an unrelated report just because it's a spawner crash bug. Not all spawner crashes are caused by invalid EntityIDs - this one has a unique cause unrelated to that.

      If a spawner has an EntityID of "Painting", regardless of the provided SpawnData/SpawnPotentials, it will crash the game. This is due to an NBT loading issue, where the game recognizes "Painting" as a valid ID, but attempts to create one with a null world (spawners do this for the entity spinning in the spawner cage).

      Unlike the majority of entities, paintings will crash when loading their NBT if their world is null, and there is no workaround to this (not even having an entity ride the painting will fix it).

      Steps to Reproduce:

      1. Import the attached schematic into your world.
      2. Observe that you immediately crash when approaching the chunk containing it.
        MC-81578 / 1.8.7
        java.lang.NullPointerException: Saving entity NBT
        	at un.b(SourceFile:187)
        	at uo.b(SourceFile:168)
        	at pk.e(SourceFile:1180)
        	at pk.d(SourceFile:1150)
        	at add.a(SourceFile:129)
        	at add.a(SourceFile:265)
        	at bhh.a(SourceFile:19)
        	at bhh.a(SourceFile:14)
        	at bhh.a(SourceFile:9)
        	at bhc.a(SourceFile:114)
        	at bhc.a(SourceFile:102)
        	at bfr.a(SourceFile:615)
        

        1. crash-2013-07-30_10.17.45-client.txt
          23 kB
          WolfieMario
        2. crash-2014-01-14_22.31.30-client.txt
          5 kB
          Jeuv
        3. crash-2014-10-16_08.23.30-client.txt
          5 kB
          raz
        4. crash-2015-05-25_22.41.12-client (ItemFrame 1.8.6).txt
          5 kB
          Marcono1234
        5. crash-2015-05-25_22.42.45-server (ItemFrame 1.8.6 manually TileX, TileY, TileZ).txt
          4 kB
          Marcono1234
        6. Painting.schematic
          0.4 kB
          WolfieMario
        7. vanilla.txt
          4 kB
          Neospector

            Unassigned Unassigned
            wolfiemario WolfieMario
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: