Minecraft Crashing Nonstop? Fix Java and Bedrock Crashes in 1.21+

Minecraft Crashing Nonstop? Fix Java and Bedrock Crashes in 1.21+

If Minecraft keeps crashing at launch or while loading a world, start by backing up your saves, then test a clean game installation with mods, shaders, and add-ons turned off. Check the crash report or latest log before changing memory or Java. An exit code by itself rarely identifies the cause, and deleting the entire game folder can erase worlds along with settings.

This guide covers Minecraft: Java Edition and Bedrock Edition. Their files and fixes differ, so first note your edition, exact game version, device, and when the crash happens. Mojang changed Minecraft version numbering to year-based releases in 2026; Java and Bedrock builds now use 26.x numbers. Match mods and runtime settings to the version shown in your launcher, whether it is 1.21 or a newer release. See Minecraft’s version-numbering explanation.

What kind of Minecraft crash are you seeing?

SymptomFirst thing to check
Java Edition closes as soon as you press PlayTest a fresh installation and check the launch log for a loader, runtime, or configuration error.
The game crashes while loading a modded worldDisable mods, shaders, and resource packs, then confirm each one supports your exact game version and mod loader.
The game reports an out-of-memory errorCheck system RAM and the JVM memory setting; adding more memory is not always the answer.
Bedrock crashes when a world opensBack up the world, then test with its resource and behavior packs disabled.
You return to the menu after a multiplayer disconnectTest single-player and another server. A disconnect without the game closing is usually a connection or server issue, not a client crash.
Your computer freezes or restartsCheck system stability, graphics drivers, and temperatures. A Minecraft exit code alone cannot diagnose a full-device failure.

Exit Code 1 is a broad Java launch-failure signal, not a specific fix. An hs_err_pid file records a Java virtual-machine crash, but it is evidence to inspect rather than proof of one particular hardware fault.

How to fix Minecraft crashing: an eight-step checklist

1. Back up your worlds before troubleshooting

Close the game before copying or moving files. In Java Edition, make a world backup from the game’s world menu or copy the relevant world from the saves folder to a separate location. The standard game folder is %appdata%\.minecraft on Windows, ~/Library/Application Support/minecraft on macOS, and ~/.minecraft on Linux, though a custom launcher may use a different directory. For Bedrock, use the world’s copy or export options where available and confirm the backup is accessible before repairing or reinstalling. Minecraft provides a Java world backup guide.

2. Find the crash report or latest log

For Java Edition, look in the game directory’s crash-reports folder for a report created at the time of the crash. If no report exists, open logs/latest.log. For a modpack or third-party launcher, use that instance’s own game directory. The Fabric log guide documents the standard paths and explains how crash reports differ from regular logs.

Search near the end of the file for the first error or exception and note the named mod, library, or driver if one appears. Do not treat the final line as the cause automatically. Before sharing a log publicly, review it for account names, local file paths, or other personal details.

3. Test a clean Java installation

In the official Minecraft Launcher, open Minecraft: Java Edition, select Installations, and create a new installation using the same release as the affected world. Leave its settings at their defaults and launch without mods or custom arguments. This test keeps the existing profile available. If the clean installation works, the cause is more likely in the old profile’s settings, mods, shaders, or files than in the world itself. Follow Minecraft’s new-installation troubleshooting steps.

4. Isolate mods, shaders, and add-ons

If vanilla launches but a modified game crashes, close Minecraft and temporarily move mod files out of that instance’s mods folder; do not delete the originals. Check that the game version, loader, and every mod version match. Restore the files in small groups until the crash returns, then narrow down the incompatible item. Test without shaders and custom resource packs too, since a renderer or pack can fail even when the base game runs.

For Bedrock, back up the world and disable its resource packs or behavior packs one at a time. If the crash stops, update or remove the pack that triggers it. Minecraft’s Bedrock add-on troubleshooting guide recommends this kind of isolation.

5. Check Java and memory settings without guessing

The official Minecraft Launcher normally supplies the Java runtime required by the selected Java Edition release. Avoid installing a random Java version or forcing a global runtime as a first fix. If you use a third-party launcher or manually selected Java executable, match it to the game: Java Edition 1.20.5 moved to Java 21, while 26.1 moved to Java 25. Mojang’s 1.20.5 release notes and 26.1 release notes document those changes and the included runtimes.

Only adjust memory when the log points to an allocation problem or the game has clear memory-related symptoms. Minecraft 26.1 uses a 4 GB default allocation in the official setup; a computer with 4 GB of total RAM or less may need a lower allocation, such as 2 GB. Keep the original JVM arguments so you can restore them, and avoid assigning most of the computer’s RAM to the game. See Minecraft’s current memory-allocation troubleshooting instructions before editing JVM arguments.

6. Update graphics software and reduce rendering load

Install available operating-system updates and graphics drivers from the computer or GPU manufacturer’s official support channel, then restart. Temporarily turn off shaders, overlays, recording tools, and other software that hooks into the game. Lower render distance and graphics settings to see whether the crash is tied to rendering load. Mojang’s Java graphics troubleshooting guide also recommends checking system updates, drivers, mods, and connected input devices.

7. Repair the launcher before reinstalling

If the launcher itself freezes or fails before Minecraft opens, try creating a clean game installation first. On Windows, open Settings > Apps > Installed apps, select Minecraft Launcher, open Advanced options if available, and choose Repair. Microsoft notes that repair options vary by app; try Reset only if Repair is unavailable or does not help. If you reinstall, use the official launcher download and keep your world backup safe. Do not delete the whole .minecraft folder as a routine first step. See Microsoft’s Windows repair instructions and Minecraft’s launcher crash guide.

8. Use the Bedrock-specific path when Java fixes do not apply

Bedrock Edition does not use Java, JVM arguments, or the Java mods folder. Update Minecraft through the store or platform where it was installed, restart the device, and test a different world. If one world triggers the crash, work from a copy and disable its add-ons or resource packs. On Windows, try the app’s Repair option before Reset or reinstalling; on console and mobile, confirm that the world is backed up or synced before removing the app. Minecraft has separate Bedrock performance guidance.

When the crash is really a server disconnect

If Minecraft stays open and only drops you from a Realm or server, focus on the connection: try another world or server, restart your router and device, and ask whether other players are affected. Avoid deleting game files or changing Java memory for a problem that does not close the client. If single-player also crashes, return to the checklist and compare its log with the time of the failure.

Frequently asked questions

Should I install Java 21 to fix Exit Code 1?

Not automatically. The official launcher includes the runtime selected for its game version. Java 21 is relevant to versions such as 1.21, while Java 26.1 uses Java 25. First check the launcher configuration and the crash log; an exit code alone does not prove that Java is missing or outdated.

Will reinstalling Minecraft delete my worlds?

It depends on the edition, platform, and which files are removed. Back up or export worlds first, and do not delete the whole game-data folder unless you have verified the backup.

What should I send to support?

Include the edition, exact game version, device and operating system, what action triggers the crash, whether it happens in a clean installation, and the matching crash report or latest log. Remove personal information from the file before posting it.

Leave a Comment

Best Warzone Telemetry Overlay Settings for Ping and Packet Loss

Best Warzone Telemetry Overlay Settings for Ping and Packet Loss

Enable Server Latency and Packet Loss in Warzone to monitor connection quality, read the overlay, and use recurring spikes to guide troubleshooting.

Master Mid Lane Roaming: How to Carry in League of Legends

Master Mid Lane Roaming: How to Carry in League of Legends

Learn how to carry from mid lane in League of Legends by setting up waves, choosing safe roam windows, reading side lanes, and converting pressure into objectives.

How to Fix the Minecraft Evoker Spell Error in Modded Worlds

How to Fix the Minecraft Evoker Spell Error in Modded Worlds

Fix Minecraft Evoker spell problems with a safe vanilla test, version checks, log review, and a step-by-step way to isolate mod or datapack conflicts.

How to Fix PUBG Stuck on “Initializing” on Steam

How to Fix PUBG Stuck on “Initializing” on Steam

Fix PUBG stuck on Initializing on Steam with a focused checklist for PC service notices, launch options, game files, downloads, and connection issues.

How to Fix Brawl Stars Stuck at 92% Loading

How to Fix Brawl Stars Stuck at 92% Loading

Fix Brawl Stars stuck at 92% loading with an ordered checklist for service notices, network tests, safe updates, Android cache, and account-safe reinstalling.

Best Dead by Daylight Visual Filter Settings for Spotting Survivors in Dark Maps

Best Dead by Daylight Visual Filter Settings for Spotting Survivors in Dark Maps

Best Dead by Daylight visual filter settings start with a small Gamma lift, neutral color and contrast, and a quick check for dark corners, fog, and bright lights.

How to Enable Launch Options for Autoexec in Apex Legends

How to Enable Launch Options for Autoexec in Apex Legends

Find the Steam and EA app fields for Apex Legends launch options, use EA’s documented FPS command, and see why +exec autoexec.cfg remains unverified.

How to Reduce Input Lag on a Docked Nintendo Switch for Smash Ultimate

How to Reduce Input Lag on a Docked Nintendo Switch for Smash Ultimate

Reduce input lag on a Nintendo Switch dock for Smash Ultimate with TV Game Mode, a direct HDMI test, controller checks, and online-latency troubleshooting.

Best Audio Settings to Hear the Referee Whistle Clearly in EA SPORTS FC

Best Audio Settings to Hear the Referee Whistle Clearly in EA SPORTS FC

Find the best EA SPORTS FC audio settings for a clearer referee whistle: tune Stadium Ambience and Commentary, then troubleshoot output or timing issues.

Best Attack Move Click Keybinds in League of Legends: Which Fits You?

Best Attack Move Click Keybinds in League of Legends: Which Fits You?

Compare the best Attack Move Click keybinds in League of Legends—A, Shift + right-click, mouse side buttons, and left-click—with setup and kiting tips.