mojira.dev
MCL-235

Launcher crashes if ~/.minecraft/launcher.jar exists before initial start

If ~/.minecraft/launcher.jar exists before the initial start (e.g. if you save MinecraftDev.jar to that file), after unpacking files, the launcher will crash with SIGSEGV (more precisely, SIGABRT in ZIP_GetEntry()).

Steps to reproduce:
1. cd ~/.minecraft
2. wget http://s3.amazonaws.com/Minecraft.Download/launcher/MinecraftDev.jar -O launcher.jar
3. java -jar launcher.jar

Attachments

Comments 2

The problem is not that launcher.jar is already existing, but since you have started the bootstrap loader MinecraftDev.jar as launcher.jar, the boostrap loader cannot download and start the launcher and thus overwrite itself while running.

This is working:

cd ~/.minecraft
touch launcher.jar
wget http://s3.amazonaws.com/Minecraft.Download/launcher/MinecraftDev.jar -O MinecraftDev.jar
java -jar MinecraftDev.jar

Yeah some things cannot be fixed, if you do this you break it for yourself 😃

nyuszika7h

(Unassigned)

Unconfirmed

crash

Retrieved