Windows stop code: what it means and how to fix it
A stop code (also called a bug check) is the error name and number Windows shows when it crashes to a blue or black screen to protect itself. One restart often clears it. If the same code keeps coming back, remove new hardware, update or remove the faulty driver, install Windows updates and check memory and disk.
On this page
What it means
"Stop code" is not one specific error. It is the general name for the code Windows shows when it detects a problem it cannot safely continue past. The kernel halts the system, displays a screen with the code, and restarts. If crash dumps are enabled, a dump file is saved first. You will also see these called bug checks, blue screens or BSODs.
Each stop code has a name in capitals, such as PAGE_FAULT_IN_NONPAGED_AREA, and a hex value, such as 0x50. The screen sometimes also names the file that was running, for example rdbyss.sys. That file name is often the most useful clue.
This page covers what to do when you do not yet know which code you have, or the code has no article of its own here. Write down the name, the hex value and any file name before the PC restarts, or read them afterwards from Event Viewer (see below). The full list of codes is in Microsoft's bug check code reference.
Symptoms and causes
You are likely dealing with this problem if:
- The message "Your device ran into a problem and needs to restart", followed by an automatic restart.
- A stop code at the bottom of the screen, sometimes with a module name and a percent-complete counter while the dump is written.
- Repeated crashes or a restart loop at startup if the fault is persistent.
The usual causes, most common first:
- Faulty or incompatible drivers
- The most common cause by far. A driver that is buggy, damaged, or not meant for your Windows version can crash the kernel.
- Newly added hardware
- A new device, or hardware that does not work with your Windows version, can trigger the crash.
- Memory (RAM) faults
- Failing memory produces codes such as 0x1A MEMORY_MANAGEMENT.
- Outdated BIOS/UEFI or firmware
- Old firmware, including ACPI problems, is linked to codes like 0x9F and 0x7E.
- Software conflicts
- Recently installed drivers, services or programs can conflict with the system.
- Corrupted system files or file system errors
- Damaged Windows files or a damaged file system can stop Windows from running safely.
- Malware or disk corruption
- This includes boot sector infection.
- Low free disk space
- Microsoft recommends keeping 10 to 15% of the drive free.
- Loose cables or unseated parts on a desktop
- A badly seated expansion card or cable can cause crashes.
How to fix it
Work through these in order. They start with the quickest, safest checks and move to deeper repairs; stop as soon as the problem is gone.
1.Restart and undo recent hardware changes
A single restart often resolves a one-off stop error. If the code returns, a recently added device is a likely suspect.
- Restart the PC and see whether it starts normally and stays stable.
- Shut down, unplug any hardware you added recently (new USB device, card, drive), then start the PC again.
- On a desktop, power off and check that cables and expansion cards are firmly seated.
2.Start in Safe Mode if Windows will not boot
Safe Mode loads a minimal set of drivers, so you can work on the problem even when normal startup crashes.
- On Windows 10, open Settings > Update & Security > Recovery, and under Advanced startup select Restart now.
- If Windows cannot start at all, the recovery screen normally appears after a few failed startups, so you can continue from the next step.
- Choose Troubleshoot > Advanced options > Startup Settings > Restart.
- Press 4 or F4 for Safe Mode, or 5 or F5 for Safe Mode with Networking.
3.Find the exact stop code in Event Viewer
The code and any named driver tell you which fix to use. The crash screen disappears quickly, but Windows logs it.
- Right-click Start, open Event Viewer, and go to Windows Logs > System.
- Also look for other critical errors just before the crash, then match the code against the FAQ below or the Microsoft bug check reference.
4.Update, disable or remove the faulty driver
Drivers cause most stop errors, and the screen often names the culprit.
- Right-click Start and open Device Manager.
- For any device marked with a "!", right-click it and select Update driver.
- If that does not help, disable or uninstall the device, and restart.
- If the crash screen named a driver file, update that driver from the hardware or software vendor, or remove the software that installed it.
5.Install Windows updates and free up disk space
Updates can include fixes for the faulty component, and a nearly full drive is a known cause.
- On Windows 11, open Settings > Windows Update > Check for updates. On Windows 10, open Settings > Update & Security > Windows Update > Check for updates. Install what is offered and restart. If the update itself fails, see Windows 11 update error.
- Keep 10 to 15% of the system drive free by removing files and programs you no longer need.
6.Test the memory
Faulty RAM is a known cause, and it is the first thing to check for 0x1A MEMORY_MANAGEMENT.
- Save your work. In Control Panel, search for Memory and select Diagnose your computer's memory problems, then restart and let the test run.
- After Windows starts, open Event Viewer, go to Windows Logs > System and read the MemoryDiagnostics-Results entry.
7.Check system files, the disk and malware
Corrupted system files, file system errors and malware can all trigger stop codes.
- Open Terminal or Command Prompt as administrator and run the system file check.
SFC /scannow - In File Explorer, right-click the drive, select Properties > Tools > Check now.
- Run a malware scan, for example Microsoft Defender Offline. If Windows Security itself will not open, see Windows Security not opening.
8.Update the BIOS/UEFI and firmware, and run vendor diagnostics
Outdated firmware, including ACPI problems, is linked to some codes, especially 0x9F and 0x7E.
Before you start: Back up your important files first, and do not switch the PC off during a firmware update. Use only the update from your PC or motherboard maker.
- Get the latest BIOS/UEFI update from the manufacturer of your PC or motherboard and follow their instructions.
- Run the manufacturer's own hardware diagnostics if they provide any.
9.Remove new software or restore the system
If the crashes began after you installed something, going back is the quickest way to confirm and fix it.
Before you start: A restore returns system files and settings to an earlier point. Programs and drivers installed after that point are removed. Back up your documents first.
- Uninstall software or drivers you installed just before the crashes started. Some software cannot be removed from Safe Mode.
- If that does not help, restore from a system restore point, or use another recovery option that Windows offers on the recovery screen.
Check that it worked
- The PC runs normally through your usual use without a new crash screen.
- The memory diagnostic result in the System log reports no errors.
If it still fails
- Note the exact stop code and driver name, and look up the code in Microsoft's bug check code reference for code-specific advice.
- IT staff can analyse the dump file with
!analyzein WinDbg, and use Driver Verifier (verifier) as an advanced step. A bad Driver Verifier setup can cause a boot loop, so only use it if you know how to undo it. - If the crash is 0x7B INACCESSIBLE_BOOT_DEVICE, follow Microsoft's advanced troubleshooting for Stop error 7B.
- If a stop error keeps happening on a new or repaired PC, contact the hardware maker or Microsoft Support.
Questions
Which stop codes have specific first steps?
From Microsoft's guidance: 0x1E KMODE_EXCEPTION_NOT_HANDLED, disable or remove the named driver. 0x1A MEMORY_MANAGEMENT, run Windows Memory Diagnostic. 0x3B SYSTEM_SERVICE_EXCEPTION, remove or update new drivers or services. 0xD1 DRIVER_IRQL_NOT_LESS_OR_EQUAL, update or disable the named driver. 0x9F DRIVER_POWER_STATE_FAILURE, check BIOS/firmware and temporarily disable power saving. 0x7E SYSTEM_THREAD_EXCEPTION_NOT_HANDLED, check the System log, update the named driver and check ACPI/firmware.
Is a screen that is black with no stop code the same thing?
Not necessarily. Microsoft treats a black screen with no stop code as a separate blank-screen problem.
Sources
- Troubleshooting Windows unexpected restarts and stop code errorsOfficial · Microsoft Support
- Guidance for troubleshooting stop errors and unexpected restartOfficial · Microsoft Learn
- Advanced troubleshooting for Stop error 7B or Inaccessible_Boot_DeviceOfficial · Microsoft Learn
- Stop errors best practices and dump configuration recommendationsOfficial · Microsoft Learn
- Bug checks (blue screens)Official · Microsoft Learn
- Analyze bug check blue screen dataOfficial · Microsoft Learn