Karabiner-elements: M1 Mac Mini Kernel Panic on Restart

Created on 19 Nov 2020  Â·  20Comments  Â·  Source: pqrs-org/Karabiner-Elements

On machine restart, the dock hiding animation freezes midway, which to me indicates a hang. On booting back to desktop, the crash reporter appears with the below text. I cut off the long list of loaded kexts but can provide those if needed.

panic(cpu 6 caller 0xfffffe0025cf84d0): "pmap_tte_remove: non-zero pagetable refcount: pmap=0xfffffdf0459337a0 ttep=0xfffffdf0bd7f8410 ptd=0xfffffdf31897a998 refcnt=0x1"
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 20B29
Kernel version: Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:10 PDT 2020; root:xnu-7195.50.7~2/RELEASE_ARM64_T8101
Fileset Kernelcache UUID: 35A645C8D62619060673BEF751E6A7AA
Kernel UUID: D8523129-E878-38BA-A8E0-1D0E8D2470B7
iBoot version: iBoot-6723.50.2
secure boot?: YES
Paniclog version: 13
KernelCache slide: 0x000000001de74000
KernelCache base:  0xfffffe0024e78000
Kernel slide:      0x000000001eae0000
Kernel text base:  0xfffffe0025ae4000
Kernel text exec base:  0xfffffe0025bac000
mach_absolute_time: 0xb36a494728
Epoch Time:        sec       usec
  Boot    : 0x5fb52e8b 0x000d0003
  Sleep   : 0x5fb5c7f5 0x0000d88d
  Wake    : 0x5fb5cbd3 0x00084eff
  Calendar: 0x5fb5dbee 0x0006946f

CORE 0 recently retired instr at 0xfffffe0025d164d0
CORE 1 recently retired instr at 0xfffffe0025d164d0
CORE 2 recently retired instr at 0xfffffe0025d164d0
CORE 3 recently retired instr at 0xfffffe0025d164d0
CORE 4 recently retired instr at 0xfffffe0025d164d4
CORE 5 recently retired instr at 0xfffffe0025d164d4
CORE 6 recently retired instr at 0xfffffe0025d1500c
CORE 7 recently retired instr at 0xfffffe0025d164d4
Panicked task 0xfffffe166d3918e0: 115536 pages, 461 threads: pid 0: kernel_task
Panicked thread: 0xfffffe166d3aa610, backtrace: 0xfffffe401acd3780, tid: 104
          lr: 0xfffffe0025bf9f7c  fp: 0xfffffe401acd37f0
          lr: 0xfffffe0025bf9d48  fp: 0xfffffe401acd3860
          lr: 0xfffffe0025d1b7d0  fp: 0xfffffe401acd3880
          lr: 0xfffffe0025d0d2fc  fp: 0xfffffe401acd3930
          lr: 0xfffffe0025bb37e8  fp: 0xfffffe401acd3940
          lr: 0xfffffe0025bf99d8  fp: 0xfffffe401acd3cd0
          lr: 0xfffffe0025bf99d8  fp: 0xfffffe401acd3d40
          lr: 0xfffffe0025bf97f4  fp: 0xfffffe002b53fda0
          lr: 0xfffffe0026391dec  fp: 0xfffffe002b53fdc0
          lr: 0xfffffe0025cf84d0  fp: 0xfffffe002b53fe40
          lr: 0xfffffe00263a6660  fp: 0xfffffe002b53fed0
          lr: 0xfffffe00263a6644  fp: 0xfffffe002b53ff60
          lr: 0xfffffe00263a5b88  fp: 0xfffffe002b53ffe0
          lr: 0xfffffe0025bb3ff4  fp: 0xfffffe401acd3d60
          lr: 0xfffffe0025c90b10  fp: 0xfffffe401acd3d90
          lr: 0xfffffe0025c2b24c  fp: 0xfffffe401acd3de0
          lr: 0xfffffe0025c36304  fp: 0xfffffe401acd3e00
          lr: 0xfffffe0025c10d30  fp: 0xfffffe401acd3e70
          lr: 0xfffffe0025c10d30  fp: 0xfffffe401acd3ee0
          lr: 0xfffffe0025c10c1c  fp: 0xfffffe401acd3f00
          lr: 0xfffffe0025bbce74  fp: 0x0000000000000000

Most helpful comment

I understand what you are saying, but I do want to mention that the problem appears after installing karabiner, and resolves after uninstalling. I have done this twice to confirm.

All 20 comments

Since Karabiner-Elements v13.0.0, it is now not related with kernel.
Thus, the panic is caused by a macOS issue.

I understand what you are saying, but I do want to mention that the problem appears after installing karabiner, and resolves after uninstalling. I have done this twice to confirm.

In that case, I guess that Karabiner-Elements triggers an issue of some other incompatible third-vendor apps with Big Sur (e.g., anti-virus software), and the issue causes kernel panic.

In that case, I guess that Karabiner-Elements triggers an issue of some other incompatible third-vendor apps with Big Sur (e.g., anti-virus software), and the issue causes kernel panic.

I am also experiencing kernel panic when restarting my M1 MacBook Air (see #2517) and uninstalling Karabiner Elements seems to be the only way to fix it. I don't have any anti-virus software installed. Actually my first thought was that Dropbox and iStatMenu might be the cause as those are not yet fully compatible with M1 Mac, so I uninstalled them but the issue persisted. Then I uninstalled Karabiner-Elements, which fixed the issue. The issue did not reemerge after installing Dropbox and iStatMenu again.

Same issue for myself - on a fresh setup, no issue without Karabiner, kernel panic with.

Does anyone have an M1 Mac with Karabiner and not getting the kernel panic on reboot? (i.e. when you reboot, it doesn't show "your computer restarted because of a problem" after logging in). Hopefully we can narrow down who all this is affecting

I get the same issue on my M1 Mac Mini.

macOS Big Sur 11.0.1 (20B29)
Karabiner-Elements 13.1.0 / 13.1.1 beta

I have not yet installed most of the software other than the OS pre-installed.
If you have Karabiner-Elements installed, your Mac will reboot immediately after the system exits (after the power LED is turned off), even if you have Quit Karabiner before the system exits. In this case, there will be no startup sound.
After the automatic reboot, you will get an error report "your computer restarted because of a problem". Considering the lack of boot sound and the error report, it seems that the kernel panic occurred before the exit sequence was completed, which led to the automatic reboot.
If you uninstall Karabiner-Elements, there is nothing wrong with it and your Mac will turn off.

I just set up my Mac Mini M1 and am getting the same error message.

Seems to consistently be triggered upon restart/shutdown. If I quit the app before shutting down, it still happens. My Mac was a migration tool setup from a 2013 15” MacBook Pro.

I have the exact same issue with my MacBook Air M1 + Big Sur 11.0.1. Every time I shutdown or restart my MBA, I get a pop up after booting up and logging in saying "your computer restarted because of a problem". I don't have any issues if I uninstall Karabinar Elements, so I'm pretty sure this app is the culprit.

Just a me too on this with 11.0.1 + Mac Mini M1.

Me too on MBP M1 :(

Same here :( Must use Karabiner Elements as I use a PC keyboard and want to invert Command/Alt..

I spent 2 hours checking my system with disk utility, removing Docker, Virtualbox and all software I thought could be the source of this crash, ended up being my lovely Karabiner Elements I use for years to remap Command and Alt. I confirm removing it fixes the issue, and I now use instructions available at https://superuser.com/questions/80976/how-to-re-map-command-and-option-keys-on-mac-os-x-with-a-pc-keyboard and MacOS settings to remap those, you can choose which keyboard you want those change on so I guess even laptop users will be happy.

So long Karabiner, I liked you before! :)

To confirm this is still happening with macOS Big Sur 11.1 (20C69) on a MacBook Pro (13-inch, M1, 2020).
I was hoping it might have been addressed by a macOS update, but not yet. Removing Karabiner Elements results in a clean reboot, reinstalling it results in a kernel panic on every shutdown.

The kernel panic did not affect the install of the 11.1 update either.

Same here... using m1 mac mini :( cannot use mac without Karabiner... but I had to uninstall it to shutdown my mac..
so sad...

I have also had to uninstall Karabiner... what a pity!!

To be clear, you shouldn’t have to uninstall Karabiner. Everything works correctly. It kernel panics at the very last step of restart and if you really want to shutdown but it keeps rebooting, click shutdown from the login screen.

To be clear, you shouldn’t have to uninstall Karabiner. Everything works correctly. It kernel panics at the very last step of restart and if you really want to shutdown but it keeps rebooting, click shutdown from the login screen.

If I don't uninstall Karabiner, I cannot shut down my Mac since it always restarts after the LED indicator goes off. Even clicking shutdown from the login screen won't shut down the Mac, it keeps restarting.

Same issue. Only thing that works for me is logging out first, then shutting down from the login screen.

Since Karabiner-Elements v13.0.0, it is now not related with kernel.
Thus, the panic is caused by a macOS issue.

However, this IS the Karabiner issue, for so many people has proved that this crash happens and ONLY happens when Karabiner is installed on M1 Mac.

The perfect solution is here:
https://github.com/pqrs-org/Karabiner-Elements/issues/2517#issuecomment-750908236

Since Karabiner-Elements v13.0.0, it is now not related with kernel.
Thus, the panic is caused by a macOS issue.

However, this IS the Karabiner issue, for so many people has proved that this crash happens and ONLY happens when Karabiner is installed on M1 Mac.

The perfect solution is here:
#2517 (comment)

@windless0530 thanks for the suggestion. I've tested my environment with your solution.
However, it seems we cannot set modifier in detail with Hammerspoon, such as 'right command', 'left command', or 'right option', etc.

Are there more tricks or solution for this case?

BR.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ox0400 picture Ox0400  Â·  3Comments

Joilence picture Joilence  Â·  3Comments

impala75 picture impala75  Â·  3Comments

LittleNewton picture LittleNewton  Â·  3Comments

Farzy picture Farzy  Â·  3Comments