Sub topic 2
Force quit a frozen app
This chapter assumes you can find your way around Finder, the Apple menu and System Settings, and that you know how to open Terminal. You do not need to know shell scripting. The chapter covers the working model of a frozen app, every built-in way to force quit it, and the errors that most often make a force quit fail or lose work.
What "frozen" means
A frozen app is one that has stopped responding to input. Mac apps run as processes, and each process has a main thread that handles clicks, keystrokes and window drawing. If that thread is busy or stuck, macOS cannot update the app's window. The usual signs are a spinning rainbow wheel, a window that ignores clicks, and a menu bar that does not change when you switch to the app.
The cause is not always a crash. Three situations look similar but need different responses:
| Situation | What you see | Best first response |
|---|---|---|
| Busy | The app is slow but the wheel clears after a minute. It may be exporting, indexing or loading a large file. | Wait. Check CPU use in Activity Monitor. |
| Hung | The app does not respond and the wheel stays for several minutes. | Force quit. |
| System-wide slowdown | Every app is slow, not only one. | Do not force quit. Look at memory pressure, disk space and background processes. |
Waiting a few minutes before you act costs little. A force quit discards any changes the app has not saved, so a busy app that would have finished is worth waiting for.
How quitting and force quitting differ
A normal quit asks the app to close. The app gets a chance to save its state, close files and clean up. A force quit does not ask. macOS ends the process directly, and the app gets no chance to save.
Many apps use autosave and versions, so documents in apps such as TextEdit, Pages and Preview often reopen with recent changes after a force quit. Apps that do not use these features lose everything since the last manual save.
Method 1: The Force Quit Applications window
This is the standard method and works when the rest of the system is responsive.
- Press Option+Command+Esc. The Force Quit Applications window opens.
- Select the app. An app that is not responding is often shown in red with "(not responding)" next to its name.
- Click Force Quit, then confirm.
You can reach the same window from the Apple menu by choosing Force Quit. If the keyboard shortcut does nothing, use the Apple menu, because the menu bar is drawn by a different process from the frozen app.
The window lists only apps with windows or Dock icons. Background processes do not appear, and for those you need Activity Monitor.
Method 2: The Dock
- Control-click the app's icon in the Dock, or click and hold it.
- Hold the Option key. The Quit item changes to Force Quit.
- Choose Force Quit.
If the app is not responding, the Dock menu may show Force Quit without needing Option. This method is quick when the app is already in the Dock. It does not work if the Dock itself has frozen.
Method 3: The Finder is a special case
Finder cannot be quit in the usual way. It restarts automatically.
- Press Option+Command+Esc and choose Finder, or hold Option and Control-click the Finder icon in the Dock.
- Choose Relaunch.
The desktop and Finder windows disappear for a moment and come back. Open Finder windows are restored, and files being copied may stop. Check the destination for partial copies afterward.
Method 4: Activity Monitor
Activity Monitor shows every process, not only apps. Use it when the app is missing from the Force Quit window, when you need to check CPU or memory first, or when one app has several helper processes. The next chapter covers it in detail, so only the force quit steps are given here.
- Open Activity Monitor from Applications > Utilities, or search for it with Spotlight.
- Select the process. Typing the app name in the search box narrows the list.
- Click the stop button (an octagon with an X) in the toolbar.
- Choose Quit. If the process remains after a few seconds, repeat and choose Force Quit.
The two choices map to two signals. Quit sends SIGTERM, a polite request to end. Force Quit sends SIGKILL, which the process cannot ignore or handle.
Method 5: Terminal
Terminal is the fallback when the graphical tools are slow or unavailable. It is also the best method over a remote login, for example from another Mac using SSH.
pgrep -x Safari
kill 1234
sleep 5
kill -9 1234Here is what each line does:
pgrep -x Safariprints the process ID (PID) of a process whose name matches exactly. The-xoption stops partial matches, so a search forSafaridoes not also matchSafariBookmarksSyncAgent.kill 1234sends SIGTERM to PID 1234. Replace1234with the number printed bypgrep.sleep 5gives the app time to shut down cleanly.kill -9 1234sends SIGKILL if the process is still there.
If pgrep prints more than one number, the app has several processes. Browsers and many apps use helpers. Choose the right one, or check each with ps -p 1234 -o pid,comm.
You can also end an app by name:
killall Finderkillall ends every process with that name. For Finder, macOS restarts it at once, which often clears a misbehaving desktop or Finder window. Be careful with this command on other names. If two copies of an app are open, or if a name is shared by system helpers, killall ends all of them.
When force quit does not work
Sometimes an app stays after Force Quit. The common reasons are listed here.
- Uninterruptible state. The process is waiting on a disk, network volume or device. In Activity Monitor it may be marked as not responding in a way that SIGKILL does not clear until the wait ends. A stalled network share or a failing external drive is the usual cause. Disconnect the drive or network volume, then try again.
- The wrong process. An app may have a helper that keeps running. Search by name in Activity Monitor and end every related process, starting with the main one.
- A different owner. A process that runs as another user or as root needs administrator rights. Activity Monitor asks for your password. If you do not recognize the process, leave it alone.
- The whole system is stuck. If the pointer moves but nothing responds, or the screen is frozen, wait a few minutes. If it stays frozen, hold the power button until the Mac turns off, then start it again. This is a last resort, because it risks losing unsaved work in every app and can sometimes leave disk errors that the First Aid chapter covers later.
On a laptop with Touch ID, the power button is the Touch ID button. On desktop Macs, hold the power button for about ten seconds.
After the force quit
- Reopen the app. If it offers to restore windows or recover documents, accept the recovery.
- Check whether the problem comes back. A single freeze is often a one-off event.
- If it recurs, note what you were doing. Repeat freezes in one app point to its preferences, a damaged file or an incompatible version, which later chapters address. Freezes across many apps point to the disk, memory or the system itself.
Common errors
| Mistake | Result | Better approach |
|---|---|---|
| Force quitting at once | Lost work in an app that was only busy | Wait several minutes and watch CPU use |
| Repeated force quits of one app | The underlying fault is never found | Move on to preferences and safe mode |
| Using `killall` with a common name | Several processes end, including helpers | Use `pgrep` and `kill` with a specific PID |
| Using `kill -9` first | The app has no chance to save or clean up | Send plain `kill`, wait, then `kill -9` |
| Force quitting during a software update or disk copy | Damaged installs or partial files | Wait, or check the result afterward |
Exercise
An app has shown the rainbow wheel for ten minutes, and it does not appear to respond to Cmd+Q. You have opened the Force Quit Applications window, but the app is not listed. Which tool do you use next, and which two signals can it send?
Show answer
Use Activity Monitor (or Terminal). The app may be running as a helper process that the Force Quit window does not list. In Activity Monitor, the stop button offers Quit, which sends SIGTERM, and Force Quit, which sends SIGKILL. Try Quit first and use Force Quit only if the process remains.
Exercise
You run pgrep -x Notes and it prints 812. Write the commands that politely ask the process to end, wait five seconds, and then force it to stop.
Show answer
kill 812, then sleep 5, then kill -9 812. The first command sends SIGTERM so the app can save and clean up. The second gives it time. The third sends SIGKILL, which the process cannot ignore.
Exercise
Why is killall Finder safe, while killall with the name of a system process such as WindowServer is not?
Show answer
macOS restarts Finder automatically, so the desktop returns within a moment. WindowServer draws the display for the whole login session. Ending it logs you out and loses unsaved work in every open app.