mojira.dev
MC-187583

Closing game during Mojang loading screen causes errors

The bug

When closing the game while the Mojang load screen is shown, errors occur.

Depending on when you close the game, the logged errors will differ:

1.16-pre1 log (Closing at beginning of load screen)

[11:54:11] [main/INFO]: Stopping!
[11:54:11] [Worker-Main-8/WARN]: Exception loading blockstate definition: minecraft:blockstates/mossy_stone_brick_wall.json: java.io.FileNotFoundException: minecraft:blockstates/mossy_stone_brick_wall.json
[11:54:11] [Worker-Main-8/WARN]: Exception loading blockstate definition: 'minecraft:blockstates/mossy_stone_brick_wall.json' missing model for variant: 'minecraft:mossy_stone_brick_wall#east=tall,north=tall,south=low,up=false,waterlogged=true,west=none'
[11:54:11] [Worker-Main-8/WARN]: Exception loading blockstate definition: 'minecraft:blockstates/mossy_stone_brick_wall.json' missing model for variant: 'minecraft:mossy_stone_brick_wall#east=none,north=low,south=none,up=false,waterlogged=false,west=tall'
[11:54:11] [Worker-Main-8/WARN]: Exception loading blockstate definition: 'minecraft:blockstates/mossy_stone_brick_wall.json' missing model for variant: 'minecraft:mossy_stone_brick_wall#east=none,north=none,south=low,up=false,waterlogged=false,west=none'
...
[11:54:11] [Worker-Main-6/ERROR]: Couldn't load texture minecraft:textures/font/unicode_page_00.png
java.io.FileNotFoundException: minecraft:textures/font/unicode_page_00.png
	at abh.a(SourceFile:67) ~[1.16-pre1.jar:?]
	at dpb.a(SourceFile:107) [1.16-pre1.jar:?]
	at dpb$$Lambda$2771/1010334754.apply(Unknown Source) [1.16-pre1.jar:?]
	at java.util.HashMap.computeIfAbsent(HashMap.java:1118) [?:1.8.0_51]
	at dpb.a(SourceFile:85) [1.16-pre1.jar:?]
	at doo$1.a(SourceFile:115) [1.16-pre1.jar:?]
	at doo$1$$Lambda$2719/448831122.accept(Unknown Source) [1.16-pre1.jar:?]
	at it.unimi.dsi.fastutil.ints.IntIterable.forEach(IntIterable.java:74) [fastutil-8.2.1.jar:?]
	at doo$1.a(SourceFile:110) [1.16-pre1.jar:?]
	at doo$1.b(SourceFile:51) [1.16-pre1.jar:?]
	at abf.a(SourceFile:11) [1.16-pre1.jar:?]
	at abf$$Lambda$2605/1295675429.get(Unknown Source) [1.16-pre1.jar:?]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1582) [?:1.8.0_51]
	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1574) [?:1.8.0_51]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_51]
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_51]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) [?:1.8.0_51]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_51]
...

1.16-pre1 log (Closing near end of load screen)

[11:48:46] [main/INFO]: Reloading ResourceManager: Default
[11:48:52] [main/INFO]: Stopping!
[11:48:52] [Worker-Main-10/ERROR]: Using missing texture, unable to load minecraft:textures/block/respawn_anchor_bottom.png : java.io.FileNotFoundException: minecraft:textures/block/respawn_anchor_bottom.png
[11:48:52] [Worker-Main-10/ERROR]: Using missing texture, unable to load minecraft:textures/block/anvil.png : java.io.FileNotFoundException: minecraft:textures/block/anvil.png
[11:48:52] [Worker-Main-10/ERROR]: Using missing texture, unable to load minecraft:textures/block/composter_top.png : java.io.FileNotFoundException: minecraft:textures/block/composter_top.png
[11:48:52] [Worker-Main-10/ERROR]: Using missing texture, unable to load minecraft:textures/block/cartography_table_side1.png : java.io.FileNotFoundException: minecraft:textures/block/cartography_table_side1.png
[11:48:52] [Worker-Main-10/ERROR]: Using missing texture, unable to load minecraft:textures/item/flint.png : java.io.FileNotFoundException: minecraft:textures/item/flint.png
...

1.17.1 log

Shutdown failure!
java.util.ConcurrentModificationException
	at java.base/java.util.HashMap.forEach(HashMap.java:1428)
	at exn.close(SourceFile:173)
	at dvp.close(SourceFile:1038)
	at dvp.l(SourceFile:1017)
	at net.minecraft.client.main.Main.main(SourceFile:233)

24w10a log

[19:05:46] [Render thread/ERROR]: Shutdown failure!
java.util.ConcurrentModificationException: null
	at java.base/java.util.HashMap.forEach(HashMap.java:1424) ~[?:?]
	at glt.close(SourceFile:173) ~[24w10a.jar:?]
	at fby.close(SourceFile:1247) [24w10a.jar:?]
	at fby.n(SourceFile:1221) [24w10a.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:281) [24w10a.jar:?]

How to reproduce

  1. Start the game

  2. While the Mojang load screen is shown, press the X of the game window

  3. Look at the log

Linked issues

Comments 13

wtf? everyone know you cant turn off computer when its loading or updating, this is same thing imagine minecraft is computer, you just cant turn off program when its loading 😃

Can confirm in 1.17.1.

For me, it threw a ConcurrentModificationException, but I don't know if I should create a new ticket for that. Probably not necessary.

This also happens when you close the game while a world is loading.

@@unknown, do you see "Cound not schedule mailbox" as exception message?
Could you please create a new report for this and refer to this one (maybe in that report also point out the typo in "Cound"). We will then mark the report as related to this one.

3 more comments

Can confirm in 21w40a.

@@unknown, do you want to become the reporter so you can update the affected versions yourself?
Though you don't have to confirm an issue for every snapshot. Usually it suffices to confirm it for releases (and maybe pre-releases) and for snapshots when you become aware of related changes (e.g. because they are mentioned in the blog post).

Oh, sure. I would like to become the reporter.

Thanks; you are the reporter now.

Can no longer reproduce in 1.21.8; seems to have been fixed in a 1.21.4 development version.

Marcono1234

ampolive

(Unassigned)

Confirmed

Platform

Low

UI

1.16 Pre-release 1, 1.16 Release Candidate 1, 1.16, 1.17.1, 21w38a, ..., 1.20.2, 23w43a, 1.20.4, 24w10a, 1.21

Retrieved