“Your PC ran into a problem and needs to restart.” It’s the friendliest possible wording for a system crash, and the least informative. That blue screen — with its sad emoticon and a percentage counter — is Windows’ last resort: something went wrong at a level it couldn’t recover from, so it stopped everything, wrote down what happened, and restarted. The screen gives you one genuinely useful piece of information: the stop code near the bottom (like MEMORY_MANAGEMENT or DRIVER_IRQL_NOT_LESS_OR_EQUAL). Everything in this guide starts from that code.
First, the reassurance: your files are fine. A blue screen is a protective stop, not a data wipe. Second, the mindset: one crash is an incident, two is a pattern. If this just happened once after an update or a new driver, restart and carry on — but photograph the stop code first in case it returns. If it’s recurring, the fixes below take you from reading the code to resolving the cause, in the right order. For the specific case where the message names no code at all, see our follow-up guide ; to keep future crashes visible instead of auto-rebooting, see our disable automatic restart guide .
Why this happens
- Faulty drivers: The number one cause — a driver accessing memory or hardware incorrectly forces the protective stop.
- Bad Windows update: Updates replace kernel files and drivers; a buggy or interrupted update destabilizes the system.
- Failing RAM: Memory errors corrupt whatever Windows is doing at that moment, producing varied, confusing stop codes.
- Dying storage: Bad sectors in system areas cause crashes that look random but aren’t.
- Overheating: Thermal shutdowns under load can present as blue screens, especially on gaming laptops with clogged cooling.
- Overclocking: Unstable CPU, GPU, or RAM overclocks are a classic source of recurring crashes.
- Malware: Deep infections that hook kernel functions can trigger protective stops.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Capture the stop code and check for a pattern
Diagnosis before action — five minutes here saves hours later.
- Photograph the blue screen with your phone, capturing the stop code (the ALL_CAPS phrase near the bottom) and any named file (like
nvlddmkm.sys). - Let the percentage counter reach 100% so the crash dump is written completely.
- After restarting, ask: did this start after an update, a new driver, new hardware, or new software? The answer points at the cause.
- Open Event Viewer > Windows Logs > System and look for BugCheck entries — they record every stop code with timestamps, revealing whether it’s one code repeating or many different ones (many different codes strongly suggests RAM or drive hardware).
Fix 2: Boot into Safe Mode to isolate the cause
Determine whether third-party software is involved.
- If Windows boots normally, press Windows + R, type
msconfig, go to the Boot tab, tick Safe boot > Minimal, restart — or interrupt boot three times to reach recovery and choose Safe Mode. - If the system is stable in Safe Mode, a third-party driver or program is the trigger — proceed to Fix 4.
- If it crashes in Safe Mode too, suspect system files or hardware — prioritize Fixes 3 and 6.
- Remember to untick Safe boot in msconfig afterward, or you’ll boot into Safe Mode every time.
Fix 3: Roll back the recent change
Undo whatever preceded the crashes.
- If it started after a Windows update: Settings > Windows Update > Update history > Uninstall updates, and remove the most recent one. Check Microsoft’s support pages for known issues with that update.
- If it started after a driver update: Device Manager > right-click the device > Properties > Driver > Roll Back Driver.
- If it started after new software: Settings > Apps > Installed apps, sort by install date, and remove the newest additions — antivirus trials and system utilities first.
- If it started after new hardware: remove or reseat the hardware and test. New RAM is the most common hardware trigger.
Fix 4: Update or reinstall the suspect driver
A named file on the blue screen tells you exactly which driver to fix.
- If the blue screen named a
.sysfile, identify its owner:nvlddmkm.sysis NVIDIA,atikmdag.sysis AMD,rtwlanu.sysis Realtek Wi-Fi, and so on. - Download the latest driver from the manufacturer’s site — not from Windows Update — and do a clean install (NVIDIA and AMD installers both offer a “clean installation” checkbox).
- Get a fresh Windows image with Microsoft’s download page if you suspect the installed driver store itself is damaged.
- If no file was named, update the big three anyway: graphics, chipset, and network drivers — they cause the majority of unnamed crashes.
Fix 5: Repair system files
Corrupted Windows components cause crashes that look random.
- Open Terminal (Admin) and run
sfc /scannow. - Follow with
DISM /Online /Cleanup-Image /RestoreHealth, then run SFC once more. - Restart and monitor. If crashes persist with the same stop code after clean SFC/DISM runs, the cause is almost certainly a driver or hardware, not Windows itself.
Fix 6: Test memory and storage
Rule out the hardware that produces “random” crashes.
- Run Windows Memory Diagnostic: Windows + R >
mdsched.exe> Restart now and check for problems. - Run
chkdsk C: /f /rfrom an administrator prompt (schedule at restart) to find bad sectors. - Run your laptop vendor’s built-in diagnostics (F12 > Diagnostics on Dell, F2 on HP) for a manufacturer-grade drive and memory test.
- Replace failing RAM or drives promptly — continued use risks actual data loss, unlike the crashes themselves.
Fix 7: Check thermals and reset overclocks
Heat and unstable clocks crash systems under load.
- Install a monitoring tool like HWMonitor and watch CPU/GPU temperatures during normal use and under load — sustained CPU temps above 95°C or GPU above 90°C indicate a cooling problem.
- Clean vents and fans with compressed air; on older laptops, dried thermal paste may need professional replacement.
- Reset any CPU, GPU, or RAM overclocks (including XMP profiles) to stock in the BIOS/UEFI and vendor utilities.
- If crashes only happen in games or heavy apps and thermals are fine, the GPU driver is the prime suspect — return to Fix 4.
Closing
The “your PC ran into a problem” screen is the beginning of a diagnosis, not a verdict. The stop code tells you the category, the timing tells you the trigger, and the sequence above — capture, isolate, roll back, update drivers, repair files, test hardware — resolves the overwhelming majority of cases without reinstalling Windows. Keep that phone photo of the stop code; if the crash ever returns months later, comparing codes tells you instantly whether it’s the same problem or a new one. And remember the cardinal rule of blue screens: fix the cause, not the crash — suppressing the symptom while the driver or dying drive remains guarantees a sequel.
