Quick answer: 0xe06d7363 is the code the Microsoft C++ runtime uses for every C++ throw. In a crash entry it means a C++ exception was thrown and nothing caught it. The faulting module is usually KERNELBASE.dll because RaiseException lives there, so the module and offset tell you nothing about the cause. Open a dump in Visual Studio or WinDbg to read the exception’s type (for example std::bad_alloc or std::out_of_range) and the function that threw it.
A crash report says exception code 0xe06d7363 in KERNELBASE.dll, and searching the number returns pages about reinstalling Windows components. None of that applies. The code is a label for “a C++ exception”, the same way a courier’s logo on a box says nothing about the contents. This guide explains where the number comes from, why the same bug sometimes appears under a different code, how to get the real exception type out of a dump, the causes that are common in games, and the changes that make the next one diagnosable.
- The exact error
- What the code means
- Why the same bug can show a different code
- How to find the real exception type
- Common real causes in games
- Catch at boundaries, and log what was thrown
- Validate what you read
- What to ask players, and what they can try
- Where Bugnet fits
- Related guides
- Frequently asked questions
The exact error
In Event Viewer > Windows Logs > Application, source Application Error, event ID 1000:
Faulting application name: MyGame.exe, version: 1.2.0.0, time stamp: 0x66f2a1b0
Faulting module name: KERNELBASE.dll, version: 10.0.26100.2454, time stamp: 0x5f3f7a3c
Exception code: 0xe06d7363
Fault offset: 0x000000000005fabc
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\My Game\MyGame.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
In Visual Studio, live or when you open a dump:
Unhandled exception at 0x00007FFB18C5FABC (KERNELBASE.dll) in MyGame.exe: Microsoft C++ exception: std::out_of_range at memory location 0x000000D3F1AFF5B0.
In WinDbg:
(2f14.3a08): C++ EH exception - code e06d7363 (first chance)
The version, time stamp, addresses and offset above are examples and change with each Windows update. The code and the module name are the fixed parts.
What the code means
Windows has one exception mechanism for everything, called structured exception handling. Access violations, stack overflows and breakpoints travel through it, each with a 32-bit code. The Microsoft C++ compiler builds C++ exceptions on top of the same mechanism: throw compiles to a call to _CxxThrowException in the C++ runtime, which calls the Windows function RaiseException with the code 0xE06D7363. The low three bytes, 6D 73 63, are the ASCII characters “msc”.
That has three practical consequences.
KERNELBASE.dllis the messenger.RaiseExceptionis implemented there, so that is where the CPU was when the exception was raised. The module is not damaged and does not need repair.- The fault offset is the same for every C++ exception. For other crash codes, grouping reports by module and offset separates one bug from another. Here every thrown exception, whatever its type and wherever it came from, reports the same offset inside
RaiseExceptionfor a given Windows build. Fifty identical-looking entries can be fifty different bugs. - A first-chance 0xe06d7363 in a debugger is normal. Any exception that is thrown and caught produces one. Only an exception that reaches the top of a thread with no handler ends the process.
The exception record carries the useful information as parameters: a pointer to the thrown object and a pointer to compiler-generated type information. A debugger with the dump can read both. The event log keeps neither.
Why the same bug can show a different code
An uncaught C++ exception does not always appear as 0xe06d7363. In a program built with the Microsoft toolchain, the C runtime installs an unhandled-exception filter that recognizes this code and calls std::terminate. The default terminate handler calls abort, and abort ends the process with a fast-fail. Event Viewer then shows:
Faulting module name: ucrtbase.dll
Exception code: 0xc0000409
That is an uncaught C++ exception too, one step later. The same signature appears when an exception leaves a noexcept function or escapes a destructor during unwinding, since both call std::terminate directly. The 0xc0000409 code is shared with real stack buffer overruns; How to Fix “Unhandled exception code 0xc0000409” (Stack Buffer Overrun) Crashes in Games covers telling them apart.
You see the original 0xe06d7363 in KERNELBASE.dll when something other than that filter owns the process’s unhandled-exception handling: an engine’s crash handler, a crash-reporting library, or a host executable you did not build (a native plugin throwing inside a Unity player, for instance). Treat the two signatures as one family when you count reports.
A related code is 0xe0434352, which the .NET runtime uses for managed exceptions (its low bytes spell “CCR”). It also shows KERNELBASE.dll as the faulting module. For a .NET program, look in the same Application log for an entry from the source .NET Runtime at the same time; it contains the managed exception type and stack trace.
How to find the real exception type
You need a dump. Engine crash folders contain one, and for anything else Windows can be told to write one, as described in How to Collect Windows Crash Dumps From Players With WER LocalDumps.
Visual Studio
Open the .dmp file with File > Open > File, set the symbol path to the PDBs of that build, and choose Debug with Native Only. The exception dialog names the type in the sentence shown above (“Microsoft C++ exception: std::out_of_range at memory location ...”), and the Call Stack window shows who threw it. This is the quickest route.
WinDbg
.symfix
.sympath+ C:\builds\1.2.0\symbols
.reload
!analyze -v
.exr -1
.ecxr
k
.exr -1 prints the exception record. For this code it shows ExceptionCode: e06d7363 (C++ EH exception) and the parameters; current WinDbg versions label the second and third as pExceptionObject and _s_ThrowInfo. .ecxr followed by k prints the stack of the throwing thread:
00 KERNELBASE!RaiseException
01 VCRUNTIME140!_CxxThrowException
02 MSVCP140!std::_Xout_of_range
03 MyGame!Inventory::GetSlot
04 MyGame!HudPanel::Refresh
...
Read upward from _CxxThrowException. The frame directly below it in this listing (frame 02) is the code that executed throw, and for standard library exceptions its name gives the type away: the Microsoft library throws through helpers with names such as std::_Xout_of_range, std::_Xlength_error and std::_Xinvalid_argument. The first frame in your own module (frame 03) is the call you need to fix or guard.
When the thrower is a third-party library and the name is not obvious, the type can be decoded from the record by hand. The third parameter points to a ThrowInfo structure that leads, through a few levels of indirection, to a decorated type name such as .?AVbad_alloc@std@@. On 64-bit Windows the values along the way are offsets from the module base passed as the fourth parameter. Raymond Chen’s “Decoding the parameters of a thrown C++ exception” posts on The Old New Thing walk through it step by step.
For types derived from std::exception, the message is one command away once symbols are loaded. Pass the object address from pExceptionObject:
dt -r1 std::exception 0x000000d3f1aff5b0
The _Data member holds _What, the string that what() returns. This works for plain exception classes; for types with multiple inheritance the object pointer may need adjusting, and Visual Studio handles that for you.
Common real causes in games
| Exception type | Message with Microsoft’s library | Usual cause in a game |
|---|---|---|
std::bad_alloc | bad allocation | Out of memory, a 32-bit build out of address space, or an allocation size computed from corrupt data |
std::length_error | vector too long, string too long | A negative or garbage count read from a file and passed to resize() or reserve() |
std::out_of_range | invalid vector subscript | at() with an index from stale state or from a save made by another version; map::at() with a missing key |
std::invalid_argument or std::out_of_range from number parsing | invalid stoi argument for text that is not a number | std::stoi, std::stof and relatives on a config value that is empty, not a number, or too large for the target type |
std::filesystem::filesystem_error | Names the operation and the path | The throwing overloads of file_size, create_directories, copy_file, directory_iterator on a missing, locked or protected path |
std::system_error | The text of the underlying Windows error, for example “No mapping for the Unicode character exists in the target multi-byte code page.” | path::string() on a path with characters the system code page cannot represent; a thread or mutex operation that failed |
std::bad_function_call | bad function call | Calling an empty std::function, typically a callback that was never set |
| A library’s own type | Depends on the library | A JSON, XML or image library rejecting a truncated or corrupted file; with nlohmann/json, json::parse_error and json::type_error |
The pattern across the table: most of these are thrown while reading something the game did not create a moment ago. Save files written by an older version, config files edited by hand, files cut short by a full disk or a crash during saving, and paths that contain a user name in a script the code never met.
The path case deserves a specific warning because it affects whole regions of players. On Windows, std::filesystem::path stores wide characters. Calling .string() converts to the system’s narrow code page, and Microsoft’s implementation throws std::system_error when a character has no representation there. A game that builds its save path from the user’s profile folder and calls .string() works for every tester and throws at startup for a player whose Windows user name is written in Cyrillic, Chinese or Arabic on a machine with a different system code page.
Other sources worth knowing:
- Threads. An exception that escapes the function passed to
std::threadcallsstd::terminate. Code that is safe on the main thread, because the main loop has atryblock, is not safe on a worker without one. - Unity IL2CPP. IL2CPP implements C# exceptions with C++ exceptions, so a debugger attached to an IL2CPP player shows first-chance 0xe06d7363 events (type
Il2CppExceptionWrapper) for ordinary, handled C# exceptions. Those are not crashes. A crash with this code in a Unity player more often comes from a native plugin. - Injected DLLs. Overlays and capture tools run inside your process, and an exception they fail to catch is reported under your executable’s name. The stack in the dump shows their module above
_CxxThrowException.
Catch at boundaries, and log what was thrown
Catching every exception everywhere hides bugs. Catching at a few boundaries, where you can do something sensible, turns a crash into an error message. The boundaries in a game are: loading a level or save, parsing any external file, each iteration of a job or worker thread, and callbacks that C code calls into (an exception must never propagate through a C library’s frames).
bool TryLoadLevel(const std::string& name)
{
try
{
LoadLevel(name);
return true;
}
catch (const std::exception& e)
{
std::fprintf(stderr, "Level '%s' failed to load: %s\n", name.c_str(), e.what());
return false;
}
}
For everything that still escapes, install a terminate handler that writes the exception’s message to your log before the process dies. When the C runtime’s filter handles the uncaught exception, std::current_exception() is available inside the handler:
#include <cstdio>
#include <cstdlib>
#include <exception>
void LogAndAbort()
{
if (std::exception_ptr current = std::current_exception())
{
try
{
std::rethrow_exception(current);
}
catch (const std::exception& e)
{
std::fprintf(stderr, "Unhandled C++ exception: %s\n", e.what());
}
catch (...)
{
std::fprintf(stderr, "Unhandled C++ exception of unknown type\n");
}
}
std::fflush(stderr);
std::abort();
}
int main()
{
std::set_terminate(LogAndAbort);
// ...
}
Microsoft’s documentation states that terminate functions are maintained separately for each thread, so call std::set_terminate at the start of every thread you create as well. Write to your real log file in place of stderr if the game has no console.
The log line gives you the message. A dump gives you the stack. If you do not ship a crash reporter, an unhandled-exception filter can write a minidump next to the log:
#include <windows.h>
#include <dbghelp.h> // link with Dbghelp.lib
static LPTOP_LEVEL_EXCEPTION_FILTER g_previousFilter = nullptr;
LONG WINAPI WriteDumpFilter(EXCEPTION_POINTERS* info)
{
HANDLE file = CreateFileW(L"crash.dmp", GENERIC_WRITE, 0, nullptr,
CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr);
if (file != INVALID_HANDLE_VALUE)
{
MINIDUMP_EXCEPTION_INFORMATION mei;
mei.ThreadId = GetCurrentThreadId();
mei.ExceptionPointers = info;
mei.ClientPointers = FALSE;
MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), file,
MiniDumpNormal, &mei, nullptr, nullptr);
CloseHandle(file);
}
return g_previousFilter ? g_previousFilter(info) : EXCEPTION_CONTINUE_SEARCH;
}
// at startup:
g_previousFilter = SetUnhandledExceptionFilter(WriteDumpFilter);
Two cautions. SetUnhandledExceptionFilter replaces whatever filter was installed before, which is normally the C runtime’s. The code above keeps the returned pointer and calls it after writing the dump, so the runtime still calls std::terminate and your terminate handler still logs the message. Drop that call and the handler stops running for exceptions that simply go uncaught. And writing a dump from inside a process that has just failed is a compromise that can itself fail, which is why dedicated crash reporters do it from a second process. Write the file to a folder the player can find, such as the save folder, not the working directory.
Validate what you read
Most of the table disappears when file and config input is parsed with functions that report errors as values.
Numbers: std::from_chars never throws and tells you whether the whole string was consumed.
#include <charconv>
#include <string_view>
int ParseInt(std::string_view text, int fallback)
{
int value = 0;
const char* last = text.data() + text.size();
auto [end, ec] = std::from_chars(text.data(), last, value);
if (ec != std::errc() || end != last)
return fallback;
return value;
}
Files: every std::filesystem function that can fail has an overload taking a std::error_code, which does not throw on file system errors. Pass the path object itself to stream constructors and avoid .string():
bool LoadSave(const std::filesystem::path& savePath, std::vector<char>& out)
{
std::error_code ec;
const auto size = std::filesystem::file_size(savePath, ec);
if (ec)
{
std::fprintf(stderr, "Cannot read save: %s\n", ec.message().c_str());
return false;
}
std::ifstream file(savePath, std::ios::binary);
out.resize(static_cast<std::size_t>(size));
file.read(out.data(), static_cast<std::streamsize>(out.size()));
return file.good();
}
Containers: use find() and test the result where a missing key is possible, and keep at() for places where a missing key is a bug you want reported. Check counts read from a file against the file’s size before calling resize().
JSON: with nlohmann/json, json::parse(text, nullptr, false) returns a value for which is_discarded() is true on bad input, in place of throwing parse_error. Use contains() or value(key, fallback) for fields that old saves may lack.
What to ask players, and what they can try
Since the event log entry looks the same for every cause, ask for more than the entry:
- The game’s log file, which contains the terminate handler’s line once you ship one.
- A dump, from your crash folder or from WER local dumps.
- What they were doing: starting the game, loading a specific save, changing a setting.
- The install path and Windows user name, if the crash is at startup. Non-ASCII characters there are a lead.
Workarounds a player can try, each matched to a cause above:
- Verify the game files, to replace a damaged data file.
- Rename the config file or the newest save (keep the original) so the game recreates or skips it. If that works, ask for the renamed file: it is your reproduction case.
- Move the game to a folder with a short, plain path such as
C:\Games\MyGame. - Close other programs and check free disk space on the drive that holds the save folder.
- Turn off overlays for one run.
None of these is a fix. Each one that works identifies which input your code failed to handle, and the fix is the validation in the previous section. A reply that says “please send that save file” closes more of these than any checklist.
Where Bugnet fits
Bugnet does not capture native crashes as stack traces, does not process minidumps and does not symbolicate, so it cannot tell you the type of an uncaught C++ exception. That comes from the dump or from your own terminate handler’s log line. Bugnet’s part starts where the game can still speak for itself. With the Unreal SDK, fatal errors that reach the engine’s error handler are filed with the engine’s message and recent log lines. In any engine, the in-game report form gives a player who restarts after the crash a place to describe it, and the report arrives with OS version, CPU, GPU, RAM and game version, which tells you which build’s PDBs to load.
Because Event Viewer entries for this code are identical across unrelated bugs, keep the distinguishing evidence with each report. Save the !analyze -v output, the copied Event Viewer entry or the relevant log lines as a text file and attach it to the report (text attachments up to 10 MB are accepted, binary dumps are not). The bug reports docs describe attachments. When the cause turns out to be a path or save-file problem that players can work around, a known-issue entry on the project’s public tracker carries the steps until the patch ships.
Related guides
- “Faulting module name” in Event Viewer: How to Read a Windows Game Crash Entry
- How to Fix “Unhandled exception code 0xc0000409” (Stack Buffer Overrun) Crashes in Games
- How to Fix Exception Code 0xc0000374 (Heap Corruption) Crashes in Your Game
- How to Fix Exception Code 0xc00000fd (Stack Overflow) Crashes in Your Game
- How to Collect Windows Crash Dumps From Players With WER LocalDumps
Frequently asked questions
What does exception code 0xe06d7363 mean?
It is the code the Microsoft C++ runtime uses whenever C++ code executes throw. In a crash entry it means a C++ exception was thrown and no catch block handled it. The low bytes of the code are the ASCII letters msc.
Why is the faulting module KERNELBASE.dll?
A C++ throw ends in a call to the Windows function RaiseException, which is implemented in KERNELBASE.dll. The module only delivered the exception. The code that threw it is further up the call stack, in the game, a library or an injected DLL.
How do I find out which C++ exception was thrown?
Open a crash dump in Visual Studio with the symbols for that build and choose Debug with Native Only. The exception message names the type, for example std::bad_alloc, and the call stack shows the function that threw. In WinDbg, .exr -1 followed by .ecxr and k gives the same information.
Will reinstalling the Visual C++ redistributable fix 0xe06d7363?
Almost never. The code only says that program code threw an exception that nothing caught. Reinstalling runtimes does not change how the game handles a corrupt save, a missing file, low memory or a path it cannot convert, which are the usual triggers.
What is the difference between 0xe06d7363 and 0xe0434352?
0xe06d7363 is an unhandled native C++ exception. 0xe0434352 is an unhandled .NET exception. Both show KERNELBASE.dll as the faulting module, and for the .NET one a .NET Runtime event in the same log contains the managed exception type and stack trace.
0xe06d7363 names the mechanism, and KERNELBASE.dll is the messenger. The exception type and the throwing function are in the dump, so collect one, and add a terminate handler that logs what() so the next report explains itself.