Sub topic 12
Application crashes and unresponsive programs
This chapter assumes you know the CompTIA troubleshooting steps, can open Task Manager and Event Viewer, and know what a process and a service are. It covers how to tell a crash from a hang, which evidence to collect, and which fix to try first.
Crash versus hang
A crash is when a program closes suddenly, often with an error dialog. A hang is when a program stays open but shows "Not Responding" and ignores input. The two have different causes and different first steps.
| Symptom | Likely causes | First action |
|---|---|---|
| Closes on launch | Corrupt install, missing runtime, incompatibility | Repair the app, then check compatibility |
| Closes at a specific action | Bad add-in, corrupt user data, bug | Disable add-ins, test with a new profile |
| "Not Responding" | Waiting on disk or network, resource shortage, deadlock | Wait briefly, then check Task Manager |
| Crashes after an update | New patch or driver conflict | Roll back the update or driver |
Gather evidence first
Ask what changed: a Windows update, a new driver, a new app, or a settings change. Then reproduce the problem. Does it happen every time, or only with one file or one user?
Event Viewer records crashes in the Application log as Error events. Look for the faulting application name, the faulting module (often a DLL), and the time. The command below lists recent Application errors.
Get-WinEvent -FilterHashtable @{ LogName = 'Application'; Level = 2; StartTime = (Get-Date).AddDays(-1) } | Select-Object -First 10 TimeCreated, ProviderName, Id, MessageIf the same module appears in every event, that module is your lead. A module from a third-party add-in points to the add-in. A system DLL points to damaged system files.
Handle a hung program
- Wait a short time. The program may be busy, not frozen.
- Open Task Manager with Ctrl+Shift+Esc.
- On the Processes tab, check CPU, memory, and disk use for the program.
- Select the program and choose End task.
- If it still will not close, use the Details tab and choose End process tree.
Ending a task discards unsaved work. Mention this to the user before you do it.
Apply fixes from least to most destructive
If many programs crash, suspect the system and not one app. Run the repair commands from an elevated prompt.
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannowAlso check for low disk space, failing RAM, and outdated drivers. Unexpected pop-ups, new toolbars, or high CPU from an unknown process suggest malware. Scan before you reinstall anything.
Common errors in diagnosis
- Reinstalling first, which hides the evidence you could have read in the logs.
- Ignoring the date of the first failure, which usually matches a change.
- Testing only the affected user. A new test profile shows whether the problem is in the user data or in the app.
- Forgetting to document the fix and confirm it with the user.
Exercise
A user's accounting program closes every time they open one large spreadsheet. Other users open the same file without trouble. Event Viewer shows a faulting module from a third-party add-in. What is the best next step?
Show answer
Disable or remove the add-in (or update it) and retest. The evidence points to the add-in and not to Windows, so reinstalling the program or running sfc would be more destructive than needed. After the fix, confirm with the user and document it.
Exercise
A program shows "Not Responding." You waited two minutes and nothing changed. Which tool do you use to close it, and what should you tell the user first?
Show answer
Use Task Manager and choose End task. Tell the user that any unsaved work in that program will be lost.