mojira.dev
MCL-1905

legacy.json missing causing java.io.FileNotFoundException

Potential Cause

This Issue is potentially caused by Antivirus Programs and/or Firewall Programs, especially Norton. Try disabling it while launching Minecraft and see if it helps. If it does maybe consider using a different Antivirus Program.

Also, this issue might easily be fixed by reinstalling Minecraft.

[17:00:51 WARN]: No assets index file C:\Users\Manuel-7\AppData\Roaming\.minecraft\assets\virtual\legacy; can't reconstruct assets
java.io.FileNotFoundException: File '/Users/test/Library/Application Support/minecraft/assets/indexes/legacy.json' does not exist
	at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299) ~[launcher.jar:?]
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711) ~[launcher.jar:?]
	at net.minecraft.launcher.GameLauncher.getAssetObject(GameLauncher.java:323) ~[launcher.jar:?]
	at net.minecraft.launcher.GameLauncher.launchGame(GameLauncher.java:245) ~[launcher.jar:?]
	at net.minecraft.launcher.GameLauncher.onDownloadJobFinished(GameLauncher.java:616) [launcher.jar:?]
	at net.minecraft.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:120) [launcher.jar:?]
	at net.minecraft.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:?]
	at net.minecraft.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:89) [launcher.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [?:1.6.0_65]
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [?:1.6.0_65]
	at java.util.concurrent.FutureTask.run(FutureTask.java:138) [?:1.6.0_65]
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [?:1.6.0_65]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [?:1.6.0_65]
	at java.lang.Thread.run(Thread.java:695) [?:1.6.0_65]

Related crash log:

Macs:

[media][media]

Windows:

[media]

Linked issues

MC-60568 Minecraft fails to launch [Exit Code: 225] & [Exit Code: -1073741819] Resolved MC-65376 java.io.FileNotFoundException Resolved MC-70808 Multiplayer crashes with file not found error Resolved MC-71002 Fatal error launching game Resolved MC-71193 It keeps crashing In-game when selecting a world Resolved

Attachments

Comments 30

I have this issue as well. It should be noted I have an older laptop, and also should be noted I accidently downloaded a 32bit version of Java on my 64bit computer (prior to this update it still worked fine), and I was too lazy to change it. As I press Play Game, it loads the game regularly up until the Mojang screen comes up. Graphics for Mojang screen seem extremely low-resolution and irregular. Hopefully we can get an answer soon. Need be I can report my crash data as well.

EDIT- I realize this post is for Mac OS but I use Windows Vista.

ubuntu 13.10

java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

Minecraft 1.7.9

I am seeing this same problem in a more recent version: 1.7.9. It is almost like the problem has been inherited by some of the more recent versions of Minecraft which is weird since it was almost non-existent in 1.6.

Happens to me in 1.7.x

@Will Eder I have a 2002 computer, Windows XP, and it happens to me

20 more comments

I have this issue as well. However if I login with another user account on my PC and start a new world, it doesn't complain about a missing legacy.json, although it doesn't exist. Is it possible, that it's only required for worlds created with older versions of the game?
Anyway: Wouldn't it be possible to put a legacy.json as an attachment to this case, so anyone who is missing it can download it?

Just noticed this issue on Mac OS 10.11.4 when looking through the log after what I assume was an unrelated crash.

[11:03:00 INFO]: Minecraft Launcher 1.6.61 (through bootstrap 5) started on osx...
[11:03:00 INFO]: Current time is Jul 4, 2016 11:03:00 AM
[11:03:00 INFO]: System.getProperty('os.name') == 'Mac OS X'
[11:03:00 INFO]: System.getProperty('os.version') == '10.11.4'
[11:03:00 INFO]: System.getProperty('os.arch') == 'x86_64'
[11:03:00 INFO]: System.getProperty('java.version') == '1.8.0_60'
[11:03:00 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation'
[11:03:00 INFO]: System.getProperty('sun.arch.data.model') == '64'

[...]

11:05:11 FATAL]: Fatal error launching game. Report this to http://bugs.mojang.com please!
java.io.FileNotFoundException: File '/Users/tasnu/Library/Application Support/minecraft/assets/indexes/legacy.json' does not exist
	at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299) ~[launcher.jar:1.6.61]
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711) ~[launcher.jar:1.6.61]
	at net.minecraft.launcher.Launcher.cleanupOrphanedAssets(Launcher.java:254) ~[launcher.jar:1.6.61]
	at net.minecraft.launcher.Launcher.performCleanups(Launcher.java:496) ~[launcher.jar:1.6.61]
	at net.minecraft.launcher.game.MinecraftGameRunner.launchGame(MinecraftGameRunner.java:231) ~[launcher.jar:1.6.61]
	at com.mojang.launcher.game.runner.AbstractGameRunner.onDownloadJobFinished(AbstractGameRunner.java:186) [launcher.jar:1.6.61]
	at com.mojang.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:122) [launcher.jar:1.6.61]
	at com.mojang.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:1.6.61]
	at com.mojang.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:86) [launcher.jar:1.6.61]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_60]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_60]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_60]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_60]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]

@Hugo, your stack is the benign version I mentioned above.
The problem is indicated by

at net.minecraft.launcher.GameLauncher.getAssetObject(GameLauncher.java:323) ~[launcher.jar:?]
at net.minecraft.launcher.GameLauncher.launchGame(GameLauncher.java:245) ~[launcher.jar:?]

The benign version has

at net.minecraft.launcher.Launcher.cleanupOrphanedAssets(Launcher.java:254) ~[launcher.jar:1.6.61]
at net.minecraft.launcher.Launcher.performCleanups(Launcher.java:496) ~[launcher.jar:1.6.61]
at net.minecraft.launcher.game.MinecraftGameRunner.launchGame(MinecraftGameRunner.java:231) ~[launcher.jar:1.6.61]

One is attempting to access the file to get the assets and run the game. The other is speculatively attempting to clean up after the game has already exited. [All failures should really be being silently suppressed by Mojang during cleanup, but they don't do that]

Is this still a concern in the current Minecraft Launcher version 2.0.805 / 2.0.806? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. It will be reopened it as soon as the requested information has been delivered.

I can't test this with the new launcher since it crashes on one of my kids computers with a CPU error.

Fact is that when using the  legacy laucnher something does not handle the filenotfound exception, which it should ignore since it is a legcy cleanup. Please fix.

migrated

(Unassigned)

Community Consensus

Retrieved