7 min read

Fix an "EXCEPTION_ACCESS_VIOLATION" Minecraft Crash

Read the hs_err_pid log's Problematic frame to find the faulting .dll, then fix the GPU driver, OptiFine, or Java build behind the crash.

Fix an "EXCEPTION_ACCESS_VIOLATION" Minecraft Crash

EXCEPTION_ACCESS_VIOLATION is a native crash, not a normal Minecraft error you can dismiss and retry. The game (usually through your GPU driver, or a native mod like OptiFine) tried to read or write memory it doesn't own, so the JVM gives up on the spot and writes a fatal log named hs_err_pid<number>.log. The fastest way to fix it is to open that log, find the line that starts with # Problematic frame:, and read which .dll it names. A graphics-driver .dll (nvoglv64.dll, ig9icd64.dll, atio6axx.dll) means update or reinstall your GPU driver. An OpenGL hook or a mod means remove OptiFine and any native-heavy mods and test. A jvm.dll frame means swap your Java build. What it almost never is: a corrupted world, and almost never a low-RAM problem, so don't burn time throwing memory at it.

Read the crash: find the Problematic frame

The crash writes a HotSpot JVM log, and that log tells you exactly what faulted. Look for a file named hs_err_pid12345.log (the number is the process ID) in your .minecraft folder or the directory the launcher started Java from. The launcher's game output pane also prints the full path the moment it crashes, and logs/latest.log will show the last thing the game did before it died.

Open the log in any text editor. The top reads:

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) ...

An access violation means the process reached into memory it wasn't allowed to touch. That's a native fault, not a Java exception, which is why the game can't recover and just closes.

Scroll a few lines down to the part that actually matters:

# Problematic frame:
# C  [nvoglv64.dll+0x8f3a21]

The letter in front of the module is the frame type:

  • C = a native C/C++ frame, i.e. a driver or a native library. This is the common one.
  • V = the JVM itself (jvm.dll).
  • j or J = actual Java code.

Then read the module name and map it to the culprit:

  • nvoglv64.dll — NVIDIA's OpenGL driver
  • ig9icd64.dll / ig75icd64.dll — Intel integrated GPU OpenGL driver
  • atio6axx.dll — AMD's OpenGL driver
  • awt.dll / jvm.dll — Java runtime internals

The exact .dll depends on your machine, so read your own line rather than assuming it'll be one of these. But it's a GPU driver more often than not, and that's where I'd start.

When it's your GPU driver (the usual culprit)

If the Problematic frame names nvoglv64.dll, ig9icd64.dll, atio6axx.dll, or anything that looks like a graphics module, your driver is faulting on the OpenGL path Minecraft uses to render. This happens with stale drivers, and it also happens with brand-new beta drivers that shipped a regression, so "newest possible" isn't always the answer, though updating usually is.

Grab the driver straight from the vendor, not from Windows Update:

  • NVIDIA: the NVIDIA app (formerly GeForce Experience) or a manual download from nvidia.com.
  • AMD: AMD Software: Adrenalin Edition, or amd.com.
  • Intel: the Intel Driver & Support Assistant.

Install it, reboot, and launch the game again. If the crash survives a clean update, do a clean reinstall: uninstall the driver (DDU, Display Driver Uninstaller, is the tool people reach for) and install fresh. That's an advanced step and you don't need it in most cases, but it clears out a half-broken driver install that a normal update just paints over. Keeping drivers current also happens to be one of the fixes for choppy framerate that only shows up online, so it's worth doing regardless.

When it's OptiFine or a native mod

OptiFine is a common trigger for this crash because it hooks deep into the OpenGL render path, exactly where a shaky driver is already prone to fault. If your Problematic frame points at a GPU .dll and you're running OptiFine, disable or remove it and test before you touch anything else. Pull it out of your mods folder (or delete the OptiFine installation profile) and launch.

If the crash goes away, OptiFine plus your driver were the bad pairing. On Fabric, Sodium and Iris cover most of what people want OptiFine for, and they're far less prone to this kind of native fault. Whatever OptiFine build you're on, keep the advice edition-agnostic: OptiFine's support for a fresh Minecraft release trails Mojang by a while, so on a recent version it may simply not be ready yet.

Native-heavy mods can fault the same way if they bundle their own .dll or native libraries. The clean way to isolate this is to launch plain Vanilla on the same version, with no mods at all. If Vanilla runs fine, a mod is involved, and you can add them back in batches until it crashes again.

Swap or update your Java build

If the Problematic frame is a V frame naming jvm.dll, the crash is inside the Java runtime rather than a driver. The launcher ships its own Java (a Microsoft OpenJDK build, set per-installation), and now and then a specific runtime build doesn't get along with a specific machine.

In the official launcher, go to the Installations tab, open the three-dots menu (⋮) on your installation, and choose Edit → More Options. Set the Java Executable field to the javaw.exe from a different vendor build, like Adoptium Temurin or Azul Zulu. Point it at a 64-bit build and only a 64-bit build; 32-bit Java is the old gotcha that causes more crashes than it fixes. Save, then launch and test. Updating rather than swapping is fine too if you just want the newest runtime of the same vendor.

Isolate the cause fast

If you don't want to read the log line by line, work through it in this order and you'll corner it quickly:

  1. Launch plain Vanilla on the same version, with no mods. Crashes here point at driver or Java, not mods.
  2. Update your GPU driver from the vendor, reboot, retest.
  3. Remove OptiFine, then add other mods back in batches to find the offender.
  4. Swap your Java build if the frame was jvm.dll.

One thing to rule out up front: this is not a memory-allocation problem. An access violation is a native fault, so raising -Xmx does nothing here, and I'd leave your allocation alone. That's a different failure mode from the heap-pressure symptoms covered in how to allocate more RAM to the Java client — if the F3 Mem: line isn't pinned near 100%, RAM isn't your problem. Keeping your client and mods on the same version also avoids a whole separate class of startup crashes, which is the point of updating cleanly to 26.2.

FAQ

Is EXCEPTION_ACCESS_VIOLATION a virus or a corrupted game?

No. It's a native memory fault, overwhelmingly from a graphics driver or a native mod hook, not malware and not damaged game files. You rarely need to reinstall Minecraft to fix it, and reinstalling the driver is far more likely to help than reinstalling the game.

What if the Problematic frame is a j frame or doesn't name a .dll at all?

A j or J frame means the fault surfaced in Java code, which usually points back at a mod rather than a driver, so start the Vanilla-vs-modded test. If the frame is blank, garbled, or just says [unknown], the stack was too corrupted to resolve — scroll down to the Registers and Native frames section, or just fall back to the isolate-the-cause order: Vanilla first, then driver, then mods.

It crashes on my server but not in singleplayer — is this the same bug?

Not necessarily. A native EXCEPTION_ACCESS_VIOLATION is client-side and its cause is the same wherever you play, but if the game closes only when you connect to a specific server, that's more likely a server-side or connection issue. Compare against why a server keeps crashing to tell the two apart.