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

Executing a teleport command on a player as an entity from the game loop function causes the server to freeze and not load chunks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.12, Minecraft 17w48a
    • Confirmed

      The bug

      It appears teleporting a player to unloaded chunks as an entity inside a function run as gameLoopFunction causes the server to hang.

      Possibly related error message (17w48a)
      21:58:22] [Server thread/FATAL]: Error executing task
      java.util.concurrent.ExecutionException: java.lang.NegativeArraySizeException: nbits < 0: -1611584737
      	at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_151]
      	at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_151]
      	at h.a(SourceFile:124) [17w48a.jar:?]
      	at net.minecraft.server.MinecraftServer.w(SourceFile:632) [17w48a.jar:?]
      	at net.minecraft.server.MinecraftServer.v(SourceFile:588) [17w48a.jar:?]
      	at ckz.v(SourceFile:152) [17w48a.jar:?]
      	at net.minecraft.server.MinecraftServer.run(SourceFile:493) [17w48a.jar:?]
      	at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
      Caused by: java.lang.NegativeArraySizeException: nbits < 0: -1611584737
      	at java.util.BitSet.<init>(Unknown Source) ~[?:1.8.0_151]
      	at blb.<init>(SourceFile:22) ~[17w48a.jar:?]
      	at blb.<init>(SourceFile:17) ~[17w48a.jar:?]
      	at aqg.a(SourceFile:1019) ~[17w48a.jar:?]
      	at aqg.a(SourceFile:1124) ~[17w48a.jar:?]
      	at aqg.a(SourceFile:1108) ~[17w48a.jar:?]
      	at yr.a(SourceFile:636) ~[17w48a.jar:?]
      	at qy.a(SourceFile:524) ~[17w48a.jar:?]
      	at ku.a(SourceFile:126) ~[17w48a.jar:?]
      	at ku$b.a(SourceFile:18) ~[17w48a.jar:?]
      	at hc$1.run(SourceFile:13) ~[17w48a.jar:?]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_151]
      	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_151]
      	at h.a(SourceFile:123) ~[17w48a.jar:?]
      	... 5 more
      

      How to reproduce

      1. Download the attached datapack MC_119549_datapack.zip and place it in the datapacks folder of your world
      2. Open the world and run the following commands
        /gamerule gameLoopFunction custom:teleport
        /summon armor_stand ~ ~ ~ {CustomName:"Test"}
        

            Unassigned Unassigned
            Silly511 Silly511
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: