Your Device Ran Into a Problem and Needs to Restart? How to Fix It (Windows 11)

For
Windows 11
Video
2 min 6 sec
Updated

The pictures are illustrations with made-up data, not screen recordings.

Your PC ran into a problem and needs to restart? Here’s how to find the cause of the blue (or black) stop code screen in Windows 11 and fix it:

  • note the stop code
  • remove any new hardware
  • start in safe mode with networking
  • check free space and Windows Update
  • update, disable or uninstall the device marked (!) in Device Manager
  • still crashing? Uninstall Updates or System Restore

How to fix “Your PC ran into a problem and needs to restart” in Windows 11

On Windows 11 version 24H2 and later the stop screen is black and says “Your device ran into a problem and needs to restart”. On 23H2 and older it’s the familiar blue screen. Either way it’s the same kind of error, a stop code error, and a hardware device, its driver or software is usually behind it. If it only happened once, the restart has usually fixed it.

1 Note the stop code

  • It’s at the bottom of the screen, for example PAGE_FAULT_IN_NONPAGED_AREA or MEMORY_MANAGEMENT.
    The black stop screen at 59% complete, with the line Stop code: PAGE_FAULT_IN_NONPAGED_AREA ringed at the bottom.

2 Remove new hardware

  • If you added hardware just before the crashes started, shut down, take it out, and restart.

3 Start in safe mode

  • If Windows starts: hold Shift and select Start, then Power, then Restart.
    The Start menu's power menu open with the pointer on Restart and a Shift key shown beside it.
  • If Windows won’t start: switch your PC on, and as soon as the Windows logo appears, hold the power button until it turns off. Do that twice. The third time, you’ll get the Automatic Repair screen. Select Advanced options.
  • Then choose Troubleshoot, Advanced options, Startup Settings, Restart. When the list appears, press 5 (or F5) for Safe Mode with Networking.
    The blue Advanced options screen with the pointer on Startup Settings.
  • If your PC is encrypted with BitLocker, you’ll need your BitLocker recovery key.

4 Space and updates

  • Keep about 10 to 15% of your drive free.
  • Select Start, Settings, Windows Update, then Check for updates.
    Settings open on Windows Update with the pointer on Check for updates.

5 Fix the flagged driver

  • Right-click Start and open Device Manager.
    The menu from right-clicking Start, with the pointer on Device Manager.
  • Look for a device marked with an exclamation mark (!). Right-click it and choose Update driver.
    Device Manager with Generic Graphics Adapter right-clicked and the pointer on Update driver.
  • If that doesn’t help, disable or uninstall the device.

6 Still crashing?

  • In the recovery screen, open Troubleshoot, then Advanced options.
    The blue Troubleshoot screen with the pointer on Advanced options.
  • If the crashes started after an update, choose Uninstall Updates.
    The blue Advanced options screen with Uninstall Updates ringed and the pointer on it.
  • If not, choose System Restore and pick a restore point from before the crashes. System Restore doesn’t change your personal files.
    The System Restore window listing restore points, with the pointer on the Windows Update point.

Based on Microsoft Support’s pages “Troubleshooting Windows unexpected restarts and stop code errors”, “Windows startup settings”, “Windows recovery environment”, “Recovery options in Windows”, “Update drivers through Device Manager in Windows” and “System Restore” (read 11 November 2026). The PC on screen is an illustration with made-up data, not a screen recording.

Not affiliated with or endorsed by Microsoft. Windows is a trademark of Microsoft Corporation.