Karabiner-Elements: M1 Mac Mini Kernel Panic on Restart

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 63 (2 by maintainers)

Commits related to this issue

Most upvoted comments

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.

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

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

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

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.

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.

Me too on MBP M1 😦

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.

still looking to remap my right cvontrol key to right option, any hints please?

Here is how I map esc to grave tilde and then CAPSLOCK to esc:

hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000029,"HIDKeyboardModifierMappingDst":0x700000035},{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}'

More details at: https://www.nanoant.com/mac/macos-function-key-remapping-with-hidutil

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! 😃

Unchecking karabiner_grabber and karabiner_observer in Input Monitoring in Privacy & Security in System Preferences on my M1 Mac Mini stops the panic and the “restarted due to problem” messages after restarts. This of course renders Karabiner inoperable. When I rechecked them as a test, then restarted the Mac Mini, the “restarted due to problem” message reappeared. Before I came across this thread and realized Karabiner might be causing the problem, an Apple advisor told me I should reinstall the operating system on my brand new Mac Mini. I was reluctant to do that and I didn’t, and I’m glad I found this thread.

Hi @patlux . I was using Karabiner Elements to map cmd + hjkl to the arrows as well. I have found a way to do it using Keyboard Maestro that is working well for me.

Here is a video explaining how I set it up.

And here are the files if you want to try it: Vim (Command JKHL) Macros.kmmacros.zip

Note that when you import the macro group it will be disabled by default. You will need to enable the group for it to work.

I don’t experience this issue on 11.2 RC anymore

@ogomez92 I did it with hidutil:

hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x0007000000e7,
 "HIDKeyboardModifierMappingDst":0x0007000000e6}]}'

You can also create a file which will execute the command on login.

/edit: Oh sorry, you want to swap control with option. The snippet above maps the right cmd to right option. Just change the HIDKeyboardModifierMappingSrc to 0x0007000000e4. You can find all options here: https://developer.apple.com/library/archive/technotes/tn2450/_index.html

Still kernel panics on 11.2 RC. I just uninstalled karabiner. I hope the crashes will stop now. Really annoying. Tried Hammerspoon but the inputs feels quite slow to me…

Are there any other ways to map cmd + hjkl to the arrows? Mapping caps lock to esc works great with hidutil 👍

really?

yeah, using it over a day now with M1 Mac mini, no kernel panic and, as a bonus, boot up speed become almost twice as fast.

It’s so sad when a must-have app on mac causing kernel panic, yet the developer didn’t bother to investigate and closed the issue right away. We can do the tests all you want, just don’t close it like this. The panic is consistent, I don’t understand why it’s still there for over a month. I guess it’s time to say goodbye.

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