Your computer was restarted because of a problem.

Hi,


My iMac keep restart every evening with error.


Please advise.


Thank you very much.


Poonyalid


Posted on Jul 1, 2020 8:51 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 1, 2020 9:13 PM

Dealing with Kernel Panics


Disconnect any third-party peripherals including any USB hubs. How to use safe mode on your Mac, Use safe mode to isolate issues with your Mac - Apple Support then boot the computer into Safe Mode: Use safe mode to isolate issues with your Mac - Apple Support and Playing Safe- what does Safe mode do? See Diagnosing problems- crash, freeze, panic, or spinning beach ball?, Don’t Panic! Understanding & Troubleshooting Kernel Panics in macOSHow to fix kernel panics after installing OS X updates | MacIssues, and If your Mac restarted because of a problem - Apple Support.


Kernel panics are indicative of possible hardware failure, so you should Check your Mac with hardware diagnostics or AHT. Kernel panic logs are found in: /Library/Logs/DiagnosticReports/ folder.


If you have no success figuring what is happening then you may need to examine the software you have running when the panics occur. Be sure it’s all current. If you must to resolve the problem erase the disk and reinstall macOS. Follow this outline to reset the computer to the factory-new state: Factory reset of your Mac - Apple Support.


Boot Into Safe Mode


  1. If your Mac isn’t already shut down, then shut it down and wait at least 30 seconds before rebooting.
  2. Immediately, at or before the chime, press and hold down the SHIFT key. 
  3. Release the key after the Apple logo and progress bar appear.
  4. Safe mode startup is much slower than normal startup, so be patient.
  5. When the Login Screen appears enter your admin password. If you use automatic login, then this means you are in safe mode.


19 replies
Question marked as Top-ranking reply

Jul 1, 2020 9:13 PM in response to Poonyalid

Dealing with Kernel Panics


Disconnect any third-party peripherals including any USB hubs. How to use safe mode on your Mac, Use safe mode to isolate issues with your Mac - Apple Support then boot the computer into Safe Mode: Use safe mode to isolate issues with your Mac - Apple Support and Playing Safe- what does Safe mode do? See Diagnosing problems- crash, freeze, panic, or spinning beach ball?, Don’t Panic! Understanding & Troubleshooting Kernel Panics in macOSHow to fix kernel panics after installing OS X updates | MacIssues, and If your Mac restarted because of a problem - Apple Support.


Kernel panics are indicative of possible hardware failure, so you should Check your Mac with hardware diagnostics or AHT. Kernel panic logs are found in: /Library/Logs/DiagnosticReports/ folder.


If you have no success figuring what is happening then you may need to examine the software you have running when the panics occur. Be sure it’s all current. If you must to resolve the problem erase the disk and reinstall macOS. Follow this outline to reset the computer to the factory-new state: Factory reset of your Mac - Apple Support.


Boot Into Safe Mode


  1. If your Mac isn’t already shut down, then shut it down and wait at least 30 seconds before rebooting.
  2. Immediately, at or before the chime, press and hold down the SHIFT key. 
  3. Release the key after the Apple logo and progress bar appear.
  4. Safe mode startup is much slower than normal startup, so be patient.
  5. When the Login Screen appears enter your admin password. If you use automatic login, then this means you are in safe mode.


Jul 10, 2020 7:32 AM in response to Poonyalid

mdworker is Spotlight.


Safe Boot from the HD, (holding Shift key down at startup), does the problem occur in Safe Mode?


Safe mode attempts to repair Disks & clears lots of caches, so if Safe Mode works try again in regular boot.


How to rebuild the Spotlight index on your Mac

If searching your Mac doesn’t return expected results, rebuilding the Spotlight index might help.


  1. Choose Apple menu () > System Preferences, then click Spotlight.
  2. Click the Privacy tab.
  3. Drag the folder or disk that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the Add (+) button and select the folder or disk to add.
  4. To add an item to the Privacy tab, you must have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for “permissions.”
  5. From the same list of locations, select the folder or disk that you just added. Then click the Remove (–) button to remove it from the list.
  6. Quit System Preferences. Spotlight will reindex the contents of the folder or disk.


Manually Rebuilding Spotlight via Terminal

If the aforementioned Spotlight control panel approach doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc. To re-index only for a specific drive, use the /Volumes path. For example, for an external drive named “MiniMe,” the command would look like this:


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.

Jul 1, 2020 9:13 PM in response to Kappy

A Troubleshooting Procedure that may Fix Problems with macOS El Capitan or Later


You should try each, one at a time, then test to see if the problem is fixed before going on to the next.


    If possible, backup your files before proceeding.


  1. Shutdown the computer and disconnect all third-party peripherals.
  2. Wait 30 seconds before you restart the computer.
  3. Resetting your Mac's PRAM and NVRAM
  4. Reset the System Management Controller (SMC)
  5. Reset your Startup Disk and Sound preferences, if needed, after resetting the PRAM.
  6. Test in safe mode to see if the problem persists, then restart normally.  Use safe mode to isolate issues with your Mac and Playing Safe - what does Safe mode do?
  7. Repair the disk by booting from the Recovery HD. Immediately after the chime hold down the Command and R keys until the Utility Menu appears. Choose Disk Utility and click on the Continue button. Select the indented (usually, Macintosh HD) volume entry from the side list.  Click on the First Aid button in the toolbar. Wait for the Done button to appear. Quit Disk Utility and return to the Utility Menu. Restart the computer from the Apple Menu.
  8. Reinstall a Combo Updater: macOS Catalina 10.15.5 Combo Update, macOS Mojave 10.14.6 Combo Update, macOS High Sierra 10.13.6 Combo Update, macOOS 10.12.6 Combo Update, OS X El Capitan 10.11.6 Combo Update.
  9. Create a New User Account Open Users & Groups preferences. Click on the lock icon and enter your Admin password when prompted. On the left under Current User click on the Add [+] button under Login Options. Setup a new Admin user account. Upon completion log out of your current account then log into the new account. If your problems cease, then consider switching to the new account and transferring your files to it - Transferring files from one User Account to another.
  10. Reinstall OS X by booting from the Recovery HD using the Command and R keys. When the Utility Menu appears select Install OS X then click on the Continue button.
  11. Erase and Install OS X Restart the computer. Immediately after the chime hold down the Command and R keys until the Apple logo appears. When the Utility Menu appears:


     1. Select Disk Utility from the Utility Menu and click on the Continue button.

     2. When Disk Utility loads select the drive (out-dented entry) from the Device list.

     3. Click on the Erase button in Disk Utility's toolbar. A panel will drop down.

     4. Set the Format type to APFS (for SSDs only) or Mac OS Extended (Journaled.)

     5. Click on the Apply button, then wait for the Done button to activate and click on it.

     6. Quit Disk Utility and return to the Utility Menu.

     7. Select Install OS X and click on the Continue button.


Jul 8, 2020 7:47 PM in response to Poonyalid

Hi,


I finally found all the Kernel Panic log files.


Many sorry for my zero knowledge on Mac.


I uploaded log files to my dropbox, could you please help?


https://www.dropbox.com/s/fddr8k5wf3yrkbb/Kernel%20Panic%20-%20iMac%20Big.zip?dl=0


I just reset and clear cache on Chrome and Safari.


Today I just reset PRAM.


The MacOS is now High Sierra. I think it can upgrade MacOS to latest Catalina.


If I repair High Sierra or upgrade to Catalina, will the data lost?


Thank you very much.

Poonyalid

Jul 10, 2020 5:02 AM in response to Poonyalid

Hi,


Today the Kernel Panic log is the "mdworker".


What is that? Does it about Memory (RAM) problem?


Below are the log:



Anonymous UUID: 01724E4F-3B01-4D17-C402-74BBA273CCD5


Fri Jul 10 17:55:44 2020


*** Panic Report ***

panic(cpu 2 caller 0xffffff7f90c2f71f): "sfree on invalid allocation at 0xffffff8044c240b0"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/Sandbox_executables/Sandbox-765.70.1/src/kext/smalloc.c:248

Backtrace (CPU 2), Frame : Return Address

0xffffff9134063300 : 0xffffff800fc6ae56

0xffffff9134063350 : 0xffffff800fd94434

0xffffff9134063390 : 0xffffff800fd86604

0xffffff9134063400 : 0xffffff800fc1ce60

0xffffff9134063420 : 0xffffff800fc6a8cc

0xffffff9134063550 : 0xffffff800fc6a68c

0xffffff91340635b0 : 0xffffff7f90c2f71f

0xffffff91340635e0 : 0xffffff7f90c1e19c

0xffffff9134063600 : 0xffffff7f90c33773

0xffffff9134063620 : 0xffffff7f90c263bd

0xffffff9134063660 : 0xffffff7f90c26172

0xffffff9134063690 : 0xffffff8010300fb4

0xffffff91340636b0 : 0xffffff80100eb21d

0xffffff91340636d0 : 0xffffff800fe8618f

0xffffff9134063720 : 0xffffff800fe9fac0

0xffffff9134063b00 : 0xffffff80100e5520

0xffffff9134063b60 : 0xffffff800fea0c09

0xffffff9134063b80 : 0xffffff800fe85948

0xffffff9134063db0 : 0xffffff800feabc8f

0xffffff9134063ef0 : 0xffffff800feba189

0xffffff9134063f40 : 0xffffff8010202588

0xffffff9134063fa0 : 0xffffff800fc1d646

Kernel Extensions in backtrace:

com.apple.kext.AppleMatch(1.0d1)[2D2996CA-A15E-39E6-9D6B-2BE6DF131972]@0xffffff7f90c1d000->0xffffff7f90c21fff

com.apple.security.sandbox(300.0)[BDFF700A-6746-3643-A0A1-852628695B04]@0xffffff7f90c22000->0xffffff7f90c42fff

dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[CC716BFE-4F62-33A3-BA21-931EE1F91097]@0xffffff7f90c03000

dependency: com.apple.kext.AppleMatch(1.0.0d1)[2D2996CA-A15E-39E6-9D6B-2BE6DF131972]@0xffffff7f90c1d000

dependency: com.apple.iokit.IOStorageFamily(2.1)[F27A8A2A-6662-3608-83BD-415037509E01]@0xffffff7f90556000


BSD process name corresponding to current thread: mdworker




Thank you very much.

Poonyalid

Jul 15, 2020 6:20 AM in response to Poonyalid

Hi,


Last two days, I entered safe mode and shutdown two times already.


Also I rebuild the Spotlight index by go through System Preferences, then click Spotlight as follow your instruction.


Yesterday no Kernel Panic anymore.


But today Kernel Panic two times.


Please see attachment.


Thank you very much.

Poonyalid



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Your computer was restarted because of a problem.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.