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

Summoning a LeashKnot with a passenger entity crashes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w41a
    • Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w33a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a
    • None
    • Confirmed

      The following is the command in question:

      /summon leash_knot ~ ~ ~ {Passengers:[{id:Zombie}]}
      

      DO NOT USE ON VALUED WORLD

      After running this command once, the game will crash. When you re-enter the world and run the same command, the game will crash again but also delete your world (the level.dat file)

      Unfortunately this happened to me on a valuable world and so I lost that world. It was also stupid of me not to make any back-ups, but it was only one of the first nights I was working on it, and I shouldn't have to rely on making back-ups.

      I believe the problem is when the LeashKnot naturally despawns, the passengers 'pop-off' and cause issues. In both cases, the timing of the crash after spawning seems to be consistent with the lifetime of the LeashKnot.


      java.lang.NullPointerException: Ticking entity
      	at sa.A(SourceFile:1287)
      	at sa.p(SourceFile:1834)
      	at rr.aw(SourceFile:1498)
      	at sa.aw(SourceFile:1840)
      	at aht.a(SourceFile:1513)
      	at lp.a(SourceFile:719)
      	at aht.g(SourceFile:1493)
      	at aht.a(SourceFile:1559)
      	at lp.a(SourceFile:719)
      	at aht.g(SourceFile:1493)
      	at aht.k(SourceFile:1383)
      	at lp.k(SourceFile:552)
      

      Code analysis by marcono1234 can be found in this comment.

            FruBasilicum [Mojang] Agnes Larsson
            Dwittyy Dwittyy
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: