Launcher erases invalid profile directories
Affected version: 2.0.757 (Windows)
The bug
The launcher erases the profile directory if it does not exist. The expected behavior is that it leaves the set directory untouched and shows an error when you try to start Minecraft.
Note: The launcher accepts valid file paths however even though it cannot launch because it requires a folder path.
How to reproduce
- Start creating a new profile
- Enter an invalid profile directory
- Save the profile and open the editing window
→ You will see that the profile directory is empty
Linked Issues
Created Issue:
Launcher erases invalid profile directories
Affected version: 2.0.757 (Windows)
The bug
The launcher erases the profile directory if it does not exist. The expected behavior is that it leaves the set directory untouched and shows an error when you try to start Minecraft.
Note: The launcher accepts valid file paths however even though it cannot launch because it requires a folder path.
How to reproduce
- Start creating a new profile
- Enter an invalid profile directory
- Save the profile and open the editing window
→ You will see that the profile directory is empty
Linked Issues
is duplicated by
is duplicated by
Affected version: 2.0.757 (Windows)
The bug
The launcher passes malformed start arguments to Minecraft when you leave the profile directory empty. Such an empty profile directory value can be created using MCL-5440.
The passed arguments are invalid because Minecraft fails loading the assets and instead creates an folder called -assetsDir (which is the argument key for the assets folder name) in the %appdata%\.minecraft folder.
Additionally the launcher prints a malformed log:
[0123/125946:INFO:GameCallbacks.cpp(161)] game/game () error Completely ignored arguments: [C:/Users\###\AppData\Roaming\.minecraft/assets]
<log4j:Event logger="bzn" timestamp="1485172786913" level="ERROR" thread="Client thread">
<log4j:Message><![CDATA[Can't find the resource index file: --assetsDir\assets\indexes\1.11.json]]></log4j:Message>
</log4j:Event>
[0123/125946:INFO:GameCallbacks.cpp(161)] launcher/monitor (Process Monitor) error expected <
And the Game Output window seems to handle that many log line very bad while they are being printed. Only updating when you click somewhere.
How to reproduce
Important: This creates malformed folders and might corrupt files in the %appdata%\.minecraft folder.
- Use
MCL-5440to get a profile with an empty profile directory - Start Minecraft with this profile
This is the wrong project, MCL (Minecraft Launcher) would have been correct.
Fixed since MCL-5440 is also resolved.
Seems to be "fixed" in 2.0.934; the launcher now converts invalid inputs like asf#asf,clVMDS;DAS#ä+# to C:/Users\<user>\AppData\Roaming\.minecraft\asf#asf,clVMDS;DAS#ä+#.