mojira.dev
MC-129628

Preparing spawn area hangs on loading world

The bug

When I load some normal worlds (for me it happened with a world from 17w49a), 'Preparing spawn area' hangs at some point, in this case 1%. The second time I tried it with the same world, it worked.

Minecraft log:

Encountered an unexpected exception
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index (0) is greater than or equal to list size (0)
	at net.minecraft.server.MinecraftServer.g_(SourceFile:390)
	at dhq.a(SourceFile:116)
	at dhq.d(SourceFile:132)
	at net.minecraft.server.MinecraftServer.run(SourceFile:497)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index (0) is greater than or equal to list size (0)
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2272)
	at net.minecraft.server.MinecraftServer.g_(SourceFile:388)
	... 4 more
Caused by: java.lang.IndexOutOfBoundsException: Index (0) is greater than or equal to list size (0)
	at it.unimi.dsi.fastutil.longs.LongArrayList.removeLong(LongArrayList.java:346)
	at it.unimi.dsi.fastutil.longs.LongArrayList.rem(LongArrayList.java:357)
	at it.unimi.dsi.fastutil.longs.AbstractLongList.remove(AbstractLongList.java:455)
	at bze.c(SourceFile:35)
	at bvq.a(SourceFile:308)
	at bvq.a(SourceFile:235)
	at bvq.a(SourceFile:80)
	at bxw.a(SourceFile:16)
	at bxw.a(SourceFile:13)
	at brt.a(SourceFile:27)
	at bbv.a(SourceFile:515)
	at bpg.a(SourceFile:109)
	at sx.a(SourceFile:12)
	at sw.a(SourceFile:33)
	at bpk.a(SourceFile:85)
	at tc.a(SourceFile:59)
	at tc.a(SourceFile:23)
	at agd$a.a(SourceFile:143)
	at agd$a$$Lambda$1412/876805550.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture$AsyncApply.exec(CompletableFuture.java:501)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
This crash report has been saved to: C:\Users\Maximilian\AppData\Roaming\.minecraft\.snapshots\crash-reports\crash-2018-05-15_17.47.57-server.txt
Couldn't stop taskManager
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index (0) is greater than or equal to list size (0)
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2237)
	at agd.b(SourceFile:92)
	at agf.a(SourceFile:23)
	at si.close(SourceFile:267)
	at bbb.close(SourceFile:1651)
	at sj.close(SourceFile:930)
	at net.minecraft.server.MinecraftServer.h_(SourceFile:469)
	at dhq.h_(SourceFile:312)
	at net.minecraft.server.MinecraftServer.run(SourceFile:560)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IndexOutOfBoundsException: Index (0) is greater than or equal to list size (0)
	at it.unimi.dsi.fastutil.longs.LongArrayList.removeLong(LongArrayList.java:346)
	at it.unimi.dsi.fastutil.longs.LongArrayList.rem(LongArrayList.java:357)
	at it.unimi.dsi.fastutil.longs.AbstractLongList.remove(AbstractLongList.java:455)
	at bze.c(SourceFile:35)
	at bvq.a(SourceFile:308)
	at bvq.a(SourceFile:235)
	at bvq.a(SourceFile:80)
	at bxw.a(SourceFile:16)
	at bxw.a(SourceFile:13)
	at brt.a(SourceFile:27)
	at bbv.a(SourceFile:515)
	at bpg.a(SourceFile:109)
	at sx.a(SourceFile:12)
	at sw.a(SourceFile:33)
	at bpk.a(SourceFile:85)
	at tc.a(SourceFile:59)
	at tc.a(SourceFile:23)
	at agd$a.a(SourceFile:143)
	at agd$a$$Lambda$1412/876805550.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture$AsyncApply.exec(CompletableFuture.java:501)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

Also the game makes a crash log but doesn't close.

Linked issues

Attachments

Comments

hoyskedotte

I have kinda similar. But upgrading from 1.12.2 to 18w20a. Stuck at: preparing spawn 95%.

Gets a crash log but doesn`t close.

migrated

I tried to regen with 18w20b an old world made with 18w16a (with seed -325079803) and I've got the same problem. Some times stuck at preparing spawn area 1% and other times the message doesn't even appear.

Some times the game manage to create a crash report (which i attach on this post), but in order to close the game I need to kill it with CTRL+ALT+CANC every time.

[media]
AceMcCrank

18w20c does this as well, stuck at 0% according to the game output. Uploaded screenshot. World was first created in 1.12.2.

AceMcCrank

Confirming for 18w21a.

 

Looking closer, it doesn't look like my issue is quite the same, though it is a similar symptom. I can't get a crashlog to save my life, but I do have logs, which I'll upload. Also, my issue seems to happen 100% of the time.

migrated

Is this still an issue in 1.13-pre6?

Asteraoth

Is this still an issue in Minecraft 1.13.1?

migrated

Hi,

I am with the version 1.13.2. Since 2 months, I have the issue explained below. I think this is similar to the current issue MC-129628. If I am wrong, let me know and I will open a new ticket.

During the loading of the spawn, this is crashing around 39% each time. No way to be able to start playing. Please find below part of the contain of the file crash-2018-11-04_21.08.04.txt

---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3

Time: 18-11-04 21:08
Description: Writing into PalettedContainer from multiple threads

java.lang.IllegalStateException
	at bnq.b(SourceFile:43)
	at bnq.a(SourceFile:110)
	at bnk.a(SourceFile:68)
	at bnr.a(SourceFile:168)
	at ti.a(SourceFile:217)
	at bse.a(SourceFile:133)
	at bse.a(SourceFile:42)
	at bse.a(SourceFile:14)
	at bvx.a(SourceFile:21)
	at bvx.a(SourceFile:14)
	at bpn.a(SourceFile:27)
	at ayu.a(SourceFile:504)
	at bmz.a(SourceFile:113)
	at tr.a(SourceFile:12)
	at tq.a(SourceFile:35)
	at bnd.a(SourceFile:95)
	at tx.a(SourceFile:79)
	at tx.a(SourceFile:25)
	at acu$a.a(SourceFile:147)
	at acu$a$$Lambda$1660/1129576921.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture$AsyncApply.exec(CompletableFuture.java:501)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
	at bnq.b(SourceFile:43)

-- Thread dumps --
Details:
	Thread dumps: Server thread: 
	at sun.misc.Unsafe.park(Native Method)
	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
	at java.util.concurrent.CompletableFuture$WaitNode.block(CompletableFuture.java:273)
	at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3226)
	at java.util.concurrent.CompletableFuture.timedAwaitDone(CompletableFuture.java:370)
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2260)
	at net.minecraft.server.MinecraftServer.a(SourceFile:433)
	at dgh.a(SourceFile:92)
	at dgh.d(SourceFile:108)
	at net.minecraft.server.MinecraftServer.run(SourceFile:566)
	at java.lang.Thread.run(Thread.java:745)
Attach Listener: 
	at 
WorldGen-Worker-1: 
	at sun.misc.Unsafe.park(Native Method)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.CompletableFuture$WaitNode.block(CompletableFuture.java:271)
	at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3216)
	at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:319)
	at java.util.concurrent.CompletableFuture.access$000(CompletableFuture.java:111)
	at java.util.concurrent.CompletableFuture$AsyncCompose.exec(CompletableFuture.java:616)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
WorldGen-Worker-26: 
	at java.lang.Thread.getStackTrace(Thread.java:1552)
	at bnq.a(SourceFile:41)
	at bnq$$Lambda$1685/1667276039.apply(Unknown Source)
	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$KeySpliterator.forEachRemaining(HashMap.java:1540)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at bnq.b(SourceFile:42)
	at bnq.a(SourceFile:110)
	at bnk.a(SourceFile:68)
	at bnr.a(SourceFile:168)
	at ti.a(SourceFile:217)
	at bse.a(SourceFile:133)
	at bse.a(SourceFile:42)
	at bse.a(SourceFile:14)
	at bvx.a(SourceFile:21)
	at bvx.a(SourceFile:14)
	at bpn.a(SourceFile:27)
	at ayu.a(SourceFile:504)
	at bmz.a(SourceFile:113)
	at tr.a(SourceFile:12)
	at tq.a(SourceFile:35)
	at bnd.a(SourceFile:95)
	at tx.a(SourceFile:79)
	at tx.a(SourceFile:25)
	at acu$a.a(SourceFile:147)
	at acu$a$$Lambda$1660/1129576921.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture$AsyncApply.exec(CompletableFuture.java:501)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
[...]
Signal Dispatcher: 
	at 
Reference Handler: 
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:502)
	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
Timer hack thread: 
	at java.lang.Thread.sleep(Native Method)
	at cft$1.run(SourceFile:638)
Finalizer: 
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:142)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:158)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
WorldGen-Worker-3: 
	at sun.misc.Unsafe.park(Native Method)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.CompletableFuture$WaitNode.block(CompletableFuture.java:271)
	at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3216)
	at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:319)
	at java.util.concurrent.CompletableFuture.access$000(CompletableFuture.java:111)
	at java.util.concurrent.CompletableFuture$AsyncCompose.exec(CompletableFuture.java:616)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
ForkJoinPool.commonPool-worker-10: 
	at sun.misc.Unsafe.park(Native Method)
	at java.util.concurrent.ForkJoinPool.awaitWork(ForkJoinPool.java:1756)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1696)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
WorldGen-Worker-25: 
	at sun.misc.Unsafe.park(Native Method)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.CompletableFuture$WaitNode.block(CompletableFuture.java:271)
	at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3216)
	at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:319)
	at java.util.concurrent.CompletableFuture.access$000(CompletableFuture.java:111)
	at java.util.concurrent.CompletableFuture$AsyncCompose.exec(CompletableFuture.java:616)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Stacktrace:
	at bnq.b(SourceFile:43)
	at bnq.a(SourceFile:110)
	at bnk.a(SourceFile:68)
	at bnr.a(SourceFile:168)
	at ti.a(SourceFile:217)
	at bse.a(SourceFile:133)
	at bse.a(SourceFile:42)
	at bse.a(SourceFile:14)
	at bvx.a(SourceFile:21)
	at bvx.a(SourceFile:14)
	at bpn.a(SourceFile:27)
	at ayu.a(SourceFile:504)
	at bmz.a(SourceFile:113)
	at tr.a(SourceFile:12)
	at tq.a(SourceFile:35)
	at bnd.a(SourceFile:95)
	at tx.a(SourceFile:79)
	at tx.a(SourceFile:25)
	at acu$a.a(SourceFile:147)
	at acu$a$$Lambda$1660/1129576921.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture$AsyncApply.exec(CompletableFuture.java:501)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

-- System Details --
Details:
	Minecraft Version: 1.13.2
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_25, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 298289112 bytes (284 MB) / 704643072 bytes (672 MB) up to 1073741824 bytes (1024 MB)
	JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M
	Profiler Position: N/A (disabled)
	Player Count: 0 / 8; []
	Data Packs: vanilla
	Type: Integrated Server (map_client.txt)
	Is Modded: Probably not. Jar signature remains and both client + server brands are untouched.

Thanks for your help!

migrated

(Unassigned)

Community Consensus

Minecraft 18w20a, Minecraft 18w20c

Retrieved