Contribute
Register

Random kernel panics since macOS Ventura

Status
Not open for further replies.
Joined
Apr 6, 2020
Messages
76
Motherboard
MSI Z590 Torpedo
CPU
i9-10900K
Graphics
RX 6900 XT
Mac
  1. iMac
Hi there,

since I've updated my system from Monterey to Ventura, I've been having problems with occasional reboots.
I updated everything at once: macOS, OpenCore and my kexts, so I don’t know how to narrow it down.

Most of the time I can't use it for even 3 minutes until it reboots out of nowhere due to a kernel panic. I don’t need to be doing anything special, it happens in idle too.
I just managed to copy the crash report before the next kernel panic happened:

Code:
panic(cpu 6 caller 0xffffff8012d4aee3): Kernel trap at 0xffffff8012ce7c72, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffff7f8000a7a0, CR3: 0x000000064b19217b, CR4: 0x00000000003626e0
RAX: 0xffffff801ac00000, RBX: 0xffffff7f8000a780, RCX: 0x03fffffe03793d58, RDX: 0xffffff7f80000000
RSP: 0xffffffcb140f7c90, RBP: 0xffffffcb140f7cc0, RSI: 0xffffff801a82c000, RDI: 0x0000000000000000
R8:  0xffffff805e4bf510, R9:  0xffffffcb140f7ec0, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0xffffff801a82c000, R13: 0xffffff8018800000, R14: 0x000000000ba41000, R15: 0xffffff805e4f5600
RFL: 0x0000000000010a02, RIP: 0xffffff8012ce7c72, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0xffffff7f8000a7a0, Error code: 0x0000000000000000, Fault CPU: 0x6, PL: 1, VF: 5

Panicked task 0xffffff952749adf8: 4 threads: pid 674: MTLCompilerServi
Backtrace (CPU 6), panicked thread: 0xffffff99f4241598, Frame : Return Address
0xffffffcb140f7670 : 0xffffff8012bedf9d
0xffffffcb140f76c0 : 0xffffff8012d5b786
0xffffffcb140f7700 : 0xffffff8012d4aa10
0xffffffcb140f7750 : 0xffffff8012b88951
0xffffffcb140f7770 : 0xffffff8012bee27d
0xffffffcb140f7860 : 0xffffff8012bed929
0xffffffcb140f78c0 : 0xffffff80133e0ecb
0xffffffcb140f79b0 : 0xffffff8012d4aee3
0xffffffcb140f7b30 : 0xffffff8012d4abd2
0xffffffcb140f7b80 : 0xffffff8012b88951
0xffffffcb140f7ba0 : 0xffffff8012ce7c72
0xffffffcb140f7cc0 : 0xffffff8012c92a27
0xffffffcb140f7ef0 : 0xffffff8012d4b239
0xffffffcb140f7fa0 : 0xffffff8012b8887f

Process name corresponding to current thread (0xffffff99f4241598): MTLCompilerService
Boot args: agdpmod=pikera alcid=12 igfxonln=1

Mac OS version:
22A400

Kernel version:
Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64
Kernel UUID: BF7C9676-EF23-3E8D-A2E2-25DAC63091B6
roots installed: 0
KernelCache slide: 0x0000000012800000
KernelCache base:  0xffffff8012a00000
Kernel slide:      0x00000000128dc000
Kernel text base:  0xffffff8012adc000
__HIB  text base: 0xffffff8012900000
System model name: iMac20,2 (Mac-AF89B6D9451A490B)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 81680707555
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x00000013048cb1d7
  Sleep   : 0x0000000000000000 0x0000000000000000 0x0000000000000000
  Wake    : 0x0000000000000000 0x00000014a99273f8 0x0000000000000000
Compressor Info: 0% of compressed pages limit (OK) and 0% of segments limit (OK) with 0 swapfiles and OK swap space
Zone info:
  Zone map: 0xffffff805a3f9000 - 0xffffffa05a3f9000
  . PGZ   : 0xffffff805a3f9000 - 0xffffff805e3fa000
  . VM    : 0xffffff805e3fa000 - 0xffffff852a72d000
  . RO    : 0xffffff852a72d000 - 0xffffff86c3d93000
  . GEN0  : 0xffffff86c3d93000 - 0xffffff8b900c6000
  . GEN1  : 0xffffff8b900c6000 - 0xffffff905c3f9000
  . GEN2  : 0xffffff905c3f9000 - 0xffffff952872c000
  . GEN3  : 0xffffff952872c000 - 0xffffff99f4a5f000
  . DATA  : 0xffffff99f4a5f000 - 0xffffffa05a3f9000
  Metadata: 0xffffffcb16555000 - 0xffffffcb36555000
  Bitmaps : 0xffffffcb36555000 - 0xffffffcb42555000

Any idea where I should look into?

macOS Ventura 13.0.1
OC 0.8.6
All kexts also up to date according to OCAT
My kexts are: Lilu, Whatevergreen, USBMap, AppleALC. Hopefully I haven’t forgotten any, but I think that’s that.

I’d post my EFI folder too, but I haven’t gotten far enough yet to mount my EFI and copy it without my system crashing. Maybe the crash report has some answers already. Thank you so much.
 
The kernel panic is related to MTLCompilerService.

MTLCompilerService is a compiler for metal shaders, that can pass information directly to the GPU. It was released in iOS 8 as an alternative to using OpenGL. There’s a variety of performance reasons for the switch, though Apple fully supports use of both currently (with Metal being their preferred route).

Basically it’s what runs between your application and your GPU/Video Card to speed up graphics processing and makes things prettier.

My guess would be you need to add some DeviceProperties to your config.plist to have your RX6900 XT work more harmoniously with macOS.

Maybe a read of this guide by @miliuco might be in order.

 
@Edhawk Hi there and thanks for your help! I was just about to post that it seems to be fixed now (fingers crossed, it's only been 5 minutes or so).
It seems OC 0.8.6 was the culprit. I rolled back to 0.8.5 and not a single kernel panic since then. But I'll keep you posted and, if necessary, check out the link you've shared. Thanks!
 
It still happens sometimes, but I can't see any pattern at all. Completely impossible to reproduce. Once it starts happening, it happens all the time. Then I change anything meaningless (like upgrading to 0.8.6 just to roll back to 0.8.5) and the panicking stops. Once it's fixed, it stays fixed until I touch it again.

I know this doesn't make sense, but just from the looks of it it's like my EFI setup seems so fragile, that the slightest touches would cause these kernel panics. o_O

That made me check that link of yours. I added my GPU's device ID and the keys "ATY,Belknap", "ATY,Carswell" and "ATY,Deepbay". I remember doing that back when Apple killed AMD cards with Monterey 12.1 and adding these keys fixed what Apple broke. But I removed them again since no longer needed when 12.2 or 12.3 came out.

So let's see if those keys fix my mysterious kernel panic issues... thanks again, will report back!
 
BTW, I believe my kernel panic issue was related to this and has been fixed. Haven't gotten any more kernel panics since then.

Edit: no, nervermind… it just happened again that I restarted the PC and when macOS finished booting, there was an error message saying that my Mac restarted because of a problem. I don’t know why this keeps happening every now and then.
 
Last edited:
BTW, I believe my kernel panic issue was related to this and has been fixed. Haven't gotten any more kernel panics since then.

Edit: no, nervermind… it just happened again that I restarted the PC and when macOS finished booting, there was an error message saying that my Mac restarted because of a problem. I don’t know why this keeps happening every now and then.
In /Library/Logs/DiagnosticReports, try deleting all the logs related to shutdown_ and wake and see if they come back after normal reboot or shut down.
 
@Jasonhacks
Thanks!
I removed the entire content in that folder and rebooted. My PC successfully shut down and rebooted without a kernel panic. They didn't come back, the folder is still empty.

You think that macOS wasn't really getting kernel panics lately but was just giving me that error message over and over again because of those log files? Is that it?
 
Had this issue and it seems to have resolved by bumping up the CPU voltage a bit in BIOS.
 
A week ago, my hack suddenly died then crashing and restarting within a few minutes after start — out of the blue.

I booted into Linux and messages about PCIe errors displayed. I reseated M.2 drive and M.2 wifi adapter and all stable again for more than a week.

I can see why Apple is welding these things together.
 
Status
Not open for further replies.
Back
Top