pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.81k stars 838 forks source link

Karabiner Elements causes Apple silicon MacBook Air to crash during system shutdown #2517

Closed xiao-zang closed 3 years ago

xiao-zang commented 3 years ago

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
danielisaacrodriguez commented 3 years ago

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.

Terubozu commented 3 years ago

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

gmedori commented 3 years ago

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

owner203 commented 3 years ago

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

xereeto commented 3 years ago

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.

profoundthinking commented 3 years ago

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

purge commented 3 years ago

Since karabiner is no longer a kernel extension a panic is probably an apple issue so if you are getting this raise an issue in feedback assistant (or radar if you have a developer account). I am experiencing this issue on brand new install on new hardware (M1 16Gb / 1Tb.) so i don't think it's an issue with other software.

schram commented 3 years ago

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.

fredericksee commented 3 years ago

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

taylornd commented 3 years ago

Same issue for me

mono96 commented 3 years ago

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.

jeremysexton commented 3 years ago

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

ikuina commented 3 years ago

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

sweeneybros commented 3 years ago

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

jacklaing commented 3 years ago

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.

atelierbram commented 3 years ago

Same problem her on M1 Mac Mini with almost no other apps installed. Had to uninstall to fix it. BTW no pop-pup to disable driver after trying the beta version.

gelpenaddict commented 3 years ago

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.

MarkLopresto commented 3 years ago

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)

rickybright commented 3 years ago

Same issue here. Can post logs if needed, but basically the same as OP.

g8rh8r commented 3 years ago

I had very similar and relentless kernel panics on a brand new M1 Mac mini. It happened shortly after installing the legacy X-Rite i1 display pro calibration software/driver to try to calibrate my monitor. I went to the X-Rite website and followed their complete uninstall directions.

No more kernel panics.

Big Sur is a nightmare when installing any legacy drivers on Apple m1 ARM machines.

tam315 commented 3 years ago

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)


UPDATE: kernel crashes came back now 🤢

xiao-zang commented 3 years ago

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

Glad that uninstalling i1Profiler works for you, but I don't have any X-Rite product on my M1 Mac. I have just installed the macOS 11.1 update and reinstalled Karabiner-Elements 13.1.0, but it still crashes...

g8rh8r commented 3 years ago

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

Glad that uninstalling i1Profiler works for you, but I don't have any X-Rite product on my M1 Mac. I have just installed the macOS 11.1 update and reinstalled Karabiner-Elements 13.1.0, but it still crashes...

Well the kernel crashes came back. Since it's a brand new M1 Mac mini, I have very few programs installed.

So I started analyzing the crash reports and realized they had sleep time in common. The only device I had connected other than my keyboard, was my 4k monitor. I had my monitor connected via an AKiTiO Thunder Dock, via a thunderbolt to DisplayPort cable. So I unplugged the AKiTiO thunder dock and connected my 4k monitor directly to the Mac mini Thunderbolt 3 port with a thunderbolt 3/usb-c to DisplayPort adapter.

The crashes have stopped for the last 24 hours or so. I spoke to an Apple senior tech, and she had me send my log files to engineering. So if I had to guess, the kernel panics may have to do with legacy thunderbolt devices and sleep commands...

xiao-zang commented 3 years ago

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

Glad that uninstalling i1Profiler works for you, but I don't have any X-Rite product on my M1 Mac. I have just installed the macOS 11.1 update and reinstalled Karabiner-Elements 13.1.0, but it still crashes...

Well the kernel crashes came back. Since it's a brand new M1 Mac mini, I have very few programs installed.

So I started analyzing the crash reports and realized they had sleep time in common. The only device I had connected other than my keyboard, was my 4k monitor. I had my monitor connected via an AKiTiO Thunder Dock, via a thunderbolt to DisplayPort cable. So I unplugged the AKiTiO thunder dock and connected my 4k monitor directly to the Mac mini Thunderbolt 3 port with a thunderbolt 3/usb-c to DisplayPort adapter.

The crashes have stopped for the last 24 hours or so. I spoke to an Apple senior tech, and she had me send my log files to engineering. So if I had to guess, the kernel panics may have to do with legacy thunderbolt devices and sleep commands...

But my M1 MBA with Karabiner-Elements crashes without any external device plugged in (not even the power cable)...

crcoppin commented 3 years ago

I am having this issue as well since using migration assistant. My M1 Mac Mini running 11.1 and KE 13.1 will flash a pink screen and panic every time I try to restart or shutdown when Karabiner is running. All worked well in safe mode, as did uninstalling Karabiner.

TimNedvyga commented 3 years ago

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

sasagar commented 3 years ago

Same here, but I encountered with 11.1 and 11.0.1 too.

wookiist commented 3 years ago

same here.. using mac mini (apple silicon). cannot shutdown or reboot with karabiner. pink screen situation also occured.

ssmooncoder commented 3 years ago

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

benjaminpottier commented 3 years ago

I'm on Big Sur 11.1 with an M1 Mac mini and had to uninstall karabiner in order to get rid to the kernel panics at shutdown.

ghost commented 3 years ago

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.

Markologne commented 3 years ago

Same here (M1 Mac mini, 16GB/1TB) Big Sur 11.1, Karabiner-Elements 13.1.0

windless0530 commented 3 years ago

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"}))
hassan987 commented 3 years ago

I'm having the same problem! Is this going to be fixed or should I go the HammerSpoon route? I tried Hammerspoon but could not get it to toggle 'fn' key on my windows keyboard, to use the media functions as default.

MuhammedZakir commented 3 years ago

I'm having the same problem! Is this going to be fixed or should I go the HammerSpoon route? I tried Hammerspoon but could not get it to toggle 'fn' key on my windows keyboard, to use the media functions as default.

IIRC, you can do that in System Preferences > Keyboard.

hassan987 commented 3 years ago

That option only exists for built-in keyboards or other apple keyboards

eddyg commented 3 years ago

In brief, use HammerSpoon instead.

Has something changed with Hammerspoon? Previously, one of its primary developers specifically recommended the use of Karabiner Elements...

hassan987 commented 3 years ago

Nothing has changed except Karabiner elements seems to cause system panics on Apple silicon macs, causing people to search for alternatives

MuhammedZakir commented 3 years ago

Try Kmonad - https://github.com/david-janssen/kmonad.

P.S. see https://github.com/Hammerspoon/hammerspoon/issues/1732 if you want modal layout in Hamerspoon.

eddyg commented 3 years ago

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.

hairarrow commented 3 years ago

I'm running into the same issue on the m1 mini.

My one weird trick to actually shut down the computer is to disable automatic login and click "Shut Down" on the login screen.

I'm definitely not going to uninstall any time soon.

crcoppin commented 3 years ago

I'm running into the same issue on the m1 mini.

My one weird trick to actually shut down the computer is to disable automatic login and click "Shut Down" on the login screen.

I'm definitely not going to uninstall any time soon.

Another user reported a workaround that I think is the same as what you are doing. Essentially log out before shut down.

Edit: I have tried this workaround and it makes no difference for me. Logging out before shut down still results in a pink screen and panic. Since I have isolated the issue and don't shut down all that often, I am living with it for now.

ATG1209 commented 3 years ago

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

TimNedvyga commented 3 years ago

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

gelpenaddict commented 3 years ago

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

Awesome to hear; from similar issues here, karabiner maintainers were not going to look into it themselves.

TimNedvyga commented 3 years ago

Well, I began to encounter this problem on RC2 again. But it's not consistent, most of the time machine turn off and restart just fine.

crcoppin commented 3 years ago

Great news, BetterTouchTool has been updated to allow for a hyper key - issue solved without giving up my functionality. https://community.folivora.ai/t/thank-you-for-capslock-hyper-a-small-request/20907/4

TimNedvyga commented 3 years ago

Great news, BetterTouchTool has been updated to allow for a hyper key - issue solved without giving up my functionality. https://community.folivora.ai/t/thank-you-for-capslock-hyper-a-small-request/20907/4

It also can recognise Fn now! Well, that's actually a game changer, I do not need karabiner anymore! Awesome!

gelpenaddict commented 3 years ago

Looks like they also have some crashes but limited to the app and not as bad as the kernel panic with Karabiner: https://community.folivora.ai/t/apple-m1-night-shift-clash/20877

And they're actually getting an M1 box to test and make progress!

matsuda0707 commented 3 years ago

Today version 13.3.0 has been released, but it still cause Kernel Panic after installation. But it does not repeat restart, only show Kernel panic message after login. A little bit progress, but not fully fixed!