🛒 Best Price Today on Amazon
Prime members get fast, free shipping on everything above, plus member-only deals. New members get a 30-day free trial — cancel anytime.
As an Amazon Associate we earn from qualifying purchases.
Modern Warfare crashing on PC is frustrating because the game rarely tells you what went wrong. One moment you are loading into a match; the next you face a grey box saying “DEV ERROR” followed by a number, or a message about DirectX hitting an unrecoverable error. Most of these crashes come from a small set of causes, and the fixes follow a clear order. Test the game after each step.
In this guide, “MW4” means Call of Duty: Modern Warfare, the reboot series most players call MW4. A “Dev Error” is Call of Duty’s own name for its crash codes, and DirectX errors point at the graphics pipeline between the game and your video card. This article is for PC players on Steam or Battle.net who see Dev Errors or DirectX errors at launch, while loading, or mid-match. Every step below comes from Activision support or the GPU and Windows makers. Where Activision has published no meaning for a code, this guide says so.
What DirectX and Dev Errors Mean
A Dev Error is a crash code that Call of Duty shows when the game stops in a way it cannot recover from. The number after it, such as 6068 or 0x00001338, is the game’s internal label for the failure. Activision has not published a list explaining what each code means, so the number alone does not tell you the cause. What matters is the message around it. When the message mentions DirectX, the failure sits in the graphics layer that carries commands from the game to your video card. The best-known example is Dev Error 6068, whose message reads “DirectX encountered an unrecoverable error.” That tells you the game asked the graphics system to do something and the graphics system could not finish it.
That narrow clue still leaves several possible causes. A graphics driver that is out of date, damaged, or unstable can fail the same call that worked yesterday. A Windows update that never installed can leave DirectX itself behind, since Microsoft delivers DirectX updates through Windows Update. Game files damaged by an interrupted download or a bad patch can feed the graphics system broken textures or shaders. Overlay and recording software can sit between the game and the driver and break the same calls. An overclocked card can fail under load even when the desktop looks fine. Because the code does not name one cause, the fix is a process: rule out the easy causes first, in order, and test after each one.
Fix It, Easiest First
Work through these six steps in order. Do not skip ahead to a reinstall. Each step rules out one cause, and the first three solve most DirectX and Dev Error crashes on their own.
1. Verify the Game Files
Damaged or missing game files are the most common cause of crashes that begin after an update, and checking them costs nothing. On Steam, open your Library, right-click the game, choose Properties, open the Installed Files tab, and click “Verify integrity of game files.” Steam checks every file against its own records and downloads replacements for anything missing or damaged. On Battle.net, select Call of Duty, click the gear icon next to the Play button, choose “Scan and Repair,” and click “Begin Scan.” Let the scan finish completely before you close the launcher or launch the game. A scan can take several minutes on a slower drive, and it may download replacement files, so give it time. When it finishes, restart your PC rather than just relaunching the game, because a restart clears locked files and gives the launcher a clean start. Then launch the game and play one full match. If the scan keeps finding new problems every time you run it, that points at the drive rather than the game, and the drive maker’s own health utility is the right next check. If the scan finds nothing, move to step two.
2. Update the GPU Driver and Windows
An out-of-date graphics driver is the cause Activision names first for DirectX crashes, and it is the step most players skip because the game worked fine last week. Drivers change with every game update, and a driver that ran the last season cleanly can fail the new one. Get the driver from the card maker, not from a third-party updater. NVIDIA owners should use the NVIDIA app or the NVIDIA website, AMD owners the AMD Software app or the AMD website, and Intel owners the Intel driver page. Choose the clean install option if the installer offers one, because a clean install removes the old driver files instead of layering new ones on top. Then update Windows. Press the Windows key, type “Check for updates,” and install everything Windows offers, then restart. Microsoft delivers DirectX updates through Windows Update, so an updated Windows is how you get the latest DirectX for your version of the system. After both updates, launch the game and play. If the crash is gone, you are done. If it returns, note whether it happens at the same point as before, because a crash that moves to a different point usually means the driver was part of the problem but not all of it.
3. Clear the Shader Cache and Let Shaders Rebuild
Modern Warfare builds shaders the first time it runs, and a damaged shader cache can crash the game every time it loads a map or an effect. Clearing the cache forces the game to rebuild those shaders from scratch, which fixes crashes that happen during loading or right when a match begins. In the game, open Settings, go to the Graphics tab, and look for the option to restart shader installation or clear the shader cache. Run it and let the process finish. The first launch after clearing the cache takes longer than usual, because the game is rebuilding shaders, so do not close the game or restart the PC while it works. Some players also clear the driver-side shader cache from the NVIDIA Control Panel or the AMD Software app, which is a separate cache from the game’s own one. If the game crashes during the rebuild itself, verify the game files again first, then try the in-game option once more. A cache that keeps corrupting after a rebuild points at the drive or the memory rather than the game, and that is a hardware question, not a settings one. If the rebuild completes and the game loads, play a full match before deciding the fix worked.
4. Check DirectX and Graphics Settings
If the game still crashes after the files, the driver, and the shader cache are all clean, the next suspect is the graphics settings themselves. Open the in-game Settings, go to the Graphics tab, and change the Display Mode to Fullscreen Borderless if it is set to Fullscreen Exclusive. Borderless mode changes how the game talks to Windows and the driver, and it removes one common source of DirectX failures. Next, lower the texture quality one step and turn off any upscaling or frame-generation setting you had enabled, then test. If the crash stops, raise the settings back one at a time until you find the one that triggers it. Some players also report that lowering the Video Memory Scale value in the game’s adv_options.ini file helps, but Activision does not document that setting, so treat it as an experiment rather than a fix, and keep a copy of the file before you change it. If the game offers a DirectX version option in its launcher settings, try the other version. On Battle.net, open Game Settings for Call of Duty, tick “Additional command line arguments,” and type -d3d11 to run on DirectX 11. This is a widely reported workaround for Dev Error 6068, but it is not an official Activision fix, and whether it helps depends on your machine. Test it, and remove the argument if it changes nothing.
5. Close Overlays and Background Apps
Overlay and recording software sits between the game and the graphics driver, and Activision names it as a crash source on its PC troubleshooting page. The three programs it names are NZXT CAM, MSI Afterburner, and Razer Cortex, but the same warning covers any overlay, recording tool, or input remapping software. Close them fully before you launch the game, not just minimise them, because a minimised overlay can still hook into the game. Turn off the Steam Overlay in Steam Settings under In-Game, turn off the Discord overlay in Discord Settings under Game Overlay, and turn off the Xbox Game Bar in Windows Settings under Gaming. Close the GeForce Experience or NVIDIA app overlay as well if you use it. If your antivirus scans game folders while you play, add the Call of Duty folder to its exception list, since Activision lists that step on the same troubleshooting page. Also return your graphics card to its stock speeds if you overclocked it. Open your tuning tool and click Reset to restore the default clocks, then test the game. A card that is stable on the desktop can still fail under a game’s load when it is overclocked, and returning to stock speeds is the fastest way to rule that out. If the crash stops after closing these programs, re-enable them one at a time to find the one that caused it.
6. Clean Reinstall as a Last Resort
If every step above has failed, a clean reinstall is the last option, because it removes every file the game owns and replaces them all. Activision itself lists a full reinstall as the official workaround for at least one known launch crash, so this is not a guess. Uninstall the game through your launcher or through Windows Settings, then check that the game folder is actually gone from the drive. On Steam the folder sits under steamapps/common, and leftover files there can survive an uninstall. Delete the leftover folder by hand, and delete the game’s folder in Documents as well, because that folder holds settings and cache files that a reinstall does not always replace. Then reinstall the game from the launcher and let the download finish completely before you launch it. Do not launch the game while it is still downloading content packs. After the reinstall, launch the game once with default settings before you restore your old configuration. If the game still crashes at the same point after a clean driver install, verified files, a rebuilt shader cache, and a full reinstall, save a DxDiag report and contact Activision support. Press the Windows key, type dxdiag, open the DirectX Diagnostic Tool, and click “Save All Information” to create the file that support asks for.
How to Check the Fix Worked
A fix is only a fix if the crash stays away, and the way to prove that is to test the game the same way it crashed before. Play the same mode, on the same map if you can, for at least one full match, and watch the exact moments where the crash used to happen. If it crashed during loading, load the same map three times in a row. If it crashed mid-match, play two full matches. If it crashed at launch, close the game and launch it three times. A single clean launch is not proof, because the crash may only happen under load or after the game has been running for a while. Keep a short note of what you changed and when, so you can tell support exactly what you tried if you need to contact them. If the crash returns after a fix seemed to work, note whether it returns at the same point or a different one. A crash at the same point usually means the cause is still there. A crash at a different point usually means the first fix helped and a second cause is now showing. And if a fix works for a day and then the crash returns after a game update, run the file verification step again first, because updates are the most common source of newly damaged files.
Common Mistakes
- Changing three settings at once. If you update the driver, clear the cache, and lower the settings in one go, you will never know which change fixed the crash, and you cannot undo the right one when it breaks again.
- Skipping the Windows update. DirectX arrives through Windows Update, so a new driver on an old Windows build can still fail. Update both, then restart.
- Closing the game during the shader rebuild. The first launch after clearing the cache takes longer than usual. Closing it mid-rebuild corrupts the cache again and puts you back at the start.
- Leaving overlays running in the background. A minimised overlay still hooks into the game. Close overlay and recording tools completely, and turn off the Steam, Discord, and Xbox Game Bar overlays.
- Trusting a code number to name the cause. Activision has not published definitions for individual Dev Error codes. The number does not tell you what broke, so do not chase a fix written for a different code.
Frequently Asked Questions
What does Dev Error 6068 mean?
Dev Error 6068 is the best-documented Dev Error, and its message reads “DirectX encountered an unrecoverable error.” It means the graphics layer between the game and your video card failed during loading or play. Update the graphics driver and Windows first, then close overlays and verify the game files.
Do I need to reinstall the game to fix a Dev Error?
No, not first. Most Dev Errors clear after verifying the game files, updating the driver and Windows, or clearing the shader cache. A full reinstall is the last step, and only after the earlier steps have all failed. Activision lists it as the official workaround for one known launch crash.
Why does the game crash only in one mode or on one map?
A crash tied to one mode or map usually points at damaged files for that content, because each mode and map loads its own textures and shaders. Verify the game files first, then clear the shader cache and let it rebuild. If the crash follows one map after both steps, report it to Activision support with a DxDiag file.
Can an overclocked graphics card cause Dev Errors?
Yes. A card that runs fine on the desktop can fail under a game’s load when it is overclocked, and DirectX errors are one of the ways that failure shows. Return the card to its stock speeds with your tuning tool’s Reset button and test the game before trying anything else.