Fix com.apple.launchd.peruser Crash Loop on macOS
The com.apple.launchd.peruser process enters a crash loop, causing high CPU usage, system hangs, and repeated crash reports. This guide explains root causes and provides step-by-step fixes.
Symptoms
Users experiencing the com.apple.launchd.peruser crash loop may notice the following:
- Repeated pop-up crash reports for
com.apple.launchd.peruser. - High CPU usage (often 100% on one core) by
launchdor related processes. - System becomes sluggish, unresponsive, or freezes intermittently.
- Applications fail to launch or crash unexpectedly.
- Console logs show repeated entries like
com.apple.launchd.peruser: (pid X) exited with code Yfollowed by immediate restart. - Login items may not load properly.
Root Causes
The crash loop typically stems from one of the following:
- Corrupted user launchd plist files in
~/Library/LaunchAgents/or/Library/LaunchAgents/. - Third-party software conflicts (e.g., antivirus, VPN, or system utility tools) that inject agents into launchd.
- Damaged user account preferences or cache files.
- System-level launchd database corruption in
/var/db/com.apple.xpc.launchd/. - macOS update glitches leaving behind incompatible plist versions.
- Permission errors on user library folders.
Step-by-Step Fix
Step 1: Boot into Safe Mode
- Shut down your Mac.
- Turn it on and immediately press and hold the Shift key until the login window appears (release when you see the Apple logo).
- Log in (you may need to log in multiple times in Safe Mode).
- Safe Mode disables third-party launch agents and performs a directory check. If the crash stops, a third-party agent is likely the cause.
- Restart normally to exit Safe Mode.
Step 2: Identify and Remove Problematic Launch Agents
- Open Terminal (from
/Applications/Utilities/). - List user launch agents:
ls ~/Library/LaunchAgents/ - List system launch agents:
ls /Library/LaunchAgents/ - Move suspicious plist files (especially those from recently installed apps) to a temporary folder:
mkdir ~/Desktop/backup_launchagents && mv ~/Library/LaunchAgents/com.suspect.plist ~/Desktop/backup_launchagents/ - Repeat for
/Library/LaunchAgents/(requires sudo). - Reboot and check if the crash loop persists.
Step 3: Reset User Launchd Database (Advanced)
- Boot into Recovery Mode: Restart and hold Command+R until the Apple logo appears.
- Open Terminal from the Utilities menu.
- Remove the user launchd database (replace
usernamewith your short username):rm -rf /var/db/com.apple.xpc.launchd/disabled.$(id -u username) - Reboot.
Step 4: Repair Disk Permissions and Verify Disk
- In Recovery Mode, open Disk Utility.
- Select your startup disk and click First Aid → Run.
- Wait for completion, then reboot.
Step 5: Reset NVRAM and SMC
- Intel Macs: Shut down, then press Option+Command+P+R for 20 seconds after the chime. For SMC, follow Apple's guide.
- Apple Silicon Macs: Simply restart (NVRAM reset is automatic). SMC reset is not applicable.
Alternative Fixes
- Create a new user account: If the crash only affects one user, create a new admin account via System Settings → Users & Groups. Transfer data if needed.
- Reinstall macOS: Boot into Recovery Mode and reinstall macOS without erasing data (preserves files).
- Use EtreCheck or similar tools to scan for problematic launch daemons and agents.
Prevention
- Regularly update macOS and software to avoid compatibility issues.
- Avoid installing unnecessary third-party launch agents.
- Before installing new software, check reviews for known conflicts with launchd.
- Maintain regular backups (Time Machine) to recover from corruption.
- Periodically review
~/Library/LaunchAgents/and/Library/LaunchAgents/for unknown plists.
By following these steps, most users can resolve the com.apple.launchd.peruser crash loop and restore normal system performance. If the issue persists, contact Apple Support or consult Apple Communities for further assistance.
Was this solution helpful?