The DirectX graphics kernel detected an error
The part of Windows that handles the graphics card (the DirectX graphics kernel) detected a violation and stopped the system. In practice it is almost always related to the graphics driver.
Why it happens
- A damaged, outdated or badly installed graphics driver.
- Leftovers from a previous driver after changing graphics cards (for example, from NVIDIA to AMD).
- Graphics card overclock.
- A half-installed Windows update.
How to fix it
- Reinstall the graphics driver: download the latest stable version from NVIDIA, AMD or Intel (on laptops, preferably from the laptop maker), uninstall the current one from Settings › Apps and install the new one.
- Install pending updates in Settings › Windows Update (including optional driver updates) and restart.
- If you use a graphics overclocking program (such as MSI Afterburner), go back to the default values.
- Repair Windows files: open Command Prompt as administrator (search for «cmd», right-click › Run as administrator) and run
DISM /Online /Cleanup-Image /RestoreHealthand thensfc /scannow. Restart when it finishes. - If it started recently, go back to an earlier point with System Restore: press Windows + R, type
rstruiand pick a point from before the problem. Your documents are not touched.
Still happening? If it keeps happening with a clean driver and no overclock, test the graphics card in another PC or another card in yours.
Meaning based on Microsoft's official documentation. The steps are general guidance: if you are not sure, ask a technician for help.