mojira.dev
MC-184907

[Crash] java.lang.UnsupportedOperationException - Some villages cause crashes

I can't explain it. Here's my crash reports.

How to reproduce

  1. Download the world at https://filebin.net/6yx2pmj1xn0a93kl

  2. Click open to LAN and enable cheats

  3. Teleport yourself near the village that is causing this crash

    /gamemode creative
    /tp @s -300 100 400

    ❌ The game crashes

Stack trace

20w21a\: [^crash-2020-05-20_15.46.31-server.txt]

java.lang.UnsupportedOperationException
	at com.google.common.collect.ImmutableList.sort(ImmutableList.java:565)
	at asi.a(SourceFile:43)
	at asi.b(SourceFile:60)
	at cot.a(SourceFile:42)
	at cks.a(SourceFile:22)
	at cks.a(SourceFile:15)
	at cja.a(SourceFile:44)
	at cow.a(SourceFile:82)
	at csr.a(SourceFile:83)
	at csr.a(SourceFile:79)
	at csy.a(SourceFile:75)
	at bqd.a(SourceFile:560)
	at bqd$$Lambda$4875/1477023438.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.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at it.unimi.dsi.fastutil.longs.LongIterator$$Lambda$4870/169729277.accept(Unknown Source)
	at java.util.PrimitiveIterator$OfLong.forEachRemaining(PrimitiveIterator.java:189)
	at it.unimi.dsi.fastutil.longs.LongIterator.forEachRemaining(LongIterator.java:53)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	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 bqd.a(SourceFile:559)
	at cga.a(SourceFile:210)
	at cgc.c(SourceFile:84)
	at cgc$$Lambda$1692/1291424387.doWork(Unknown Source)
	at cgc.a(SourceFile:214)
	at yi.a(SourceFile:569)
	at yi$$Lambda$3911/1584954675.apply(Unknown Source)
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
	at yi.a(SourceFile:563)
	at yi$$Lambda$3908/166303427.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
	at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
	at yk.b(SourceFile:58)
	at yk$$Lambda$3840/56887755.run(Unknown Source)
	at amc.e(SourceFile:94)
	at amc.a(SourceFile:137)
	at amc.run(SourceFile:105)
	at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

Linked issues

MC-185040 Random Intense Lag Spikes Cause Crash Resolved MC-185078 World crash specific areas Resolved MC-185103 java.lang.UnsupportedOperationException when generating a village Resolved MC-185155 Server Crash Resolved MC-185244 Block updates causing frequent crashes Resolved

Attachments

Comments 30

Does it only happen in this one specific world, or all worlds?

I have not noticed it yet in  another world. That world was created in this snapshot and it was several hours into it before it started crashing. That world now won't play for more than 10 minutes now without crashing. I am testing others, but like I stated it was several hours into it before it started acting up.

Did you use any special world settings? if so, please attach them here.

Nothing. I did use the seed of 'takingalongbreak' but nothing else. There first time it happened, I don't remember what I was doing, but the consecutive times I had a lead on a donkey and was  walking it across the plains. The donkey did have a full chest of items on it.

Oh, I do remember the first time. I died, and when I respawned, it was like it put me somewhere else like it wasn't the same spawn location as when I started the game and I couldn't get my bearings. Then the game crashed and when I launched it, I had all my stuff, plus the when I went back to where I died, all my stuff as also scattered across the ground, so I ended up with duplicate items of everything I died with.

I got this crash on a customized world, and it appears to occur consistently when I go towards a particular location on that save. However, after re-creating the world, I cannot reproduce the issue. It seems that the location I am heading towards is a village, and the game possibly crashes when the village is generated.

20 more comments

ive just got this issue on 21a and had to use an alt account to tp my other client away form the village cause it kept crashing the server each time i logged in

Bump, Any updates?

I own a 1.16 anarchy server and there's literally no way i could prevent it- Hope its fixed within a week.

Please don't bump. You can see on top of the ticket what the progress is.

Since snapshots are versions still in development, and as such crashes like this one are to be expected to happen from time to time. As a rule, you shouldn't rely on snapshots working flawlessly. That's their whole point.

I have the crash too when I teleport to certain villages. I saw that the generation of the villages changed in 20w21a as well as a couple pillager outposts disappearing in a few spots when 20w21a released. This may be the reason.

Based on the info from users, this has been fixed.

Thurman Jenner

(Unassigned)

Confirmed

Crash

mojang_internal_1

20w21a

20w22a

Retrieved