Fix "Your Device Ran Into a Problem" Error
In this article
The "Your device ran into a problem and needs to restart" error (often followed by a sad face or a stop code) means Windows hit a critical system fault and couldn't repair itself automatically. This guide walks you through the most reliable fixes, from simple restarts to using built-in recovery tools, so you can get back into Windows without losing your files. You'll need access to another working computer to create a bootable USB drive if the on-screen recovery options don't work.
What You'll Need
- A working Windows PC to download recovery tools (if your device won't boot past the error).
- A USB flash drive with at least 8 GB of free space (for creating a Windows installation media).
- Your device's power adapter plugged in during the entire process.
- A second device to look up error codes or search for solutions if needed.
Step-by-Step
- Force a clean restart. Press and hold the power button for 10–15 seconds until the device shuts off completely. Wait 10 seconds, then turn it back on. Sometimes the error is a one-time glitch, and a fresh boot clears it.
- Try the automatic repair loop. If the error reappears, Windows will usually show a blue "Recovery" screen after a few failed boots. From there, choose Advanced options > Troubleshoot > Advanced options > Startup Repair. Let it run—it may take 10–30 minutes. If it finds and fixes a corrupt system file, you'll boot normally.
- Boot into Safe Mode. If Startup Repair doesn't help, go back to Advanced options > Troubleshoot > Advanced options > Startup Settings > Restart. After the restart, press 4 or F4 to enable Safe Mode. If Windows loads, the problem is likely a driver or recent update. In Safe Mode, uninstall any recently installed drivers or updates via Settings > Windows Update > Update history > Uninstall updates, or use Device Manager to roll back problematic drivers.
- Run System Restore. From the same Advanced options menu, choose System Restore. Pick a restore point from before the error started (if any exist). This will revert system files and settings without touching your personal files. Follow the prompts and wait for the restore to complete.
- Use Command Prompt for deeper fixes. In Advanced options, select Command Prompt. Run these commands one at a time, pressing Enter after each:
sfc /scannow– checks and repairs system files.
DISM /Online /Cleanup-Image /RestoreHealth– repairs the Windows image (requires internet).
chkdsk C: /f /r– checks the hard drive for errors and bad sectors (may take an hour).
After each, typeexitto close Command Prompt, then restart. - Reset your PC (keep files). If nothing else works, go to Advanced options > Troubleshoot > Reset this PC. Choose Keep my files to reinstall Windows while preserving your personal documents, photos, and apps (though apps will be removed). This often fixes deep corruption.
- Create a Windows installation USB (last resort). On another PC, go to Microsoft's download page (or the Windows 11 equivalent), download the Media Creation Tool, and follow its prompts to create a bootable USB. Insert it into the broken device, boot from it (you may need to press a key like F12 or Esc during startup to choose the boot device), then select Repair your computer instead of Install now. From there, repeat the steps above or choose Startup Repair.
Common Mistakes
- Skipping the restart. Many users jump straight to advanced tools when a simple reboot fixes the issue.
- Running DISM without internet. DISM needs to download healthy files; if you're offline, it may fail. Ensure you're connected to Wi-Fi or Ethernet.
- Choosing "Reset this PC" without backing up. Even with "Keep my files," apps and settings are lost, and there's a small risk of data loss. Always back up to an external drive if possible.
- Using a USB that's too small or corrupted. A 4GB drive won't hold Windows media. Also, format the USB as FAT32 before creating media.
- Forgetting to remove the USB after repair. If you boot from the USB again, you'll end up in the recovery loop. Unplug it once Windows starts loading.
Tips
- Write down the stop code. The error screen often shows a code like
CRITICAL_PROCESS_DIEDorMEMORY_MANAGEMENT. Search that code on another device—it can pinpoint the cause (e.g., RAM issue, driver problem). - Check your disk health. If
chkdskfinds bad sectors, your hard drive or SSD may be failing. Back up important data immediately and consider replacing the drive. - Remove recently added hardware. If you installed a new RAM stick, GPU, or external device before the error, unplug it and try booting again.
- Keep Windows updated. After you're back in, install all pending updates—many blue-screen errors are fixed by cumulative updates.
- Use System Restore regularly. Create restore points before installing drivers or major software, so you have a fallback.
Troubleshooting
If the steps above don't resolve the error, try these additional checks:
- Check for overheating. If the device shuts down or errors under load, clean dust from vents and ensure fans are spinning. Overheating can cause random blue screens.
- Test your RAM. Use the Windows Memory Diagnostic tool (type
mdsched.exein the Start menu) to run a memory test. Faulty RAM is a common cause of this error. - Check the Event Viewer. Once you're in Safe Mode, open Event Viewer (search for it) and look under Windows Logs > System for critical errors around the time of the crash. The details can reveal which driver or service failed.
- If you can't boot at all. Try booting from the USB and selecting Repair your computer > Troubleshoot > Advanced options > Command Prompt, then run
bootrec /fixmbr,bootrec /fixboot, andbootrec /rebuildbcdto repair the boot loader. - If all else fails. The hardware may be failing (especially the hard drive or RAM). Consider taking the device to a professional repair shop. If you have a recovery drive, you can also try a full factory reset, but that erases everything.
Frequently Asked Questions
Will I lose my files if I use "Reset this PC" with "Keep my files"?
No, your personal files (documents, photos, downloads) are kept, but all installed apps and settings are removed. There's a small risk of data loss, so back up to an external drive first if you can.
How long does Startup Repair take?
Typically 10–30 minutes, but it can take longer on older drives. Let it finish; interrupting it can cause more problems.
Can I fix this error without a USB drive?
Yes, if Windows can boot into the recovery environment (the blue screen with options), you can use Startup Repair, System Restore, or Command Prompt without a USB. A USB is only needed if the recovery environment itself won't load.
What does the stop code mean?
It identifies the specific cause. For example, MEMORY_MANAGEMENT points to RAM issues, while CRITICAL_PROCESS_DIED suggests a system process crashed. Search the exact code online for targeted fixes.
Is this error caused by a virus?
Rarely, but malware can corrupt system files. If you suspect that, run a full antivirus scan after you get back into Windows.
Should I reinstall Windows from scratch?
Only as a last resort after trying all the above. A clean install (using the USB and selecting "Install now" then "Custom") erases everything but gives you the best chance of eliminating persistent software corruption.