mojira.dev
MC-79947

Starting game fails with error "com.google.common.base.Preconditions.checkNotNull" (corruped usercache.json)

Moderator Note

Try renaming or deleting the usercache.json file in your [Minecraft data folder|http://hopper.minecraft.net/help/finding-minecraft-data-folder], as it may have been corrupted.


[19:56:12 INFO]: Looking for orphaned versions to clean up...
[19:56:12 INFO]: Looking for old natives & assets to clean up...
[19:56:14 ERROR]: java.io.IOException: Stream closed
[19:56:14 ERROR]: Game ended with bad state (exit code 1)
the launcher shows:
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
[19:56:14] [Client thread/INFO]: Setting user: LapexAnni
[19:56:14] [Client thread/INFO]: (Session ID is token:5a41b92540874ac38bafe0b6b802a165:b20bcd6df77641918a74e35d59e76a37)
Exception in thread "Client thread" java.lang.NullPointerException
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213)
	at com.google.common.collect.Lists$ReverseList.<init>(Lists.java:767)
	at com.google.common.collect.Lists.reverse(Lists.java:759)
	at lt.b(SourceFile:156)
	at lt.<init>(SourceFile:43)
	at net.minecraft.server.MinecraftServer.<init>(SourceFile:155)
	at bpo.<init>(SourceFile:41)
	at ave.<init>(SourceFile:293)
	at net.minecraft.client.main.Main.main(SourceFile:124)

Linked issues

MC-3718 Textures and Effects are off when far away from the center of the map Resolved MC-3782 Creepers detonate after you are far out of their range Resolved MC-3852 Wolfs Reproduce bug Resolved MC-3920 the carrots and potato seeds dont pop out of the ground when jumped on Resolved MC-3925 All my animals are floating in the air on Minecraft Resolved

Comments 6

azenet

Getting this on a dedicated 1.8.4 server as well.

azenet

Deleting usercache.json fixes this.

kumasasa

Caused by MC-79990 ?

azenet

Cannot be. MC-79990 just shows usage of checkNotNull. This issue is caused by improper file handling of usercache.json, so definitely related to UUID lookup, maybe happens when the server is not stopped gracefully. This crash happens because the usercache.json file is completely empty instead of containing "[]" (empty array).

Anon Ymus
wobst.michael

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

Ivan Uttley

(Unassigned)

Confirmed

Minecraft 1.8.4, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w33c

Retrieved