Computer

Minecraft Exit Code 1: How to Fix the Game Crashed Error

Minecraft exit code 1, a Minecraft: Java Edition crash fix. Minecraft: Java Edition stopped abnormally. By Java convention any nonzero exit code signals an abnormal end, and the number does not say why. Common causes of crashes: mods or a mod loader that do not match your game version, the wrong Java version, a memory setting that does not suit your PC, and an outdated graphics driver. The crash report or log is where you find out which. 7 fixes, quickest to most involved: start with the crash report or latest.log.
Exit code 1 means Minecraft: Java Edition stopped abnormally, and the number does not say why. Start with the crash report or latest.log.
In this guide
  1. Quick fixes to try first
  2. 1. Read the crash report or latest.log
  3. 2. Remove or update mods that do not match your game
  4. 3. Test with a fresh vanilla installation
  5. 4. Check which Java the game uses
  6. 5. Change the memory allocated to Minecraft
  7. 6. Update your graphics driver
  8. 7. Repair or reinstall the Minecraft Launcher
  9. What causes exit code 1
  10. Still not fixed?
  11. FAQ

Minecraft exit code 1 means Minecraft: Java Edition stopped abnormally: by Java convention any nonzero exit code signals an abnormal end, and the number does not say why. Common causes of crashes are mods or a mod loader that do not match your game version, the wrong Java version, a memory setting that does not suit your PC and an outdated graphics driver, and the crash report or log is where you find out which. The fixes below go from quickest to most involved.

Recreation of the Minecraft Launcher on Windows with a Crash report message over it. Crash report: The game crashed unexpectedly. A report was created to help us fix the issue. Hide details. Description: (left blank). Error: (left blank). Exit code: 1. Download the crash report file. You can also use this file to report the crash manually, on Mojira - Home. Copy Error Message. Share your report to make Minecraft better for everyone. Your data is protected under Microsoft's privacy policy. Always share a crash report. Do not share. Share crash report. Behind it, the launcher shows Player, Microsoft account, HOME, MINECRAFT: JAVA EDITION, MINECRAFT: BEDROCK EDITION, MINECRAFT DUNGEONS II, MINECRAFT DUNGEONS, MINECRAFT LEGENDS, WHAT'S NEW, SETTINGS, the tabs Play, Installations, Realms, Skins and Patch Notes, Latest release 26.3 and PLAY.
The Minecraft Launcher's Crash report message with Exit code: 1 (recreated).

Quick fixes to try first

  • Restart your PC and try again.
  • Close other apps that use a lot of memory or processor time before you press Play.
  • If you just added or updated a mod, remove it and try again.
  • Use a personal PC if you can. Work or school devices may have restrictions that stop Minecraft running properly.

1. Read the crash report or latest.log

The crash report names the actual error, and often the mod behind it.

  1. Press Windows + R, type %appdata%\.minecraft and select OK. You can also open the launcher's Installations tab and select the folder icon next to the installation that crashed.
  2. Open the crash-reports folder. Reports are named by the time of the crash, for example crash-yyyy-mm-dd_hh.mm.ss-client.txt, so open the newest one.
  3. If there is no new crash report, open the logs folder and read latest.log. Older logs are saved as .log.gz files.
  4. If neither shows the crash, look in .minecraft itself for a file named hs_err_pid followed by numbers and .log. That means Java itself crashed. The Minecraft Wiki (a community wiki) says these crashes almost always come from running out of RAM or from very memory or processor heavy activity. Go to fix 5.
Minecraft has crashed. Minecraft has stopped running because it encountered a problem; Exception occured in ModLoader. A full error report has been saved to C:\Users\Nelson\AppData\Roaming\.minecraft\crash-reports\crash-2013-02-10_10.02.07-client.txt
A real Minecraft crash screen from a modded game in 2013. It names the crash report saved in .minecraft\crash-reports, the file fix 1 tells you to read. Image: downloadsource.fr on Flickr, CC BY 2.0.

In the report, read the top section, under ---- Minecraft Crash Report ----, first. Fabric's crash report guide says this holds the main error and a stack trace that can usually point to the mod that caused the crash. The -- System Details -- section further down lists your Java version, the memory given to the game and, on Fabric, every installed mod.

2. Remove or update mods that do not match your game

Mods are among the most common causes of Minecraft crashes, especially a mod built for a different game version or a different mod loader.

  1. Check the Minecraft version and the mod loader (Forge, NeoForge, Fabric or Quilt) of the installation that crashes.
  2. Open %appdata%\.minecraft\mods and move every .jar file to a folder on your desktop.
  3. Launch the game. If it starts, the problem is one of the mods.
  4. Move the mods back one at a time, launching after each, until the crash returns.
  5. Replace that mod with a file made for your exact Minecraft version and your mod loader. Fabric's docs note that most Fabric mods also need Fabric API.

For a CurseForge modpack, CurseForge's exit code 1 guidance is to repair or reinstall the pack if only that pack crashes, and to contact the pack's authors if it still crashes. If every pack and custom profile crashes, CurseForge suggests repairing the installation, updating your graphics driver (fix 6) and testing a custom profile with no mods (fix 3).

3. Test with a fresh vanilla installation

A new installation with default settings shows whether your old installation is the problem.

  1. Open the Minecraft Launcher and sign in with your Microsoft account.
  2. Select Minecraft: Java Edition on the left, then the Installations tab at the top.
  3. Select New installation, enter a name and choose the same game version as the world that crashes.
  4. Select Install and launch it.

If it launches, Minecraft's help says to check the mods or advanced settings, such as JVM arguments, of your old installation. For modded setups, CurseForge suggests a custom profile with no mods. If that still crashes, the problem is the mod loader or the game itself.

4. Check which Java the game uses

The Minecraft Wiki says the game crashes during startup if it runs on the wrong Java version.

  1. In the launcher, open the Installations tab and select the installation.
  2. Select More Options on the Edit installation screen, the same place you change JVM arguments in fix 5.
  3. Find the Java executable field on the edit screen. The Minecraft Wiki says it uses the Java runtime bundled with the launcher by default.
  4. If it points to a Java you installed yourself, compare it with the table below.
Minecraft: Java Edition versionMinimum Java
1.12 to 1.16.5Java 8
1.17 to 1.17.1Java 16
1.18 to 1.20.4Java 17
1.20.5 to 1.21.11Java 21
26.1 and laterJava 25

The table is from the Minecraft Wiki, which notes that the launcher only accepts a custom Java with the same main version as the minimum the game needs.

Minimum Java by Minecraft version. The Minecraft Wiki says the game crashes during startup if it runs on the wrong Java version. Minecraft: Java Edition 1.12 to 1.16.5 needs Java 8; 1.17 to 1.17.1, Java 16; 1.18 to 1.20.4, Java 17; 1.20.5 to 1.21.11, Java 21; 26.1 and later, Java 25. The launcher's Java executable field uses the Java runtime bundled with the launcher by default. The launcher only accepts a custom Java with the same main version as the minimum the game needs. Source: minecraft.wiki (community wiki).
Minimum Java for each Minecraft: Java Edition version, from the Minecraft Wiki.

5. Change the memory allocated to Minecraft

Minecraft's help says memory allocation that does not match your PC's RAM can cause crashes. After 26.1-snapshot-2 the default changed from 2 GB to 4 GB, so a PC with less than 4 GB of RAM needs it set back to 2 GB.

  1. Check your installed RAM in Start > Settings > System > About. On a Mac, use Apple icon > About This Mac.
  2. Open the launcher, select Minecraft: Java Edition, then Installations, and select the installation.
  3. Select More Options. Copy everything in JVM arguments into Notepad and save it as a backup.
  4. Find the memory value, such as -Xmx2G, and change only the number. -Xmx4G gives the game 4 GB.
  5. Select Save and launch.
Recreation of the Minecraft Launcher's Edit installation screen with More Options open. NAME (blank). VERSION (blank) and SERVER. GAME DIRECTORY <Use default directory> and BROWSE. RESOLUTION <auto> by <auto>. LESS OPTIONS. JAVA EXECUTABLE <Use bundled Java runtime> and BROWSE. JVM ARGUMENTS -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1, cut off at the edge of the field. Cancel and Save buttons.
The Edit installation screen with More Options open, showing -Xmx2G in JVM arguments (recreated).

Minecraft's memory allocation article gives 4 GB as the maximum on a 32-bit system and half your RAM as the recommended maximum on a 64-bit one. If the game will not start after the change, check for typos or paste your backup back in.

6. Update your graphics driver

CurseForge lists outdated GPU drivers under exit code 1, and Minecraft's help recommends getting the newest driver straight from the manufacturer.

  1. Go to the website of your graphics card's maker: NVIDIA, AMD or Intel.
  2. Download and install the latest driver for your card.
  3. Restart and launch Minecraft.

If a normal update does not help, our Video TDR Failure guide covers a clean driver reinstall for each brand.

7. Repair or reinstall the Minecraft Launcher

If every installation crashes, including a fresh vanilla one, Minecraft's help suggests a fresh install. Its launcher crash article, written for when the launcher itself crashes or freezes, covers repairing the launcher app and reinstalling it.

  1. Select Start > Settings > Apps > Installed apps.
  2. Select the More icon next to Minecraft Launcher, then Advanced options. Microsoft notes that some apps don't have it. If Minecraft Launcher doesn't, skip to the reinstall below.
  3. Select Repair if it is available. If it is not there or does not help, select Reset.

To reinstall, first back up your worlds by copying %appdata%\.minecraft\saves somewhere safe. Uninstall the launcher, then download it again from minecraft.net or the Microsoft Store. Only delete the .minecraft folder if you have that backup, because it holds your worlds and screenshots and Minecraft support cannot recover deleted files.

What causes exit code 1

A nonzero exit code is Java's general signal that a program ended abnormally, and none of the sources here ties exit code 1 to one cause. The Minecraft Wiki lists mods, bugs, updates, running out of memory and the wrong Java version. Minecraft's help adds a poor memory setting and a corrupt installation, and CurseForge adds outdated graphics drivers. If the game starts but you cannot join a server, that is a connection error rather than a crash: see our guide to the io.netty connection error in Minecraft.

Still not fixed?

  • Modded game: Minecraft Support cannot help with mod issues. Upload the crash report to a paste site and send the link to the mod author, the modpack author, or the developers of your mod loader. Fabric's Discord has a #player-support channel and CurseForge's has #minecraft-support.
  • Vanilla game that still crashes after a fresh installation, a driver update and a launcher repair: contact Minecraft Support through help.minecraft.net, or report the bug on Mojang's bug tracker with the crash report attached.
  • Other games crash too: the problem may be your hardware, such as overheating, rather than Minecraft.

FAQ

Is exit code 1 different from exit code -1?

None of the official pages used for this guide gives either number a separate meaning. Both are nonzero, which Java treats as an abnormal end, so read the crash report and follow the same fixes.

Where are Minecraft crash reports on a Mac?

In ~/Library/Application Support/minecraft/crash-reports. In Finder, press Shift + Command + G, paste the path and press Return. Logs are in the logs folder next to it. On Linux, use ~/.minecraft/crash-reports.

Will reinstalling Minecraft delete my worlds?

Uninstalling the launcher is a separate step from deleting the .minecraft folder, which is where your worlds are. Copy the saves folder before you delete anything.

Written by

TheTechRim Team

Published on TheTechRim in Computer.