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 MC-3782 Creepers detonate after you are far out of their range MC-3852 Wolfs Reproduce bug MC-3920 the carrots and potato seeds dont pop out of the ground when jumped on MC-3925 All my animals are floating in the air on Minecraft MC-4102 Chests dissapear if they are placed on the spawning platform in the End MC-5143 Never Getting Steak MC-80383 Won't play 1.8.4 MC-81367 crashing on launch MC-83999 Not Opening MC-86047 1.8.4 until the recent snapshots dont work for me D: MC-86508 Minecraft won't launch on OS X 10 nd Safari MC-87384 Game crashes on loading 15w35b MC-91778 Client error. MC-92486 Minecraft crashes after I press play MC-94284 Crashes when you hit play on launcher. MC-94322 My Minecraft is not launching!!! MCL-3718 Launcher crashes if i try to play the newer versions than 1.8.3. MCL-3782 My MInecraft Launcher Keeps Crashing MCL-3852 LAUNCHER CRASH UNLIKE ANY OTHER. MCL-3920 doesn't load 1.8 versions and 1.9 versions MCL-3925 I can't launch versions above 1.8.3 MCL-4102 when i press play launcher doesn't active there is no crash report MCL-5143 I can not start up my minecraft launcher for some reason(vanilla

Comments

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