Quick answer: Exception code 0xc0000005 is STATUS_ACCESS_VIOLATION: a thread read, wrote or executed memory it has no access to. The faulting module in the Windows event log says whose code was running, and the address says what kind of pointer was bad. The same module and offset across many players is your bug (a null or dangling pointer); crashes scattered over different modules on one machine point to drivers, overlays or faulty RAM.

A player pastes a block from Event Viewer that ends in 0xc0000005, or your engine’s crash dialog says access violation, and that is all you have. The code alone says little, because every null pointer, freed object, buffer overrun, broken driver and bad memory stick ends up as this one number. The details next to it say much more. This guide goes through where the error appears in each engine, how to read the address and the faulting module, how to sort a pile of reports into “our bug” and “their machine”, the tools that find the cause in your code, and what to tell players in the meantime.

The exact error

Windows records every application crash in Event Viewer > Windows Logs > Application as an Application Error, event ID 1000:

Faulting application name: MyGame.exe, version: 1.2.0.0, time stamp: 0x66f2a1b0
Faulting module name: MyGame.exe, version: 1.2.0.0, time stamp: 0x66f2a1b0
Exception code: 0xc0000005
Fault offset: 0x00000000004a2c18
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\My Game\MyGame.exe
Faulting module path: C:\Program Files (x86)\Steam\steamapps\common\My Game\MyGame.exe

Engines report the same exception in their own words:

Unreal Engine (crash dialog and log):
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000000

Unity (Player.log):
Crash!!!

Godot 4 (console and log):
CrashHandlerException: Program crashed

Before the game window appears:
The application was unable to start correctly (0xc0000005). Click OK to close the application.

The code is the NTSTATUS value STATUS_ACCESS_VIOLATION. A thread tried to read from, write to or execute a virtual address it does not have that kind of access to, and nothing handled the exception. It happens in native code, so in Unity it means the engine, IL2CPP output or a native plugin, never a plain C# NullReferenceException, which is a managed exception and does not crash the process.

What the address tells you

A debugger or the engine’s crash text gives two more facts: the operation (read, write or execute) and the address. Together they usually name the class of bug.

What you seeWhat it means
Reading or writing 0x0000000000000000A null pointer was dereferenced.
A small address such as 0x0000000000000028A member was accessed through a null object pointer. The value is the member’s offset in the class.
0xFFFFFFFFFFFFFFFFOn x64, the address was not canonical (the upper bits were garbage), and Windows reports that as -1. Typical of a freed or overwritten object whose pointer field now holds random data.
An ordinary-looking heap addressUsually use after free, or a read past the end of a buffer into an unmapped page.
Execute violation (DEP)The CPU jumped to memory that is not code: a call through a null or stale function pointer or vtable, or a corrupted return address.
Writing to an address inside a moduleA write to read-only data, such as modifying a string literal.

In WinDbg, .exr -1 prints the exception record with a line such as “Attempt to read from address 0000000000000028”.

What the faulting module tells you

The module is where the CPU was executing when the fault happened. It is the first thing to read in any report.

Faulting moduleLikely owner
Your .exe, GameAssembly.dll, your Unreal game module, a GDExtension or native plugin you shipYour code, or generated code from your scripts.
UnityPlayer.dll, an engine DLLThe engine, often reacting to bad input from your side (a destroyed object, a corrupt asset, a call from the wrong thread).
nvwgf2umx.dll, atidxx64.dll, igd10iumd64.dll and other files under DriverStoreThe GPU driver (NVIDIA, AMD and Intel Direct3D 11 drivers respectively). A driver bug, or your renderer passing it something invalid.
GameOverlayRenderer64.dll, DiscordHook64.dll, RTSSHooks64.dll, an antivirus DLLSoftware injected into your process: the Steam overlay, the Discord overlay, RivaTuner Statistics Server, a security product.
ntdll.dll, KERNELBASE.dll, ucrtbase.dllWhere the damage was noticed, not where it was done. Heap corruption surfaces here at a later, unrelated allocation or free.
unknownExecution was outside every loaded module: a jump through a bad pointer, or code in a DLL that had been unloaded.

What causes it

On the developer’s side, most common first:

  1. Null and dangling pointers. An object destroyed while something still points to it: an actor removed mid-frame in Unreal, a native handle kept after its owner was freed, a callback firing after shutdown began.
  2. Native plugin and interop mistakes. A P/Invoke signature whose struct layout or calling convention does not match the C side, a managed buffer passed to native code without being pinned, a plugin built against a different SDK version.
  3. Buffer overruns. Writing past an array corrupts whatever is next. The crash arrives later, somewhere else, often in ntdll.dll.
  4. Threading. One thread frees or resizes a container while another iterates it. These crash at different offsets from run to run but always in the same subsystem.
  5. Calling into a GPU API with dead resources. Using a texture or buffer after release tends to crash inside the driver module.

On the player’s side:

  1. A broken or outdated graphics driver.
  2. Overlays and injected tools whose hooks do not match your renderer or your game’s update.
  3. Unstable memory. An overclock or an XMP/EXPO memory profile the machine cannot hold, or a failing RAM stick, flips bits at random. The signature is crashes in a different module at a different address every time, and other games crashing too.
  4. A corrupted install or antivirus interference with one of your files.

How to sort many reports

One report tells you little. Fifty tell you nearly everything, before any debugger is opened. Collect the faulting module, the fault offset and your build version from each report and group them.

An offset only compares within one build of one module, so always record the version next to it.

Getting a stack

When the module is yours, you need the call stack. The engines keep their own crash folders (see where Unity crash logs are and the Unreal access violation guide). For anything else, Windows can write a minidump for you through a registry key, described in how to collect crash dumps with WER LocalDumps. Open the .dmp in WinDbg with the symbols for that exact build:

.symfix
.sympath+ C:\builds\1.2.0\symbols
.reload
!analyze -v
.ecxr
k

!analyze -v summarises the exception, .ecxr switches to the faulting context and k prints the stack. How to read minidump files covers the rest. Keep the PDBs of every build you ship; without them the dump is a list of numbers.

Finding the bug in your code

A crash that happens at the point of the mistake is easy. The hard ones crash long after it. Two tools move the crash back to the mistake.

Page heap. Part of the Debugging Tools for Windows. Full page heap puts each allocation at the end of its own page with an inaccessible zone after it, so an overrun or a use after free faults immediately, at the guilty instruction:

gflags /p /enable MyGame.exe /full
rem run the game under a debugger and reproduce, then:
gflags /p /disable MyGame.exe

It only watches allocations that go through the Windows heap. Engines with their own allocators need their equivalent: Unreal has the -stompmalloc command-line option in builds that include the stomp allocator.

AddressSanitizer. MSVC supports it with /fsanitize=address (Visual Studio 2019 16.9 and later). It catches heap, stack and global overflows and use after free, with a report naming both the bad access and the allocation. Use it on your native plugins and your own C++ code in test builds.

Then the engine-specific habits. In Unreal, hold object references in UPROPERTY fields or weak pointers and test with IsValid() before use. In Unity, compare every DllImport signature against the header, and never keep a pointer to managed memory past the call unless it is pinned. In a Godot GDExtension, do not cache raw pointers to nodes across frames; check is_instance_valid() on the script side.

The startup variant

“The application was unable to start correctly (0xc0000005)” is the same exception raised while the process was still initialising, before your entry point ran. Something that loads into the process early crashed: a DLL’s initialisation code, an injected security or overlay DLL, or a damaged file. Treat it like the other loader failures: verify the files, start with overlays and antivirus disabled, and compare with the steps for error 0xc0000142, which fails at the same stage for a neighbouring reason.

What to tell players

  1. Verify the game files (Steam: Properties > Installed Files > Verify integrity of game files).
  2. Update the graphics driver from the NVIDIA, AMD or Intel site, with a clean installation if the installer offers it.
  3. Turn off overlays and monitoring tools for one run: Steam overlay, Discord overlay, MSI Afterburner and RivaTuner, the NVIDIA overlay, recording software.
  4. If the PC is overclocked or uses an XMP or EXPO memory profile, return to default settings in the BIOS and test again. If other games also crash at random, run Windows Memory Diagnostic (Win + R, mdsched).
  5. Add the game folder to the antivirus exclusions.
  6. Send the Application Error text from Event Viewer, and a DxDiag report.

Ask for step 6 even when a workaround helped. The faulting module in that text is what tells you whether the next patch needs to change.

How to confirm the fix

For a bug in your code, reproduce it under page heap or AddressSanitizer before the fix and run the same steps after it; a clean pass under the tool is stronger evidence than “it did not crash this time”. After release, watch the grouped signature (module plus offset range for the function) in the new build. It should stop appearing, while the scattered single-machine crashes continue at their usual background level. For driver crashes, test on each GPU vendor with the current driver and with one a year old.

Where Bugnet fits

Bugnet does not capture native crashes as stack traces and does not process minidumps, so it will not replace the dump workflow above. It supplies the grouping data around it. Every report, automatic or player-written, carries OS version, CPU, GPU, RAM and game version, which is what you need to see that the access violations cluster on one GPU vendor or began with one build. The Unreal SDK hooks FCoreDelegates::OnHandleSystemError, so when the engine’s own error handler runs, the report contains the engine’s message (the EXCEPTION_ACCESS_VIOLATION line) and the recent log lines. In Unity, the managed exceptions that often precede a native crash are filed with their stack traces. A session that dies to a native crash the SDK never saw is not counted as crashed in the crash-free session rate, so do not read a high rate as proof these crashes are rare. A public tracker entry can carry the player steps.

Frequently asked questions

What does exception code 0xc0000005 mean?

It is STATUS_ACCESS_VIOLATION. A thread in the program tried to read, write or execute a memory address it has no access to, and the exception was not handled, so Windows closed the program. It is the Windows equivalent of a segmentation fault.

Is 0xc0000005 caused by my game or by the player’s PC?

Either. If many players crash in the same module at the same offset in one build, it is a bug in that code. If one player crashes in a different module every time, and other software crashes too, suspect unstable RAM, an overclock, drivers or injected overlays on that machine.

Why is the faulting module ntdll.dll?

The crash was detected inside Windows code, usually the heap manager, while it processed memory your program had already damaged. The real mistake is an earlier buffer overrun or use after free. Run the game with full page heap or AddressSanitizer to make it fault at the instruction that causes the damage.

What does reading address 0xFFFFFFFFFFFFFFFF mean?

On 64-bit Windows it means the pointer was not a valid canonical address, so the system reports the address as minus one. It usually indicates a pointer read from freed or overwritten memory rather than a null pointer.

Can faulty RAM cause access violation crashes?

Yes. Bad memory or an unstable overclock or memory profile flips bits in pointers and code, which produces access violations at random addresses in unrelated modules. Resetting BIOS settings to defaults and running a memory test confirms or rules it out.

Read the faulting module and offset before anything else, and always group them by build. The same pair on fifty machines is your bug; fifty different pairs on one machine is that machine.