Karabiner-Elements: Karabiner Elements causes Apple silicon MacBook Air to crash during system shutdown

After I installed Karabiner Elements on the new Apple silicon MacBook Air, the system crashes during the shutdown process. The system restarts due to the crash no matter whether I choose to shut down or restart. In the latter situation, at first glance I cannot tell whether the restart is due to a crash or it is a “successful” restart. However, I know there is a crash because the system shows the crash report every time after the restart. Uninstalling Karabiner Elements solves the problem, and reinstalling Karabiner Elements makes it crash again, so it is highly likely that Karabiner Elements is the cause. I will uninstall Karabiner Elements for now and wait for the developer to fix the issue.

The following is the crash report:

panic(cpu 5 caller 0xfffffe0027cd84d0): "pmap_tte_remove: non-zero pagetable refcount: pmap=0xfffffdf03a5265c0 ttep=0xfffffdf1758d4408 ptd=0xfffffdf144c423c0 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: 0x000000001fe54000
KernelCache base:  0xfffffe0026e58000
Kernel slide:      0x0000000020ac0000
Kernel text base:  0xfffffe0027ac4000
Kernel text exec base:  0xfffffe0027b8c000
mach_absolute_time: 0x11685cc241
Epoch Time:        sec       usec
  Boot    : 0x5fb733bd 0x00032378
  Sleep   : 0x00000000 0x00000000
  Wake    : 0x00000000 0x00000000
  Calendar: 0x5fb73fe2 0x000d4ecb

CORE 0 recently retired instr at 0xfffffe0027cf64d0
CORE 1 recently retired instr at 0xfffffe0027cf64d0
CORE 2 recently retired instr at 0xfffffe0027cf64d0
CORE 3 recently retired instr at 0xfffffe0027cf64d0
CORE 4 recently retired instr at 0xfffffe0027cf64d4
CORE 5 recently retired instr at 0xfffffe0027cf500c
CORE 6 recently retired instr at 0xfffffe0027cf64d4
CORE 7 recently retired instr at 0xfffffe0027cf64d4
Panicked task 0xfffffe166cef5f18: 69196 pages, 447 threads: pid 0: kernel_task
Panicked thread: 0xfffffe166cf0dfb8, backtrace: 0xfffffe3097233780, tid: 104
		  lr: 0xfffffe0027bd9f7c  fp: 0xfffffe30972337f0
		  lr: 0xfffffe0027bd9d48  fp: 0xfffffe3097233860
		  lr: 0xfffffe0027cfb7d0  fp: 0xfffffe3097233880
		  lr: 0xfffffe0027ced2fc  fp: 0xfffffe3097233930
		  lr: 0xfffffe0027b937e8  fp: 0xfffffe3097233940
		  lr: 0xfffffe0027bd99d8  fp: 0xfffffe3097233cd0
		  lr: 0xfffffe0027bd99d8  fp: 0xfffffe3097233d40
		  lr: 0xfffffe0027bd97f4  fp: 0xfffffe002d623da0
		  lr: 0xfffffe0028371dec  fp: 0xfffffe002d623dc0
		  lr: 0xfffffe0027cd84d0  fp: 0xfffffe002d623e40
		  lr: 0xfffffe0028386660  fp: 0xfffffe002d623ed0
		  lr: 0xfffffe0028386644  fp: 0xfffffe002d623f60
		  lr: 0xfffffe0028385b88  fp: 0xfffffe002d623fe0
		  lr: 0xfffffe0027b93ff4  fp: 0xfffffe3097233d60
		  lr: 0xfffffe0027c70b10  fp: 0xfffffe3097233d90
		  lr: 0xfffffe0027c0b24c  fp: 0xfffffe3097233de0
		  lr: 0xfffffe0027c16304  fp: 0xfffffe3097233e00
		  lr: 0xfffffe0027bf0d30  fp: 0xfffffe3097233e70
		  lr: 0xfffffe0027bf0d30  fp: 0xfffffe3097233ee0
		  lr: 0xfffffe0027bf0c1c  fp: 0xfffffe3097233f00
		  lr: 0xfffffe0027b9ce74  fp: 0x0000000000000000

last started kext at 1255031128: com.apple.filesystems.autofs	3.0 (addr 0xfffffe0027a40000, size 16384)
last stopped kext at 34739838525: com.apple.driver.usb.AppleUSBHostPacketFilter	1.0 (addr 0xfffffe0027930000, size 16384)
loaded kexts:
com.apple.filesystems.autofs	3.0
com.apple.fileutil	20.036.15
com.apple.fsplaceholder	1.13.2
com.apple.driver.AppleTopCaseHIDEventDriver	4000.27
com.apple.iokit.IOBluetoothSerialManager	8.0.1f5
com.apple.driver.AppleBiometricServices	1
com.apple.filesystems.apfs	1677.50.1
com.apple.driver.BCMWLANFirmware4378.Hashstore	1
com.apple.driver.SEPHibernation	1
com.apple.driver.CoreKDL	1
com.apple.driver.AppleUSBDeviceNCM	5.0.0
com.apple.driver.AppleThunderboltIP	4.0.3
com.apple.driver.AppleSmartBatteryManager	161.0.0
com.apple.driver.AppleALSColorSensor	1.0.0d1
com.apple.driver.AppleAOPVoiceTrigger	11.5
com.apple.nke.l2tp	1.9
com.apple.filesystems.tmpfs	1
com.apple.IOTextEncryptionFamily	1.0.0
com.apple.filesystems.hfs.kext	556.41.1
com.apple.security.BootPolicy	1
com.apple.BootCache	40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.driver.ApplePMP	1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.driver.ApplePMPFirmware	1
com.apple.driver.AppleSmartIO2	1
com.apple.AppleEmbeddedSimpleSPINORFlasher	1
com.apple.driver.AppleDPDisplayTCON	1
com.apple.driver.AppleTAS5770LAmp	437.96
com.apple.driver.AppleCS42L83Audio	437.96
com.apple.driver.AppleSPMIPMU	1.0.1
com.apple.driver.AppleAVE2	401.63.1
com.apple.driver.AppleT8020SOCTuner	1
com.apple.driver.AppleJPEGDriver	4.6.0
com.apple.driver.AppleAVD	373
com.apple.driver.AppleT8103CLPCv3	1
com.apple.AGXG13G	172.20.9
com.apple.driver.AppleMobileDispH13G-DCP	140.0
com.apple.driver.usb.AppleUSBHostT8103	1
com.apple.driver.AudioDMAController-T8103	1.53
com.apple.driver.AppleS5L8960XNCO	1
com.apple.driver.AppleT8103PMGR	1
com.apple.driver.AppleS8000AES	1
com.apple.driver.AppleS8000DWI	1.0.0d1
com.apple.driver.AppleS5L8960XWatchDogTimer	1
com.apple.driver.AppleInterruptController	1.0.0d1
com.apple.driver.AppleT8020DART	1
com.apple.driver.AppleBluetoothModule	1
com.apple.driver.AppleSamsungSerial	1.0.0d1
com.apple.driver.AppleBCMWLANBusInterfacePCIe	1
com.apple.driver.AppleS5L8920XPWM	1.0.0d1
com.apple.driver.AppleS5L8940XI2C	1.0.0d2
com.apple.driver.AppleSPIMC	1
com.apple.driver.AppleT8101	1
com.apple.driver.AppleM68Buttons	1.0.0d1
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.iokit.IOKitRegistryCompatibility	1
com.apple.iokit.EndpointSecurity	1
com.apple.driver.AppleDiskImages2	1
com.apple.AppleSystemPolicy	2.0.0
com.apple.nke.applicationfirewall	310
com.apple.kec.InvalidateHmac	1
com.apple.kext.triggers	1.0
com.apple.driver.AppleHSBluetoothDriver	4000.27
com.apple.driver.IOBluetoothHIDDriver	8.0.1f5
com.apple.driver.AppleHIDKeyboard	222
com.apple.driver.AppleActuatorDriver	4400.28
com.apple.driver.AppleMultitouchDriver	4400.28
com.apple.iokit.IOAVBFamily	900.12
com.apple.plugin.IOgPTPPlugin	900.11
com.apple.iokit.IOEthernetAVBController	1.1.0
com.apple.driver.AppleMesaSEPDriver	100.99
com.apple.iokit.IOBiometricFamily	1
com.apple.driver.AppleUSBAudio	401.4
com.apple.iokit.IOAudioFamily	300.6.1
com.apple.vecLib.kext	1.2.0
com.apple.driver.AppleSEPHDCPManager	1.0.1
com.apple.iokit.AppleSEPGenericTransfer	1
com.apple.driver.IOBluetoothHostControllerPCIeTransport	8.0.1f5
com.apple.iokit.IOBluetoothHostControllerTransport	8.0.1f5
com.apple.driver.AppleConvergedIPCOLYBTControl	1
com.apple.driver.AppleConvergedPCI	1
com.apple.driver.AppleBluetoothDebug	1
com.apple.driver.AppleBTM	1.0.1
com.apple.driver.usb.networking	5.0.0
com.apple.driver.AppleThunderboltDPInAdapter	8.1.4
com.apple.driver.AppleThunderboltDPAdapterFamily	8.1.4
com.apple.driver.AppleThunderboltUSBDownAdapter	1.0.4
com.apple.driver.AppleThunderboltPCIDownAdapter	4.1.1
com.apple.driver.AppleAOPAudio	14.32
com.apple.driver.AppleDCPDPTXProxy	1.0.0
com.apple.driver.AppleHIDTransportSPI	4400.35
com.apple.driver.AppleHIDTransport	4400.35
com.apple.driver.AppleInputDeviceSupport	4400.35
com.apple.nke.ppp	1.9
com.apple.driver.DCPDPFamilyProxy	1
com.apple.driver.AppleBSDKextStarter	3
com.apple.filesystems.hfs.encodings.kext	1
com.apple.driver.AppleSPU	1
com.apple.driver.AppleDiagnosticDataAccessReadOnly	1.0.0
com.apple.AGXFirmwareKextG13GRTBuddy	172.20.9
com.apple.AGXFirmwareKextRTBuddy64	172.20.9
com.apple.driver.AppleHPM	3.4.4
com.apple.driver.AppleCSEmbeddedAudio	437.96
com.apple.driver.AppleEmbeddedAudio	437.96
com.apple.iokit.AppleARMIISAudio	80.34
com.apple.iokit.IONVMeFamily	2.1.0
com.apple.driver.AppleNANDConfigAccess	1.0.0
com.apple.driver.AppleDialogPMU	1.0.1
com.apple.driver.AppleStockholmControl	1.0.0
com.apple.driver.AppleH13CameraInterface	2.67.2
com.apple.driver.AppleH10PearlCameraInterface	14.63.0
com.apple.driver.DCPAVFamilyProxy	1
com.apple.driver.AppleH11ANEInterface	4.51.0
com.apple.driver.ApplePassthroughPPM	3.0
com.apple.iokit.IOGPUFamily	20.9
com.apple.iokit.IOMobileGraphicsFamily-DCP	343.0.0
com.apple.driver.AppleDCP	1
com.apple.driver.AppleFirmwareKit	1
com.apple.iokit.IOMobileGraphicsFamily	343.0.0
com.apple.driver.AppleSPMI	1.0.1
com.apple.driver.AppleUSBXDCIARM	1.0
com.apple.driver.AppleUSBXDCI	1.0
com.apple.iokit.IOUSBDeviceFamily	2.0.0
com.apple.driver.usb.AppleUSBXHCIARM	1
com.apple.driver.usb.AppleUSBXHCI	1.2
com.apple.driver.AppleEmbeddedUSBHost	1
com.apple.driver.usb.AppleUSBHub	1.2
com.apple.driver.usb.AppleUSBHostCompositeDevice	1.2
com.apple.driver.AppleT8103TypeCPhy	1
com.apple.driver.AppleSART	1
com.apple.driver.ApplePMGR	1
com.apple.driver.watchdog	1
com.apple.driver.AppleDisplayCrossbar	1.0.0
com.apple.iokit.IODisplayPortFamily	1.0.0
com.apple.driver.AppleTypeCPhy	1
com.apple.driver.AppleThunderboltNHI	7.2.8
com.apple.driver.AppleT8103PCIeC	1
com.apple.iokit.IOThunderboltFamily	9.3.2
com.apple.driver.ApplePIODMA	1
com.apple.driver.AppleT8103PCIe	1
com.apple.driver.AppleMultiFunctionManager	1
com.apple.driver.AppleEmbeddedPCIE	1
com.apple.driver.AppleBluetoothDebugService	1
com.apple.driver.AppleBCMWLANCore	1.0.0
com.apple.iokit.IO80211FamilyV2	1200.12.2b1
com.apple.driver.IOImageLoader	1.0.0
com.apple.driver.corecapture	1.0.4
com.apple.driver.AppleMCA2-T8103	510.72
com.apple.driver.AppleGPIOICController	1.0.2
com.apple.driver.AppleFireStormErrorHandler	1
com.apple.driver.AppleMobileApNonce	1
com.apple.iokit.IOTimeSyncFamily	900.11
com.apple.driver.DiskImages	493.0.0
com.apple.iokit.IOGraphicsFamily	585
com.apple.iokit.IOBluetoothFamily	8.0.1f5
com.apple.iokit.IOBluetoothPacketLogger	8.0.1f5
com.apple.driver.FairPlayIOKit	68.5.0
com.apple.iokit.CoreAnalyticsFamily	1
com.apple.driver.AppleSSE	1.0
com.apple.driver.AppleSEPKeyStore	2
com.apple.driver.AppleUSBTDM	511.40.9
com.apple.iokit.IOUSBMassStorageDriver	184.40.6
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOSCSIBlockCommandsDevice	436.40.6
com.apple.iokit.IOSCSIArchitectureModelFamily	436.40.6
com.apple.driver.AppleIPAppender	1.0
com.apple.driver.AppleFDEKeyStore	28.30
com.apple.driver.AppleEffaceableStorage	1.0
com.apple.driver.AppleCredentialManager	1.0
com.apple.driver.KernelRelayHost	1
com.apple.iokit.IOUSBHostFamily	1.2
com.apple.driver.AppleUSBHostMergeProperties	1.2
com.apple.driver.usb.AppleUSBCommon	1.0
com.apple.driver.AppleSMC	3.1.9
com.apple.driver.RTBuddy	1.0.0
com.apple.driver.AppleEmbeddedTempSensor	1.0.0
com.apple.driver.AppleARMPMU	1.0
com.apple.iokit.IOAccessoryManager	1.0.0
com.apple.driver.AppleOnboardSerial	1.0
com.apple.iokit.IOSkywalkFamily	1
com.apple.driver.mDNSOffloadUserClient	1.0.1b8
com.apple.iokit.IONetworkingFamily	3.4
com.apple.iokit.IOSerialFamily	11
com.apple.driver.AppleSEPManager	1.0.1
com.apple.driver.AppleA7IOP	1.0.2
com.apple.driver.IOSlaveProcessor	1
com.apple.driver.AppleBiometricSensor	2
com.apple.iokit.IOHIDFamily	2.0.0
com.apple.AUC	1.0
com.apple.iokit.IOAVFamily	1.0.0
com.apple.iokit.IOHDCPFamily	1.0.0
com.apple.iokit.IOCECFamily	1
com.apple.iokit.IOAudio2Family	1.0
com.apple.driver.AppleEmbeddedAudioLibs	1.17
com.apple.driver.AppleFirmwareUpdateKext	1
com.apple.driver.AppleM2ScalerCSCDriver	265.0.0
com.apple.iokit.IOSurface	289.3
com.apple.driver.IODARTFamily	1
com.apple.security.quarantine	4
com.apple.security.sandbox	300.0
com.apple.kext.AppleMatch	1.0.0d1
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.kext.CoreTrust	1
com.apple.security.AppleImage4	3.0.0
com.apple.iokit.IOCryptoAcceleratorFamily	1.0.1
com.apple.driver.AppleARMPlatform	1.0.2
com.apple.iokit.IOStorageFamily	2.1
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.iokit.IOReportFamily	47
com.apple.kec.pthread	1
com.apple.kec.corecrypto	1.0
com.apple.kec.Libm	1

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 75
  • Comments: 102 (3 by maintainers)

Commits related to this issue

Most upvoted comments

In my opinion, if the Apple API that Karabiner is using is bugged and is causing M1 Macs to kernel panic on shut down/restart, then they should not be using that API. It is the responsibility of the developers to report the bugged API to Apple.

It is ludicrous for the devs to just shrug and say “We know that our app is bugged but it’s Apple’s fault because their API is broken”.

Why on earth would you use an API that you know for a fact is broken? The app used to work fine, and now you want to use the new API but it’s bugged and causes kernel panics. The solution is to lobby Apple to fix the API and in the meantime make sure your app works - even if this means not using the new API.

You’re talking about awesome Open Source Software as if you paid big $$$ to use it - tekezo is already working on this Issue and you are free not to use Karabiner Elements if you don’t want this kind of problem to occur on your Mac. Sorry, but I think that this is highly unfair towards the dev. Sorry for posting something that has nothing to do with the Issue (FWIW my MBP M1 didn’t need a restart in the last 40 days so I’m fine and glad to use Karabiner Elements).

In my opinion, if the Apple API that Karabiner is using is bugged and is causing M1 Macs to kernel panic on shut down/restart, then they should not be using that API. It is the responsibility of the developers to report the bugged API to Apple.

It is ludicrous for the devs to just shrug and say “We know that our app is bugged but it’s Apple’s fault because their API is broken”.

Why on earth would you use an API that you know for a fact is broken? The app used to work fine, and now you want to use the new API but it’s bugged and causes kernel panics. The solution is to lobby Apple to fix the API and in the meantime make sure your app works - even if this means not using the new API.

I am glad someone else also hit this issue. I reported it here: https://github.com/pqrs-org/Karabiner-Elements/issues/2513 I hope it can be fixed.

Karabiner-Elements is no longer related to the kernel, so the kernel panic is caused by either macOS or some other third vendor application issue.

Please file an issue to Apple BTS about kernel panic.

I get the same problem on my M1 Mac Mini. I reported it in #2513, but it’s closed over there, so I’ll report it here as well.

My report is at the following link. https://github.com/pqrs-org/Karabiner-Elements/issues/2513#issuecomment-731616784

Yup MBP M1 8/256GB Big Sur 11.0.1. Same deal. Was about to RMA the MacBook before I realised this could be the cause, uninstalled it and boom no more errors.

In my opinion, if the Apple API that Karabiner is using is bugged and is causing M1 Macs to kernel panic on shut down/restart, then they should not be using that API. It is the responsibility of the developers to report the bugged API to Apple.

It is ludicrous for the devs to just shrug and say “We know that our app is bugged but it’s Apple’s fault because their API is broken”.

Why on earth would you use an API that you know for a fact is broken? The app used to work fine, and now you want to use the new API but it’s bugged and causes kernel panics. The solution is to lobby Apple to fix the API and in the meantime make sure your app works - even if this means not using the new API.

I fully agree with you.

+1. The same issue on my M1 MacBook Pro with 16GB RAM / 2TB SSD. Big Sur 11.0.1

+1. The computer I got my wife (M1 MBP) is having the same issue. 16GB RAM with 2TB SSD is the configuration.

In my opinion, the power (and responsiveness and reliability) of Karabiner Elements is the fact that it is a low-level HID driver implementation. As agentk suggested here, I’m just ignoring the panic until 1) it gets fixed, or 2) we’re told it can’t be fixed and there’s a need to find alternatives. I reboot infrequently enough that I barely notice.

i’m not even on big sur, but kernel panics and sleep-wake failure came back after a recent security update to Catalina.

It’ll happen once the machine goes into deep sleep (i.e., keep the lid closed for like an hour).

macOS is just awful to use now. I don’t care if the M1 outperforms this or that chip if the operating system is less reliable than Windows 95 with a corrupt ram stick

Same issue for me

I can confirm I am also experiencing this, the system restarts itself after shutdown with an error.

MBP M1 16GB/512GB SSD. Big Sur 11.0.1

i’d recommend reporting the kernel panic at https://feedbackassistant.apple.com

My M1MBP(16G, 2T, BigSur11.0.1) has same issue. After installing Karabiner, everytime shutting down, I see pink screen.

I get the same issue on my M1 MacBookPro (8GB 512GB)

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

l installed is Karabiner-Elements, only. After stopping the Karabiner-Elements, restarting macOS also crashes.

Uninstalling Karabiner-Elements will not cause this issue.

And, When updating Karabiner-Elements from 13.0.0 to 13.1.0, the reboot after disabling the drivers did not cause any problems. Therefore, l think that the issue is due to the drivers.

I hope this issue will be solved.

Just reporting that I have the exact same issue as schram has described above.

I’m also on Big Sur 11.1, using an M1 MacBook Pro 16GB/1TB. System hangs for a second on shut down and restart, screen flashes pink, then restarts (even if Shut Down was chosen). On logging back in I get a similar kernel panic report as posted by @xiao-zang.

I did a full wipe of my laptop (not a big deal because I only got it a few days ago), and checked that shut down and restart work with no kernel panics. Then installed Karabiner, allowed the driver in System Prefs but didn’t do anything else with the app (Karabiner was the only programme installed other than the default apps) and the kernel panics came back on every shut down and restart. I uninstall the app (using the button in the Misc Tab) and the kernel panics go away, my machine shuts down properly again.

I also did some testing on the install process - it seems to be that allowing the driver in System Prefs causes the panics to start happening (unsurprisingly). When I install Karabiner, open the app, and get the pop-up to allow the driver in System Prefs (“.Karabiner-VirtualHIDDevice-Manager”) if I ignore this and shut down, the system doesn’t kernel panic. If I then allow this driver in System Prefs, the kernel panics come back.

Hope this info can help with fixing the issue.

For joix97: “The problem persists on Mac Mini M1 16GB RAM” is true? 8GB RAM is OK?

I have only 16 GB RAM Mac Mini M1 and it still has this problem on Big Sur 11.2 with Karabiner Elements 13.3.0. I don’t know anything about 8GB Mac Mini M1 version

I have the 8GB M1 Mac mini. Problem persists (Big Sur 11.2, Karabiner 13.3.0)

I believe this should be a solution for this issue, which I also encountered on my M1 Mac Mini with Karabiner 13.1.0.

In brief, use HammerSpoon instead.

First, download and install HammerSpoon: http://www.hammerspoon.org/

Then, edit the configuration file ‘init.lua’ following this thread to meet your need: https://stackoverflow.com/questions/43383348/remap-apostrophe-to-other-keys-using-hammerspoon/

This works for me perfectly 😃

BTW, below is my configuration:

local function keyCode(key, modifiers)
   modifiers = modifiers or {}
   return function()
      hs.eventtap.keyStroke(modifiers, key)
   end
end

local function remapKey(modifiers, key, keyCode)
   hs.hotkey.bind(modifiers, key, keyCode, nil, keyCode)
end

remapKey({"cmd"}, "escape", keyCode("`", {"cmd"}))
remapKey({"option"}, "escape", keyCode("`", {"fn"}))

I have this issue with my M1 MBP too, running 11.1 Beta 2. Have uninstalled and periodically checking in here to see if it has been fixed yet.

You can also click “Subscribe” on the right side of github issues to get updates for particular issues.

I also get this issue on M1 Macs. Please fix.

Just confirming the same results on an M1 MacBook Air, fresh install and the only other software yet installed is vlc, Lastpass, MS Edge Canary, and vscode. Uninstalling allows my MBA to reboot without a panic and gives me back my startup chime. Really don’t want to uninstall, though.

Just had an update today for my macOS to 11.2.3 and updated Karabiner to 13.3.8 (beta), and I can confirm that if I quit Karabiner first, I can shutdown my Mac now, but if I shut down without quitting Karabiner I still see the pink screen and it restarts instead of shutdown. It’s some progress, but it would be nice if you didn’t have to quit Karabiner and shutdown would take care of that.

I’m keeping trying to find a way to avoid trigging the problem (probably, a macOS HID driver issue or a macOS DriverKit issue), but there is no guarantee that there is such a way, so it is better that Apple to fix the kernel panic issue.

what @tekezo is saying is now this is using an official apple API rather than being a kernel extension it cannot directly cause kernel panics. The kernel panic is caused by something in apple code which karabiner is triggering. It is up to apple to ensure their official apis don’t cause kernel panics.

I posted this problem as following page; https://github.com/pqrs-org/Karabiner-Elements/issues/2607

I experienced this problem just after installing Big Sur without any other application or drivers. “Karabiner-Elements is no longer related to the kernel, so the kernel panic is caused by either macOS or some other third vendor application issue.” is not true!

Karabiner-Elements is no longer related to the kernel, so the kernel panic is caused by either macOS or some other third vendor application issue.

Please file an issue to Apple BTS about kernel panic.

@tekezo At this point several people have detailed how installing Karabiner causes a kernel panic on shut down/restart on M1 Macs, with some even including the kernel panic crash reports. And yet you still say it’s not Karabiner causing the issue? Get yourself an M1 Mac and see if it works out the box, then install Karabiner and try to shut down your computer, then when it kernel panics and restarts maybe come back to this thread to edit your comment so you’re no longer spreading misinformation. It has nothing to do with third party apps - I have experienced kernel panics when the only thing installed on my M1 MacBook Pro other than the stock apps is Karabiner.

We understand that Karabiner is no longer related to the kernel, that doesn’t mean it’s incapable of causing kernel panics - as evidence by the fact that it is causing kernel panics.

As I detailed in my earlier post, it is something to do with the keyboard and mouse driver one has to load when setting up Karabiner (“.Karabiner-VirtualHIDDevice-Manager”). Enabling this is when kernel panics begin to occur.

Any update/workaround on this issue? Is it the same on the newest Big Sur beta?

it’s fixed for me on M1 Mac mini with macOS 11.2 RC

also having the same issue with M1 MBA 16GB/512GB

Having same issue here, M1 MBP (16GB, 2TB), Big Sur 11.0.1

Also experiencing this issue. Issue persists in Safe Mode, and in a test user account with no other 3rd party apps installed. Uninstalled Karabiner Elements to resolve. Logs basically identical to original poster.

MBA M1 16GB | 512GB | macOS 11.0.1 (20B29)

It seems there is improvement on the latest Big Sur beta, 11.3 Beta (20E5186d). I uninstalled Karabiner, switch to beta channel and install Karabiner 13.3.0 again. There is no more crash during shutdown and reboot, but it is hard to say if the issue is resolved for good and in all circumstances. Some things like sleep via Alfred still don’t work (#2519) for example.

This problem fixed for me after updating to macOS Big Sur 11.2.2 & Karabiner-Elements 13.3.1. M1 MacBook Pro with 16GB RAM & 2TB SSD. Hope this useful.

How did you update to Karabiner-Elements 13.3.1? Is that beta? I just updated now to Big Sur 11.2.2 and my Karabiner-Elements was 13.3.0 latest version, but I updated to the beta which is now 13.3.2, but the problem still persists. When I try to shut down, I see the pink screen and the system restarts instead of shutting down. My system is MacBook Pro M1 chip with 8 GB RAM, 512 GB SSD

For me, quitting Karabiner does not work as I still get the Kernel panic.

Could somebody from the “quitting-works” group confirm, if launchctl bootout gui/<id>/ /Library/LaunchAgents/org.pqrs.karabiner.karabiner_console_user_server.plist is working for them where <id> is your user id? In addition, could somebody execute osascript -e 'tell application "System Events"' -e 'shut down' -e 'end tell' from the command line as well after quitting Karabiner and report the result?

I also found that hard-shutting down the system with sudo shutdown -h now will not cause this issue, so I suspect there is some launchctl order issue going on.

@fes3507 Where are you getting 13.3.1 from?

macOS Big Sur 11.2 Update is available. Maybe that will help. Downloading it now.

From the problem posts and reports, this problem is easily found just after installing! I can not understand that 13.3.0 is released! For developers, do you confirm the quality of this release and review the same problem already occured in 13.1.0.

Hey @tekezo i know this thread has a lot of frustration in it, but regardless of whether the issue is MacOS fault or caused by Karabiner I just wanted to thank you for all the effort and time you have put into making this product. Being able to customise my Mac has made it so much for fun to use. 😊

Same here(Mac mini M1 base model), it appeared after updating to 11.1. It was fine on 11.0.1 for me.

I’m using M1 Mac in the following combination, removing either i1Profiler or Karabiner solved the problem. Thanks a lot @g8rh8r ! (i1Profiler isn’t working anyway so removing that is OK in my case)

  • Mac OS 11.1 (released today)
  • Karabiner-Elements 13.1.0
  • i1Profiler 3.3.0

UPDATE: kernel crashes came back now 🤢