mojira.dev
MC-151068

Crash when breaking a work station: Ticking entity

I broke a loom on which was working shepherd and minecraft crashed

1.14.1 Pre-Release 1: [^crash-2019-05-07_21.04.50-server.txt]

Description: Ticking entity

java.lang.NullPointerException: Ticking entity
	at bht.e_(SourceFile:139)
	at cnn.a(SourceFile:473)
	at cnn.a(SourceFile:461)
	at cnn.a(SourceFile:380)
	at cnn.a(SourceFile:345)
	at cnn.a(SourceFile:433)
	at cnn.b(SourceFile:225)
	at cnn.a(SourceFile:160)
	at cnn.a(SourceFile:121)
	at cnk.a(SourceFile:83)
	at cnk.a(SourceFile:37)
	at api.a(SourceFile:144)
	at api.b(SourceFile:112)
	at aph.b(SourceFile:65)
	at ajq.a(SourceFile:95)
	at ajq$$Lambda$2911/498408551.test(Unknown Source)
	at aqh.b(SourceFile:102)
	at aqh$$Lambda$2913/287677416.test(Unknown Source)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
	at java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
	at java.util.stream.Sink$ChainedReference.end(Sink.java:258)
	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:530)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:516)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
	at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
	at aqh.b(SourceFile:103)
	at ajq.a(SourceFile:103)
	at ajs.b(SourceFile:49)
	at ajg.b(SourceFile:263)
	at ajg$$Lambda$2895/1931229454.accept(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1683)
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
	at java.util.TreeMap$ValueSpliterator.forEachRemaining(TreeMap.java:2893)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
	at ajg.d(SourceFile:263)
	at ajg.a(SourceFile:222)
	at avl.L(SourceFile:244)
	at ais.db(SourceFile:630)
	at air.k(SourceFile:2257)
	at ais.k(SourceFile:486)
	at aig.k(SourceFile:140)
	at air.h(SourceFile:2102)
	at ais.h(SourceFile:293)
	at avl.h(SourceFile:282)
	at vg.a(SourceFile:580)
	at vg$$Lambda$2840/971791235.accept(Unknown Source)
	at bhi.a(SourceFile:676)
	at vg.a(SourceFile:383)
	at net.minecraft.server.MinecraftServer.b(SourceFile:827)
	at net.minecraft.server.MinecraftServer.a(SourceFile:764)
	at dxk.a(SourceFile:128)
	at net.minecraft.server.MinecraftServer.run(SourceFile:632)
	at java.lang.Thread.run(Thread.java:745)

Linked issues

Attachments

Comments 6

Some people are reporting that this issue happens when travelling through a nether portal as well.

Something else I noticed with this crash, the server exits with exit code 0. I have a bash script which uses the exit code to detect crashes and automatically restart the server. My script failed to restart the server when this crash happened.

Is this expected behavior? If not, should I open a separate bug?

I think this may be the same thing. I am not sure so I am including my crash log. I was just exploring new terrain and it crashed with this error.

[pastebin - ticking error|https://pastebin.com/Z4BnJnnE]

ed: it crashes within a few seconds when loading the world now, same error. i'll just wait for a new prerelease before trying to load it again

Thanks for your time.

This does not only happen while villagers are ticking, but also while other entities (such as zombie pigmen) are ticking, see MC-151263

SullyTheUnusual

Can confirm for 1.14.1-Pre1 on CentOS 7 server running latest Oracle Java 1.8. Server starts fine, but after login it crashes ticking a villager.

Christopher Martin

I am SO happy this got fixed

Gravinser

(Unassigned)

Unconfirmed

Crash

Minecraft 1.14.1 Pre-Release 1

Minecraft 1.14.1 Pre-Release 2

Retrieved