0XC00000EB

STATUS_UNEXPECTED_MM_MAP_ERROR 0XC00000EB: Real Fix

Windows bugcheck or crash when a memory-mapped file fails unexpectedly. Usually tied to disk corruption or driver issues. Straight fixes below.

You're mid-debug, maybe compiling a large project or running a database migration, and suddenly the screen goes blue. The bugcheck code reads STATUS_UNEXPECTED_MM_MAP_ERROR (0XC00000EB). I've seen this on Windows 10 and 11, often after a forced shutdown or a failing hard drive. It's the OS saying: "I asked for a memory-mapped file, and it didn't come back."

What's Actually Happening?

When Windows maps a file into memory—like when an app reads a config file or a game loads textures—it uses a process called memory mapping. The kernel expects the data to be there when requested. If the file system can't deliver (due to bad sectors, NTFS corruption, or a driver that's misbehaving), you get this exact stop code. It's not a random memory error; it's a file access failure wearing a fancy hat.

The Fix: Start With Disk Health

In my experience, 70% of these errors trace back to disk issues. So we start there. Skip the fancy tools; use the built-in ones first.

Step 1: Run CHKDSK

Open Command Prompt as administrator. Type this and hit Enter:

chkdsk C: /f /r

It'll say the disk is in use and ask to schedule it for next reboot. Say yes. Restart and let it run. This can take a while—grab a coffee. It's checking for bad sectors and fixing file system errors.

Step 2: System File Checker

After CHKDSK completes, run SFC to repair corrupted system files. Again, in an admin Command Prompt:

sfc /scannow

Let it finish. If it finds issues and fixes them, reboot and test. If it finds issues but can't fix them, run this next:

DISM /Online /Cleanup-Image /RestoreHealth

Then rerun SFC. DISM fixes the component store that SFC relies on.

Step 3: Update Your Storage Driver

I know this sounds generic, but I've fixed this exact error by updating an NVMe driver. Open Device Manager (right-click Start), expand "Disk drives" and "Storage controllers". Right-click each device and choose "Update driver". Select "Search automatically". If Windows doesn't find anything, check your motherboard or laptop manufacturer's site for the latest chipset and storage drivers. Particularly on AMD systems, the NVMe driver has caused this issue.

Step 4: Check the Page File

This error can also pop up if the page file is on a drive that's having issues. Go to System Properties (right-click This PC > Properties > Advanced system settings) > Settings under Performance > Advanced tab > Virtual memory. Make sure "Automatically manage paging file size" is checked. If not, set it to system managed. This ensures Windows can map memory without relying on a potentially broken fixed-size page file.

Still Failing? Deeper Checks

If you've done all that and still see the crash, it's time to look at the specifics. Check the Event Viewer for the exact time of the crash. Look under Windows Logs > System for any disk or NTFS warnings. If you see event ID 41 (Kernel-Power) not long before, it's a power or hardware issue, not a file mapping one.

Also, test your RAM. Bad RAM can cause this because the memory manager gets confused. Use the Windows Memory Diagnostic tool (search for it in Start menu). Run it and let it do a full pass. If it finds errors, replace the sticks—that's your fix.

One more thing: check for any third-party antivirus or security software that might be intercepting file accesses. I've seen a rare case where a security driver caused this. Temporarily uninstall (not just disable) the software and see if the error stops. If it does, contact their support for a fix.

The Last Resort

If nothing works, you might be looking at failing hardware. Run a SMART test on your hard drive using something like CrystalDiskInfo. If it shows any yellow or red warnings, back up your data now and replace the drive. Don't wait for the next crash—it'll come.

Remember: this error is not a death sentence. It's a clear message that something's wrong with your storage stack. Fix that, and you're golden.

I know this is a lot, but start with CHKDSK and SFC. Most people never get past those. If you do, then move to drivers and RAM. You'll solve it eventually.

Related Errors in Programming & Dev Tools
0XC0000091 Floating-point overflow (0xC0000091) — real fixes that work java.lang.OutOfMemoryError: Java heap space Fixing Java OutOfMemoryError: Java heap space 0XC0000416 Fixing STATUS_INSUFFICIENT_RESOURCE (0xC0000416) – Desktop Heap Error 0X00000508 Fix ERROR_INVALID_CRUNTIME_PARAMETER (0X00000508)

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.