How to Deal With Frequent Kernal Panics: 2017 iMac Retina 4K 21.5 Inch

My 2017 iMac running Monterey started having frequent kernel panics just before I installed Mac OS 12.4, about two weeks ago. They continued after installing 12.4. Sometimes there are several in a day in rapid succession (four in the space of 30 minutes) and some days there are none at all.


The iMac is factory clean: No third party RAM or SSD.


What I have done so far:


  • Disconnected an external display and adapter
  • Disconnected a USB hub
  • Did not disconnect three external hard drives
  • Did not disconnect a Logitech USB Keyboard
  • Booted in safe mode and ran DU on the boot drive - no problems reported
  • Booted in safe mode and reinstalled Monterey
  • Booted in Diagnostic Mode - no problems reported
  • Ran EtreCheck numerous times


Most recent EtreCheck report.



The boot args issue noted in the report was as a result of a suggestion in this post:


https://apple.stackexchange.com/questions/441239/macbook-pro-16-inch-2019-restarts-after-sleep-or-locking-the-screen/441383#441383


BTW, the suggestion did not work and did not result in kernel panic reports that are symbolicated.


The 3rd party extensions mentioned in the report are all kexts that have been around a while. They showed up in the EtreCheck reports only yesterday. If anyone has knowledge on whether or not it is safe to remove them, please let me know.


Finally, if this is a hardware problem, is it worth getting an old iMac like this repaired or should I just get a new one? I was planning on replacing it this Fall anyway.


Note that I live in rural Thailand, so no Genius Bar. There is an Apple contracted repair center.



iMac 21.5″ 4K, macOS 12.4

Posted on May 31, 2022 3:16 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 17, 2022 9:27 PM

Well, it wasn't because of the Samsung SSD connected to the USB-C/Thunderbolt port. After I switched to a USB-A port I had another kernel panic.


However, an although I can't be certain, I may have figured out the cause of the kernel panics on my 2017 iMac running Monterey.


After I'd spent nearly a month trying different things and had mostly given up, I recalled that LaunchBar had been behaving oddly. For example, almost every time the machine booted up, LauncBar complained that it was unable to process the Applications indexing rule. I figured that this was a bogus error message as I was able to launch applications with LaunchBar as usual. Then I recalled that if I manually rebooted the machine, it always took a very long time for LaunchBar to quit. It was always the last app to quit.


So, I had a look at LaunchBar's Index. It turns out that there were two indexing rules called "Applications"; one in the General section and one in the Files & Folders section. I had a look at the unusual one and saw that it contained a real mishmash of locations and "Search for". None of it seemed like anything I would set up, so I deleted the rule.


Since doing so I have had not one single kernel panic. It's been nine days. I have written to Objective Development about the issue, but have yet to hear back.


I won't feel comfortable until a few weeks have passed, but this may be it.


Similar questions

27 replies
Question marked as Top-ranking reply

Jun 17, 2022 9:27 PM in response to Buadhai

Well, it wasn't because of the Samsung SSD connected to the USB-C/Thunderbolt port. After I switched to a USB-A port I had another kernel panic.


However, an although I can't be certain, I may have figured out the cause of the kernel panics on my 2017 iMac running Monterey.


After I'd spent nearly a month trying different things and had mostly given up, I recalled that LaunchBar had been behaving oddly. For example, almost every time the machine booted up, LauncBar complained that it was unable to process the Applications indexing rule. I figured that this was a bogus error message as I was able to launch applications with LaunchBar as usual. Then I recalled that if I manually rebooted the machine, it always took a very long time for LaunchBar to quit. It was always the last app to quit.


So, I had a look at LaunchBar's Index. It turns out that there were two indexing rules called "Applications"; one in the General section and one in the Files & Folders section. I had a look at the unusual one and saw that it contained a real mishmash of locations and "Search for". None of it seemed like anything I would set up, so I deleted the rule.


Since doing so I have had not one single kernel panic. It's been nine days. I have written to Objective Development about the issue, but have yet to hear back.


I won't feel comfortable until a few weeks have passed, but this may be it.


Jun 2, 2022 8:17 PM in response to Buadhai

It looks like you have done a thorough job checking all the non invasive possibilities. Next I would suggest putting a clean install of MacOS on an external drive (do not migrate/transfer anything for this test) and booting from that as a clean slate. If a clean install with no 3rd party drivers or software still panics then its a hardware problem. However If there are no panics we can conclude something you had installed was incompatible with 12.4+.


Heavy I/o could be file syncing. I see you have both drop box and Google drive installed... they aren’t cyclically trying to sync/update the same set of files are they?

Jun 6, 2022 3:34 PM in response to Buadhai

Although it may be too early to tell, it now appears that the kernel panics were caused by connecting a Samsung SSD to the iMac via a USB-C/Thunderbolt port. It was suggested that I swap the C-C cable for a C-A cable and connect the drive to one of the USB-A ports. I did that last Friday and haven't had a panic since then. It's still early days (96 hours), but I'm full of hope.

Jun 1, 2022 3:19 PM in response to Allan Jones

Allan Jones wrote:

Before resorting to reinstalling the OS, get rid of the malware which is likely adware. Some may indicate that you overrode system warnings to install them.

EtreCheck identified several suspects and gives the file paths to find and evict them. Those have to go before making any judgements about further action. If you do not want to manually find and evict the malware, you can use the only removal tools most of the greybeards around here trust, MalwareBytes.

Most malware like you have comes from dicey download hosting sites so get MWB ONLY from its developer's site:

https://www.malwarebytes.com/mac

The free version use run manually. The paid version runs in the background to stop Malware at the door.


Can you please be specific about what "Malware" I have? There are some unsigned apps, including a bunch of my own, but I've already checked all of them and found them to be legit. Please help me identify other stuff that needs removing.


I've verified that no third party kexts are running:


MrMuscle:~ mnewman$ /usr/bin/kmutil showloaded | grep -v com.apple
No variant specified, falling back to release
Index Refs Address            Size       Wired      Name (Version) UUID <Linked Against>
MrMuscle:~ mnewman$

If there's a better way to do that, please let me know.

Jun 1, 2022 12:50 PM in response to Buadhai

Before resorting to reinstalling the OS, get rid of the malware which is likely adware. Some may indicate that you overrode system warnings to install them.


EtreCheck identified several suspects and gives the file paths to find and evict them. Those have to go before making any judgements about further action. If you do not want to manually find and evict the malware, you can use the only removal tools most of the greybeards around here trust, MalwareBytes.


Most malware like you have comes from dicey download hosting sites so get MWB ONLY from its developer's site:


https://www.malwarebytes.com/mac


The free version use run manually. The paid version runs in the background to stop Malware at the door.

Jun 1, 2022 10:00 PM in response to Buadhai

I have now run an extended memory test using MemTest86 V9.4. No errors at all:


MemTest86 V9.4 Free (Build: 1000) Result summary
PassMark Software
www.passmark.com
Test Start Time: 2022-06-02 00:00:27
Elapsed Time: 3:22:42
CPUs Active: 4
CPU Temperature Min/Max/Ave: 67C/81C/72C
RAM Temperature Min/Max/Ave: 100C/142C/125C
# Tests Passed: 48/48 (100%)
Lowest Error Address: N/A
Highest Error Address: N/A
Bits in Error Mask: 0000000000000000
Bits in Error: Total: 0 Min: 0 Max: 0 Avg: 0
Max Contiguous Errors: 0



Jun 1, 2022 11:31 AM in response to Buadhai

Hello Buadhai,


Thank you for reaching out in Apple Support Communities. You've done an excellent job with the troubleshooting steps that were performed. There's an additional step we recommend to do. Our suggestion is to reinstall the macOS software on your Mac. This will install a fresh copy of macOS without deleting your data. If needed, here's how to perform this step: How to reinstall macOS - Apple Support


We look forward to hearing back from you with an update.


Kind regards.

Jun 1, 2022 10:02 PM in response to Shannon_DN

With the steps that have been completed, we would recommend reaching out to Apple Support to look into possible service options. You can do that here: Apple Support


I'm not sure I want to do that. I ran an extensive RAM check which found no errors. DU and SMART Reporter both say the internal SSD is fine. That pretty much leaves replacing the motherboard.


Is it really worth it to do such a thing on a five year old iMac? I think not.

Jun 2, 2022 6:48 PM in response to Buadhai

I still don't understand EtreCheck's heavy IO usage note. Here's top after the machine has been up without a crash for about 12 hours:


Processes: 580 total, 2 running, 578 sleeping, 2146 threads            08:45:23
Load Avg: 2.00, 1.70, 1.55  CPU usage: 4.28% user, 6.86% sys, 88.84% idle
MemRegions: 73934 total, 2879M resident, 0B private, 1944M shared.
PhysMem: 14G used (2270M wired), 1567M unused.
VM: 20T vsize, 0B framework vsize, 0(0) swapins, 0(0) swapouts.
Networks: packets: 1765422/1969M in, 881284/543M out.
Disks: 8464388/151G read, 401988/5989M written.

There's very little processor load and absolutely no swapins/outs. I don't see how that constitutes heavy IO.

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.

How to Deal With Frequent Kernal Panics: 2017 iMac Retina 4K 21.5 Inch

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