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]

Related issues

MC-60568 Minecraft fails to launch [Exit Code: 225] & [Exit Code: -1073741819] MC-65376 java.io.FileNotFoundException MC-70808 Multiplayer crashes with file not found error MC-71002 Fatal error launching game MC-71193 It keeps crashing In-game when selecting a world MC-71319 local multiplayer MC-71476 Fatal error launching game right after "Looking for orphaned versions to clean up..." MC-71582 Crashes on start, just after terrain downloads MC-71946 here is a copy of the log - have no idea why i cant play all of a sudden MC-71959 why can i not use minecraft and i get all these errors?? java platform se binary is not responding?? MC-72031 Error message: Fatal error launching game. Report this to http://bugs.mojang.com please! MC-72315 fatal bug MC-72466 Fatal error launching game MC-72496 Fatal Exception at launch MC-72766 file not found MC-73297 Launching game Looking for old natives to clean up... Deleting C:\Users\richard\AppData\Roaming\.minecraft\versions\1.7.10\1.7.10-natives-336251473621 Fatal error launching game. Report this to http://mojang.atlassian.net please! MC-73350 Fatal error launghing game MC-73505 save glitch MC-73832 Error message in launcher log MC-74207 ERROR Couldn't unpack natives! MC-75019 Killing Mobs Freezes Game in Multi and Single Player MC-75146 if id owload some textur packs it wont let me play MC-75744 Error during VM intialization MC-75963 Game crashs fairly constantly MC-76226 "Unknown Error" occuring whenever opening Minecraft MC-76803 Launcher crashes after system updated to Windows 8.1 MC-76821 incompatibility with JAVA SE BINARY PLATFORM MC-76929 Launch error MC-78045 Minecraft will not launch Fatal Error reported MC-78046 Minecraft has crashed and will not run MC-78089 Vanilla 1.8.3 exit code 87 MC-78196 Minecraft don't launch because of a fatal error. MC-78432 Error in Java when starting game MC-78505 Java Platform SE binary does not work MC-78826 fatal error - installing minecraft on a mac MC-78924 when using a win pc to connect to a minecraft server running on mac there is no connection to server MC-79040 fatal error after update to 1.8.3 MC-79293 error trying to log in MC-80027 Bug Not Allowing Minecraft to Open MC-80185 Will not proceed to game from launcher MC-81516 [18:42:11 FATAL]: Fatal error launching game. MC-82605 When i press play button minecraft crashes and gives me an error! MC-82704 Error launching game MC-83078 "Fatal Error Launching Game" in Launcher Log (15w14a) MC-87125 Java Crash MC-87772 program not working ! MC-88272 As soon as Minecraft launches, it crashes MC-91469 Fatal error MC-91603 I can't load Minecraft. MC-93138 Error occurred during initialization of VM MC-94188 my minecraft said me to send this bug to you guys MC-94701 Fatal error launching game MC-94827 Extremely slow Loading, 0-1 FPS MC-94892 Fatal error launching game. MC-94928 Lack of file ~/.minecraft/assets/indexes/legacy.json MC-95121 Twitch Streaming MC-96621 Fatal error launching game MC-96761 crash on startup - missing legacy.json MC-96883 Cannot launch game MC-99386 World not Loading/Starting/Generating MC-99516 Multiplayer Game Downloading terrain forever MC-102218 Crash MC-103328 Game crashing Exit Code 255 MC-103569 fatal error cant join any game MC-104497 Minecraft crashing when attempting to join a server 1.10/1.10.1/1.10.2 MC-104657 Fatal error launching game MC-104702 File not found - Game crashes MC-105235 Unable to Launch Minecraft - Java Error MC-105821 Exit code -1073740940 MC-106522 Fatel Error MC-106978 Fatal Error in Launcher Log - java.io.FileNotFoundException MC-107214 Error 87 MC-108490 crashes MC-108764 Game crash (exit code -805306369) MC-112777 Minecraft launcher can't start minecraft MC-112807 still problem with multiplayer MC-114524 Minecraft Launcher stops working. MC-121101 When I try to join a server, it loads, then it crashes my minecraft, but only for certain versions. MCL-1906 Minecraft wont load MCL-2204 1.7.4.json' does not exist MCL-2206 crash with launching mac osx MCL-2221 Minecraft Launching failed MCL-2222 Fatal error launching game MCL-2495 Fatal Crash MCL-2532 Fatal error launching game MCL-2549 launcher doesn't launch game MCL-2572 Minecraft Stops collecting Data at a Point MCL-2584 Fatal ERROR MCL-2590 Problem with the launcher window (I make it stay up in-game) MCL-2644 Gaming is crashing when loading a world that is starting in the Nether. MCL-2647 Minecraft won't start MCL-2648 Minecraft 1.7.9 crashes after some seconds MCL-2657 Mincraft Launcher Crash MCL-2720 Having problems launching game on Mac MCL-2736 fatal error launching game. File ' /users/archit/library/application support/minecraft/assets/indexes/legacy.json' doesn't exist MCL-2835 Evertime I click play it just takes me back to the launch screen. MCL-2842 Game fails to launch MCL-2869 Fatal error launching game MCL-2908 Minecraft works for like 1 minute and then it crashes. It works on my ethernet cable. MCL-2965 Loading snapshot MCL-2989 launcher failed MCL-3040 Not loading the game after pressing play MCL-3079 exception (fatal) MCL-3246 Fatal error launching game. Report this to http://bugs.mojang.com please! MCL-3278 minecraft 1.7 run, 1.8 not MCL-3448 Launching failure MCL-3543 Fatal Error Launching Game MCL-3544 "[15:58:27 FATAL]: Fatal error launching game. Report this to http://bugs.mojang.com please!" So I report this. MCL-3655 Minecraft does not start MCL-3672 starting Exception MCL-3679 Minecraft launcher MCL-3695 Whenever I hit "play" in the launcher, it downloads files over and over again and gets a "FATAL ERROR". MCL-4001 Launcher Crash after pressing "Play" MCL-4009 Launcher will not open on mac "Fatal Error" MCL-4147 Launcher won't work MCL-4199 Fatal Error at launching on Mac MCL-4259 Broken Twitch Streaming MCL-4323 [Mac] Fatal error launching game, 1.8.json does not exist MCL-4324 16w03a Can not start the Game MCL-4858 1114 error MCL-4895 When I try to start the Minecraft Launcher, than is comes a error MCL-4958 Problems MCL-5224 can't access multiplayer minecraft : searching on local network, no server connection MCL-5335 When I try to start my minecraft it's just can't start due to a missing file called legacy.json MCL-7570 fatal error launching game MCL-7594 'Fatal error launching game' MCL-8063 Minecraft Launcher Crashing?! 1.12.1

Attachments

Comments

migrated
[media][media][media][media][media][media]
migrated

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.

migrated

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

migrated

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.

migrated

Happens to me in 1.7.x

migrated

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

migrated

I have a regular windows 7 x64 laptop and downloaded minecraft from https://minecraft.net/
What ever I do the error about missing legacy.json occur.

What can I do to make it work?

migrated

Same issue, same system.

galaxy_2alex

Update: This Issue is, at least on Windows, most likely caused by Antivirus programs. One known program that can potentially cause it is "Norton 360"

migrated

@Galaxy_2Alex I don't have Norton 360 but I do use Microsoft Security Essentials. After re-downloading the minecraft files it worked fine.

migrated
[21:42:53 FATAL]: Fatal error launching game. Report this to http://bugs.mojang.com please!
java.io.FileNotFoundException: File '/home/ewhac/.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.Launcher.cleanupOrphanedAssets(Launcher.java:186) ~[launcher.jar:?]
	at net.minecraft.launcher.Launcher.performCleanups(Launcher.java:421) ~[launcher.jar:?]
	at net.minecraft.launcher.game.MinecraftGameRunner.launchGame(MinecraftGameRunner.java:217) ~[launcher.jar:?]
	at com.mojang.launcher.game.runner.AbstractGameRunner.onDownloadJobFinished(AbstractGameRunner.java:177) [launcher.jar:?]
	at com.mojang.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:122) [launcher.jar:?]
	at com.mojang.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:?]
	at com.mojang.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:86) [launcher.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_65]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_65]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_65]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_65]
	at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]

Some system info:

$ java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-2)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

$ uname -a
Linux trivium 3.14-1-amd64 #1 SMP Debian 3.14.12-1 (2014-07-11) x86_64 GNU/Linux

$ ls -al .minecraft/assets/indexes/
total 168
drwxr-xr-x 2 ewhac ewhac  4096 Jul 17 02:28 .
drwxr-xr-x 4 ewhac ewhac  4096 Mar 17 20:58 ..
-rw-r--r-- 1 ewhac ewhac 88092 Jul 22 21:42 1.7.10.json
-rw-r--r-- 1 ewhac ewhac 73081 Apr 22 00:58 1.7.4.json
migrated

I'm getting this with 1.5.1 using 1.7.10 and 14w32d. I have no idea why it does this because the game always runs perfectly fine.

migrated

Also affects 1.8 on Linux 3.13.0-35-generic #62-Ubuntu; game does not run fine, but loses map data.

migrated

I am not aware of any norton program for Linux, and do not have such installed. Also, the game is not installed on Linux, but run straight out of a jar. I replaced the jar, no change. Principle effect of the error; my map, my terraformed map, is gone, and I now appear deep underground, not in a cavern, but suffocating in the midst of blocks, in some strange world. A much smaller world.

migrated

Rolled back to an older version, managed to load, no error, map still funny. Now using 1.8, no error, map wrong.

migrated

What is the web address of all the asset downloads? It's usually possible to add domains to firewall whitelists, and firewall programs usually add their own site + update source there. If I can get the address of Minecraft asset downloads then I'm all good.

marcono1234

Tip: I would only recommend to uninstall Norton, when reinstalling Minecraft isn't working!!! Mods please change this! I guess payed(monthly) security is more important than a one time payed game!

PLEASE MODS, change the work around description! Else some player could uninstall NORTON and then catch a virus and you would be the person reponsible

migrated

Word to the wise concerning the apparent conflict with antivirus software programs, always have a backup ready to go if you are even thinking of uninstalling or disabling ANY security software for any reason such as that stated above by the Mods.

migrated

I have uninstalled JAVA and Minecraft and reinstalled and continue to get this error. I use Kaspersky and I don't believe anything has changed, this error just started occurring two days ago. What is the resolution.

migrated

You must remove Minecrafts support files as well. On Mac the folder is located in ~/Library/Application Support/minecraft
The only files you would need to save are the world files in saves. Then there are the options file and the server list. I do not know where the server list is stored.

Someone else could help you out with the Windows location.

That should stop this error.

migrated

the windows location is

%appdata%\.minecraft

and it is only the "assets", "libraries", and "versions" folders that you will have to delete under most circumstances

EDIT: useful link for getting a hold of the mods: http://www.reddit.com/r/Mojira/

migrated

I deleted the file recommended from the .minecraft folder and it downloaded new versions. Then when I attempted to get on a multiplayer server I got Game ended with bad state (exit code 1). I deleted versions and tried again and got
Game ended with bad state (exit code 255). Any more suggestions? Thanks.

migrated

This message can be benign although disconcerting. Nothing bad happened despite these logs:
[11:55:01 INFO]: Looking for orphaned versions to clean up...
[11:55:01 FATAL]: Fatal error launching game. Report this to http://bugs.mojang.com please!
java.io.FileNotFoundException: File 'C:\Users*************\Desktop\MCSERVER\New folder\.minecraft\assets\indexes\legacy.json' does not exist
[13:04:18 INFO]: Game ended with no troubles detected (exit code 0)

migrated

I looked in it and I think this file is just a hash index of all the resources in the assets folder. You could delete the assets folder to force an update, but this is a possible workaround and not a fix.

migrated

Got it on newest snapshot (15w32c):

[media]

game still launched though... first "Game Output" entry is at 14:20:20

migrated

Getting this same error on Minecraft Launcher 1.6.13.

What's the solution? It prevents game play. a blocker in IMHO.

migrated

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?

migrated

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]
migrated

@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]

galaxy_2alex

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.

migrated

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