NPE: Teleporting from the nether after attacking pigmen; [ERROR] Cound not schedule mailbox

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      Linux (Fedora 31)

      openjdk 13.0.2 2020-01-14

       

    • git-Spigot-ae72bf4-183139d (MC: 1.15.2)
    • Yes

      Recently our server has been locking up at what seems like random but today we were able to reproduce it.

       

      One player is in the nether, one player is in the overworld. Have the nether player aggro some pigmen and then have the overworld player /tp him to themselves.

       

      This is on a vanilla server with NO plugins.

       

      The server will stop responding and then players will disconnect. After a short delay, the following will appear in the log:

       

      2020-04-13 20:09:19 [ERROR] Cound not schedule mailbox
      java.util.concurrent.RejectedExecutionException: null
              at java.util.concurrent.ForkJoinPool.externalPush(ForkJoinPool.java:1889) ~[?:?]
              at java.util.concurrent.ForkJoinPool.externalSubmit(ForkJoinPool.java:1930) ~[?:?]
              at java.util.concurrent.ForkJoinPool.execute(ForkJoinPool.java:2462) ~[?:?]
              at net.minecraft.server.v1_15_R1.ThreadedMailbox.f(SourceFile:112) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.ThreadedMailbox.a(SourceFile:101) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.ChunkTaskQueueSorter.a(SourceFile:142) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.ChunkTaskQueueSorter.a(SourceFile:150) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:714) ~[?:?]
              at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?]
              at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2144) ~[?:?]
              at net.minecraft.server.v1_15_R1.Mailbox$1.a(SourceFile:32) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.ChunkTaskQueueSorter.b(SourceFile:59) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.ChunkProviderServer$a.executeTask(ChunkProviderServer.java:578) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.ChunkProviderServer$a.executeNext(ChunkProviderServer.java:589) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:108) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.World.getChunkAt(World.java:185) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.IWorldReader.getChunkAt(SourceFile:108) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.World.getChunkAt(World.java:180) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.World.getType(World.java:493) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.IBlockAccess.rayTraceBlock(IBlockAccess.java:30) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.IBlockAccess.lambda$0(IBlockAccess.java:47) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.IBlockAccess.a(IBlockAccess.java:128) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.IBlockAccess.rayTrace(IBlockAccess.java:46) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityLiving.hasLineOfSight(EntityLiving.java:2700) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityPigZombie$PathfinderGoalAngerOther.a(EntityPigZombie.java:222) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.PathfinderGoalHurtByTarget.g(PathfinderGoalHurtByTarget.java:91) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.PathfinderGoalHurtByTarget.c(PathfinderGoalHurtByTarget.java:57) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.PathfinderGoalWrapped.c(SourceFile:41) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.PathfinderGoalSelector.a(SourceFile:75) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
              at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
              at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:?]
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
              at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
              at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
              at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[?:?]
              at net.minecraft.server.v1_15_R1.PathfinderGoalSelector.doTick(SourceFile:69) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityInsentient.doTick(EntityInsentient.java:655) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityLiving.movementTick(EntityLiving.java:2521) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityInsentient.movementTick(EntityInsentient.java:512) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityMonster.movementTick(SourceFile:39) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityZombie.movementTick(EntityZombie.java:206) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityLiving.tick(EntityLiving.java:2353) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityInsentient.tick(EntityInsentient.java:275) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.EntityZombie.tick(EntityZombie.java:177) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.WorldServer.entityJoinedWorld(WorldServer.java:626) ~[spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.World.a(World.java:694) [spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.WorldServer.doTick(WorldServer.java:395) [spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1082) [spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:406) [spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:984) [spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:824) [spigot-1.15.2.jar:git-Spigot-ae72bf4-183139d]
              at java.lang.Thread.run(Thread.java:830) [?:?]
      

       

      See attachment for a more complete log output.

          [SPIGOT-5675] NPE: Teleporting from the nether after attacking pigmen; [ERROR] Cound not schedule mailbox

          Xandon added a comment -

          I'm having the same issue but it only occurred when I stopped the server. I have gathered a lo of potentially useful information. After the error is thrown the server goes to sleep and futex is waiting for the private 7f4cc421c478 to change. https://pastebin.com/6qwVRARX . sending sigstop and sigcont in rapid succession had noeffect. this is 41483 base pid is 31464 https://pastebin.com/9M4Fr0zp

          Xandon added a comment - I'm having the same issue but it only occurred when I stopped the server. I have gathered a lo of potentially useful information. After the error is thrown the server goes to sleep and futex is waiting for the private 7f4cc421c478 to change. https://pastebin.com/6qwVRARX . sending sigstop and sigcont in rapid succession had noeffect. this is 41483 base pid is 31464 https://pastebin.com/9M4Fr0zp

          Matt D. added a comment -

          How can I send you the larger world?

          Matt D. added a comment - How can I send you the larger world?

          md_5 added a comment -

          Can you reliably reproduce this?
          I think I can see where there could conceivably be an issue, but I can't reproduce this based on your instructions.

          md_5 added a comment - Can you reliably reproduce this? I think I can see where there could conceivably be an issue, but I can't reproduce this based on your instructions.

          Black Hole added a comment -

          Seems to be a duplicate of SPIGOT-5285

          Black Hole added a comment - Seems to be a duplicate of SPIGOT-5285

          Matt D. added a comment -

          I have a test world for this report to duplicate the bug but it is over the 10MB size limit.

           

          Please let me know if this is needed or whether there is somewhere else I can upload it.

           

          Matt D. added a comment - I have a test world for this report to duplicate the bug but it is over the 10MB size limit.   Please let me know if this is needed or whether there is somewhere else I can upload it.  

            Assignee:
            Unassigned
            Reporter:
            Matt D.
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: