everyday mac tools

"Your computer was restarted because of a problem" on a Mac

· 6 min read

After a Mac restarts on its own, it may greet you with “Your computer was restarted because of a problem.” (Some people search for it as “your computer restarted because of a problem.”) It means the Mac had a kernel panic: the core of macOS hit an error it couldn’t recover from and restarted to protect your data. One panic after months of normal use is worth a note and nothing more. Repeated panics have a cause you can track down.

What a kernel panic is

The kernel is the part of macOS that talks to the hardware and runs everything else. If it hits something it can’t safely continue past, such as a driver writing to memory it shouldn’t, it stops and restarts the Mac rather than risk damaging files. The restart is the safety response, not the fault.

Apple’s guide says the most likely cause is faulty software, though damaged or incompatible hardware, including attached external devices, can also cause one. Software that worked for months can stop working after a macOS or app update changes something underneath it.

Besides the message, the dialog offers Ignore and Report…. Report shows the details and offers to send them to Apple. The dialog says “Click Report to see more detailed information and send a report to Apple.”

Decide whether it matters

  • One panic, then normal behavior. Click Ignore, save your work and carry on. Nothing is wrong with a Mac that panics once in a long while.
  • Two or three in a week, or the same trigger each time. Something specific is causing it. Note what you were doing and what was connected.
  • Restart after restart. Treat it as a startup problem: go to the loop section below.

Read the panic report

Every panic leaves a report. The quickest way to see it is the dialog itself: click Report… to see the details, and you choose whether to send them to Apple.

To find reports later, they’re saved as files in /Library/Logs/DiagnosticReports with “panic” in the name (on this Mac, panic-full- followed by the date, ending in .panic). List them from Terminal:

ls /Library/Logs/DiagnosticReports | grep panic

Or in Finder choose Go, then Go to Folder, and paste the folder path. Open the newest panic file with Quick Look. You don’t need to read it all. Look for:

  • The first line. It starts with panic(cpu and ends with a short reason. On this Mac, after a panic while going to sleep, the reason read hibernate_write_image encountered error, which points at the Mac saving memory to disk for sleep, not at an app.
  • The “Panicked task” line. It names the process that was running, as in pid 0: kernel_task on the same report. A named app or helper here is a strong lead; kernel_task means the kernel itself was at work.
  • A named extension. Third-party drivers and extensions identify themselves with a reverse-domain name such as com.vendor.product. If the same name appears in report after report, that’s your lead.
  • The time. Match it to what you did: plugged something in, woke the Mac, or installed an update.

If the reports name nothing third-party, the cause is likely hardware or a conflict, and the tests below are the way forward.

Work through the causes in order

  1. Unplug every accessory. Apple’s advice is to keep only an Apple keyboard and mouse attached. Remove third-party upgrades too. If the panics stop, reconnect devices one at a time and restart after each until you find the one.
  2. Update. Install macOS updates from System Settings, General, Software Update, then update any app that installs a driver or system extension: virtual audio, VPN, screen capture, security or hardware tools.
  3. Start in safe mode to see whether third-party software is involved. On a Mac with Apple silicon, shut down, hold the power button until “Loading startup options” appears, select a volume, hold Shift and click “Continue in Safe Mode”. On an Intel Mac, hold Shift right after you turn it on until the login window appears. “Safe Boot” shows in the menu bar when it worked. If the Mac is stable in safe mode, a login item or extension is the suspect. Safe mode on a Mac explained covers what it turns off.
  4. Remove the suspect. Uninstall the app or extension the report named, or the last one you added, and use the Mac normally for a few days.
  5. Run Apple Diagnostics to test the hardware. On Apple silicon, press and hold the power button until startup options load, release it when you see Options, then hold Command-D. On an Intel Mac, hold D right after you turn it on. In macOS Tahoe 26 and later you’re asked to choose a specific diagnostic.
  6. Reinstall macOS if nothing above helps. Apple lists this as the last step. What a clean install fixes explains the difference between that and erasing.

If it restarts in a loop

If the Mac panics before you can do anything, try safe mode first, because it loads less. If it can’t reach safe mode, start up from macOS Recovery, where you can run Disk Utility or reinstall macOS. macOS Recovery explained shows the key combination for each kind of Mac.

What not to do

Don’t reset settings at random or install “fixer” tools while the cause is unknown. And don’t move or rename system files to try to fix it: Apple says replacing or renaming them back won’t undo that, and you’d have to reinstall macOS.

An older Mac that panics more and more may be nearing the end of its usable life. Getting another two years out of an aging Mac helps you decide.

Questions

Is “Your computer was restarted because of a problem” serious? A single occurrence usually isn’t. It means the Mac had a kernel panic and restarted to protect itself. If it happens again and again, find the cause: a peripheral, a recently installed driver, a pending update or, less often, failing hardware.

What causes a kernel panic on a Mac? Apple says faulty software is the most likely cause. Damaged or incompatible hardware, including attached external devices, can also cause one. Third-party drivers and system extensions are common suspects.

Why does my Mac keep restarting by itself? Repeated panics. Unplug everything except the keyboard and mouse, install updates, then test in safe mode. If it still restarts, run Apple Diagnostics and look at the panic reports in Console.

Where do I find the panic report? Panic reports are saved in /Library/Logs/DiagnosticReports with “panic” in the file name. Open the folder with Finder’s Go to Folder and view the newest one with Quick Look. Right after the restart, clicking Report… on the dialog shows the same details before you choose whether to send them to Apple.