How to Fix Minecraft Exit Code -1
Fix Minecraft exit code -1 (process crashed). Covers Java conflicts, GPU driver issues, mod crashes, and corrupt game files for Java Edition 1.21+.
How to Fix Minecraft Exit Code -1
The Error
Game ended with bad state (exit code -1)
Process crashed with exit code -1
Exit code -1 is a generic crash code that means the Minecraft process terminated abnormally. Unlike specific error codes, -1 does not point to a single cause. It can result from Java issues, GPU driver failures, mod conflicts, or corrupted game files. The key to fixing it is reading the crash report and logs.
Quick Fix
Update your GPU drivers to the latest version from NVIDIA, AMD, or Intel. Then launch Minecraft without mods. If it works, add mods back one at a time to find the conflict.
Step-by-Step Diagnosis
- Find the crash report. Open
.minecraft/crash-reports/and read the most recent file. The top of the crash report contains the exception that caused the exit. If no crash report exists, check.minecraft/logs/latest.loginstead. - Check for Java errors. Look for lines starting with
java.lang.in the crash report. Common ones includeNullPointerException,OutOfMemoryError, andUnsatisfiedLinkError. Each points to a different root cause. - Update GPU drivers. Download the latest drivers directly from your GPU manufacturer's website. Do not rely on Windows Update for GPU drivers. After installing, restart your computer.
- Verify Java installation. Run
java -versionin a terminal. Minecraft 1.21+ needs Java 21. If you have multiple Java versions installed, the launcher might pick the wrong one. Check the launcher profile settings to confirm the Java path. - Remove mods and test. Move the
mods/folder to a backup location and launch vanilla. If the game starts, reintroduce mods in batches of 5 to isolate the conflict. - Reinstall Minecraft. Delete the
versions/folder inside.minecraft/and let the launcher re-download the game files. This fixes corrupted jar files without losing worlds or settings. - Allocate more RAM. In your launcher profile, set JVM arguments to
-Xmx4G. Exit code -1 sometimes masks an underlying OutOfMemoryError.
Common Causes
- Outdated GPU drivers. OpenGL context creation fails silently and the process exits with -1. NVIDIA and AMD release frequent driver updates that fix Minecraft-specific rendering bugs.
- Multiple Java installations. Having Java 8, 17, and 21 installed simultaneously confuses the launcher. Remove old versions or explicitly set the Java path in your launcher profile.
- Incompatible mods. A mod compiled for a different Minecraft version or a different mod loader (Forge vs Fabric) causes an immediate crash. Always match mod versions to your game version exactly.
- Corrupted game files. A failed download or disk error can corrupt the Minecraft jar. Reinstalling the specific version fixes this.
- Antivirus interference. Some antivirus software blocks the Java process from accessing certain native libraries. Add your
.minecraftfolder andjavaw.exeto the antivirus exclusion list.
Version-Specific Notes
Minecraft 1.21+ uses LWJGL 3.3.3+ which requires OpenGL 3.2 or higher. Older integrated GPUs (Intel HD 2000/3000) do not support this and will crash with exit code -1. There is no workaround for unsupported hardware. Check your GPU's OpenGL support with a tool like GPU-Z before troubleshooting further.
FAQ
Is exit code -1 the same as exit code 1?
No. Exit code 1 typically means a handled error (like a missing dependency). Exit code -1 means an unhandled crash or signal termination. They require different diagnostic approaches.
Does exit code -1 damage my world?
If the crash happens during world saving, there is a small risk of chunk corruption. Always keep backups. If your world loads normally after the crash, no damage occurred.
Why does this only happen with shaders?
Shaders push the GPU harder than vanilla rendering. If your GPU drivers are outdated or your GPU does not support the shader pack's required OpenGL version, the renderer crashes. Update drivers or try a lighter shader pack.
Need a server that handles all this? Astroworld Hosting, NVMe SSDs, Pterodactyl panel, DDoS protection on every plan.