I made a baby Hoglin follow me to travel to the overworld from the nether.
When it was still a baby I could get hurt normally in the overworld.
However just after it become adult every time it tried to hurt me it made the server crash on first hit. To make it stop I finally had to kill it from a distance with a bow.
Below is the stack trace of the error just before the crash.
Also, you'll find the crash report in the attached files.
[23:01:07] [Server thread/ERROR]: Encountered an unexpected exception
q: Ticking entity
at net.minecraft.server.MinecraftServer.b(SourceFile:864) ~[server_1.16-SNAPSHOT.jar:?]
at xg.b(SourceFile:345) ~[server_1.16-SNAPSHOT.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:799) ~[server_1.16-SNAPSHOT.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:658) [server_1.16-SNAPSHOT.jar:?
at java.lang.Thread.run(Thread.java:835) [?:?]
Caused by: java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Random.java:388) ~[?:?]
at bae.B(SourceFile:154) ~[server_1.16-SNAPSHOT.jar:?]
at aou.a(SourceFile:46) ~[server_1.16-SNAPSHOT.jar:?]
at aou.a(SourceFile:16) ~[server_1.16-SNAPSHOT.jar:?]
at apf.a(SourceFile:69) ~[server_1.16-SNAPSHOT.jar:?]
at anv.e(SourceFile:49) ~[server_1.16-SNAPSHOT.jar:?]
at ang.b(SourceFile:380) ~[server_1.16-SNAPSHOT.jar:?]
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.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
]
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) ~[?:?]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
at java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1743) ~[?:?]
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) ~[?:?]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274) ~[?:?]
at java.util.TreeMap$ValueSpliterator.forEachRemaining(TreeMap.java:2890) ~[?:?]
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 ang.c(SourceFile:380) ~[server_1.16-SNAPSHOT.jar:?]
at ang.a(SourceFile:342) ~[server_1.16-SNAPSHOT.jar:?]
at bae.dZ(SourceFile:207) ~[server_1.16-SNAPSHOT.jar:?]
at amr.dy(SourceFile:674) ~[server_1.16-SNAPSHOT.jar:?]
at amq.l(SourceFile:2305) ~[server_1.16-SNAPSHOT.jar:?]
at amr.l(SourceFile:498) ~[server_1.16-SNAPSHOT.jar:?]
at amf.l(SourceFile:126) ~[server_1.16-SNAPSHOT.jar:?]
at avq.l(SourceFile:49) ~[server_1.16-SNAPSHOT.jar:?]
at bae.l(SourceFile:220) ~[server_1.16-SNAPSHOT.jar:?]
at amq.h(SourceFile:2147) ~[server_1.16-SNAPSHOT.jar:?]
at amr.h(SourceFile:303) ~[server_1.16-SNAPSHOT.jar:?]
at yg.a(SourceFile:604) ~[server_1.16-SNAPSHOT.jar:?]
at bmy.a(SourceFile:542) ~[server_1.16-SNAPSHOT.jar:?]
at yg.a(SourceFile:400) ~[server_1.16-SNAPSHOT.jar:?]
at net.minecraft.server.MinecraftServer.b(SourceFile:860) ~[server_1.16-SNAPSHOT.jar:?]
... 4 more
[23:03:26] [Server thread/ERROR]: This crash report has been saved to: /home/ubuntu/mc/server/./crash-reports/crash-2020-03-13_23.03.26-server.txt
[23:03:26] [Server thread/INFO]: Stopping server
[23:03:26] [Server thread/INFO]: Saving players
[23:03:27] [Server thread/INFO]: val59000 lost connection: Internal Exception: java.lang.StackOverflowError
[23:03:27] [Server thread/INFO]: val59000 left the game
[23:03:27] [Server thread/ERROR]: Exception stopping the server
java.lang.IllegalStateException: Removing entity while ticking!
at yg.h(SourceFile:981) ~[server_1.16-SNAPSHOT.jar:?]
at yg.e(SourceFile:997) ~[server_1.16-SNAPSHOT.jar:?]
at aar.c(SourceFile:341) ~[server_1.16-SNAPSHOT.jar:?]
at yy.a(SourceFile:1002) ~[server_1.16-SNAPSHOT.jar:?]
at lu.l(SourceFile:392) ~[server_1.16-SNAPSHOT.jar:?]
at aki.g(SourceFile:79) ~[server_1.16-SNAPSHOT.jar:?]
at yy.b(SourceFile:285) ~[server_1.16-SNAPSHOT.jar:?]
at aar.s(SourceFile:762) ~[server_1.16-SNAPSHOT.jar:?]
at net.minecraft.server.MinecraftServer.s(SourceFile:584) ~[server_1.16-SNAPSHOT.jar:?]
at xg.s(SourceFile:595) ~[server_1.16-SNAPSHOT.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:695) [server_1.16-SNAPSHOT.jar:?]
at java.lang.Thread.run(Thread.java:835) [?:?]
Environment
java version "12.0.2" 2019-07-16
Java(TM) SE Runtime Environment (build 12.0.2+10)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
Linked issues
duplicates 1
Attachments
Comments 2
Updated MC-174498 to more accurately describe the issue and linked this ticket as duplicate.
Maybe a duplicate of ? I'm not sure.
https://bugs.mojang.com/browse/MC-174683
https://bugs.mojang.com/browse/MC-174669
https://bugs.mojang.com/browse/MC-174498