balena-io / etcher

Flash OS images to SD cards & USB drives, safely and easily.
https://etcher.io/
Apache License 2.0
29.22k stars 2.08k forks source link

Mac crashes during validation #4215

Open LiminalD opened 4 months ago

LiminalD commented 4 months ago

Hi,

My Mac crashes during validation after flashing to the SD Card. I haven’t encountered this issue before; it just started happening last week. I’m running macOS 14.1.1 Apple m1 and using BalenaEtcher 1.19.16

I’ve tried granting full disk permission and moving the image to the .app directory, but nothing seems to be working. Any ideas on how to solve this issue?

panic(cpu 0 caller 0xfffffe0019488cf8): "dart-apcie1 (0xfffffe20064a0000): DART(DART) error: SID 1 PTE invalid exception on write of DVA 0xad8000 (TTBR 0 SEG 0 PTE 0x2b6) ERROR_STATUS 0x81000404 TIME 0x199203cca44 TTE 0 AXI_ID 0" @AppleT6000DART.cpp:1407 Debugger message: panic Memory ID: 0x6 OS release type: User OS version: 23E224 Kernel version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 Fileset Kernelcache UUID: 9EC7FBEFD78CA9C9BCFBF3637BA3DB70 Kernel UUID: 52F71D8C-FEDF-3A4B-9B6B-8463C5251B20 Boot session UUID: 447C73BB-4DE1-4EF1-9F38-A1AB31057756 iBoot version: iBoot-10151.101.3 secure boot?: YES roots installed: 0 Paniclog version: 14 KernelCache slide: 0x000000000f638000 KernelCache base: 0xfffffe001663c000 Kernel slide: 0x000000000f640000 Kernel text base: 0xfffffe0016644000 Kernel text exec slide: 0x0000000010b70000 Kernel text exec base: 0xfffffe0017b74000 mach_absolute_time: 0x9d1b8f99c Epoch Time: sec usec Boot : 0x662cdc53 0x000cbf3c Sleep : 0x00000000 0x00000000 Wake : 0x00000000 0x00000000 Calendar: 0x662ce32a 0x0003514d

Zone info: Zone map: 0xfffffe100626c000 - 0xfffffe300626c000 . VM : 0xfffffe100626c000 - 0xfffffe14d2f38000 . RO : 0xfffffe14d2f38000 - 0xfffffe166c8d0000 . GEN0 : 0xfffffe166c8d0000 - 0xfffffe1b3959c000 . GEN1 : 0xfffffe1b3959c000 - 0xfffffe2006268000 . GEN2 : 0xfffffe2006268000 - 0xfffffe24d2f34000 . GEN3 : 0xfffffe24d2f34000 - 0xfffffe299fc00000 . DATA : 0xfffffe299fc00000 - 0xfffffe300626c000 Metadata: 0xfffffe3f426cc000 - 0xfffffe3f4a6cc000 Bitmaps : 0xfffffe3f4a6cc000 - 0xfffffe3f4d3f8000 Extra : 0 - 0

TPIDRx_ELy = {1: 0xfffffe1b387fc800 0: 0x0000000000000000 0ro: 0x000000016de670e0 } CORE 0 PVH locks held: None CORE 1 PVH locks held: None CORE 2 PVH locks held: None CORE 3 PVH locks held: None CORE 4 PVH locks held: None CORE 5 PVH locks held: None CORE 6 PVH locks held: None CORE 7 PVH locks held: None CORE 8 PVH locks held: None CORE 9 PVH locks held: None CORE 0 is the one that panicked. Check the full backtrace for details. CORE 1: PC=0xfffffe0018348ebc, LR=0xfffffe001a0c6710, FP=0xfffffe8e130e6a00 CORE 2: PC=0xfffffe0017c098c0, LR=0xfffffe0017c098bc, FP=0xfffffe8e12e6bef0 CORE 3: PC=0xfffffe0017c098c0, LR=0xfffffe0017c098bc, FP=0xfffffe8e12927ef0 CORE 4: PC=0x00000001098ec5f4, LR=0x00000001098ec300, FP=0x000000020881e320 CORE 5: PC=0xfffffe0017c098c0, LR=0xfffffe0017c098bc, FP=0xfffffe8e129cfef0 CORE 6: PC=0xfffffe0017c098c0, LR=0xfffffe0017c098bc, FP=0xfffffe8e12a6bef0 CORE 7: PC=0xfffffe0017c098c0, LR=0xfffffe0017c098bc, FP=0xfffffe8e12f17ef0 CORE 8: PC=0xfffffe0017c098c0, LR=0xfffffe0017c098bc, FP=0xfffffe8e11967ef0 CORE 9: PC=0xfffffe0017c098c0, LR=0xfffffe0017c098bc, FP=0xfffffe8e12a17ef0 Compressor Info: 3% of compressed pages limit (OK) and 4% of segments limit (OK) with 1 swapfiles and OK swap space Panicked task 0xfffffe1b39581018: 6976 pages, 19 threads: pid 402: WindowServer Panicked thread: 0xfffffe1b387fc800, backtrace: 0xfffffe6fc196b5a0, tid: 4397 lr: 0xfffffe0017bcdf70 fp: 0xfffffe6fc196b630 lr: 0xfffffe0017d1b7d4 fp: 0xfffffe6fc196b6a0 lr: 0xfffffe0017d19b48 fp: 0xfffffe6fc196b760 lr: 0xfffffe0017b7bba8 fp: 0xfffffe6fc196b770 lr: 0xfffffe0017bcd84c fp: 0xfffffe6fc196bb20 lr: 0xfffffe00183ef36c fp: 0xfffffe6fc196bb40 lr: 0xfffffe0019488cf8 fp: 0xfffffe6fc196bda0 lr: 0xfffffe0019488848 fp: 0xfffffe6fc196be40 lr: 0xfffffe0019488094 fp: 0xfffffe6fc196bef0 lr: 0xfffffe00182f232c fp: 0xfffffe6fc196bf30 lr: 0xfffffe0018f7e3a8 fp: 0xfffffe6fc196bfd0 lr: 0xfffffe0017d1d188 fp: 0xfffffe6fc196bfe0 lr: 0xfffffe0017b7bc1c fp: 0xfffffe6fc196bff0 lr: 0xfffffe0017b7bb70 fp: 0x0000000000000000 Kernel Extensions in backtrace: com.apple.driver.AppleT6000DART(1.0)[B35E74F9-9F61-3472-A19E-B9EC6F85E826]@0xfffffe0019483960->0xfffffe001948aaf3 dependency: com.apple.driver.AppleARMPlatform(1.0.2)[77007C6A-68DD-3EA2-A25E-B47ACC1DAFE2]@0xfffffe001858c590->0xfffffe00185dfb8b dependency: com.apple.driver.IODARTFamily(1)[EB20EAF1-E946-3569-B178-D5E2BFF468F6]@0xfffffe0019fae030->0xfffffe0019fc1e53 com.apple.driver.AppleInterruptControllerV2(1.0d1)[99FDF29B-35BB-316A-A4F3-4DD19A093CB2]@0xfffffe0018f7c8d0->0xfffffe0018f7f15b dependency: com.apple.driver.AppleARMPlatform(1.0.2)[77007C6A-68DD-3EA2-A25E-B47ACC1DAFE2]@0xfffffe001858c590->0xfffffe00185dfb8b

last started kext at 1047123328: com.apple.filesystems.autofs 3.0 (addr 0xfffffe00170375e0, size 6069) loaded kexts: com.apple.filesystems.autofs 3.0 com.apple.iokit.SCSITaskUserClient 495 com.apple.driver.usb.realtek8153patcher 5.0.0 com.apple.driver.AppleUSBMassStorageInterfaceNub 556 com.apple.driver.AppleTopCaseHIDEventDriver 7440.8 com.apple.driver.AppleBiometricServices 1 com.apple.driver.CoreKDL 1 com.apple.driver.DiskImages.ReadWriteDiskImage 493.0.0 com.apple.driver.DiskImages.UDIFDiskImage 493.0.0 com.apple.driver.DiskImages.RAMBackingStore 493.0.0 com.apple.driver.DiskImages.FileBackingStore 493.0.0 com.apple.driver.BCMWLANFirmware4387.Hashstore 1 com.apple.driver.SEPHibernation 1 com.apple.driver.AppleUSBDeviceNCM 5.0.0 com.apple.driver.AppleFileSystemDriver 3.0.1 com.apple.nke.l2tp 1.9 com.apple.filesystems.tmpfs 1 com.apple.filesystems.nfs 1 com.apple.filesystems.lifs 1 com.apple.filesystems.apfs 2236.101.1 com.apple.IOTextEncryptionFamily 1.0.0 com.apple.filesystems.hfs.kext 650.0.2 com.apple.security.BootPolicy 1 com.apple.BootCache 40 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1 com.apple.driver.AppleThunderboltIP 4.0.3 com.apple.driver.AppleALSColorSensor 1.0.0d1 com.apple.driver.AppleSmartBatteryManager 161.0.0 com.apple.driver.AppleAOPVoiceTrigger 340.42 com.apple.AppleEmbeddedSimpleSPINORFlasher 1 com.apple.driver.AppleSmartIO2 1 com.apple.driver.AppleCS42L84Audio 740.41 com.apple.driver.ApplePMP 1 com.apple.driver.AppleDPDisplayTCON 1 com.apple.driver.AppleSN012776Amp 740.41 com.apple.driver.AppleT6000SOCTuner 1 com.apple.driver.AppleT6000CLPCv3 1 com.apple.driver.AppleT6000PMGR 1 com.apple.driver.AppleS5L8960XNCO 1 com.apple.driver.ApplePMPFirmware 1 com.apple.driver.AppleEventLogHandler 1 com.apple.driver.AppleInterruptControllerV2 1.0.0d1 com.apple.driver.AppleProResHW 350.47.0 com.apple.driver.AppleAVE2 760.23.1 com.apple.driver.AppleAVD 740 com.apple.driver.AppleJPEGDriver 6.6.2 com.apple.driver.AppleSamsungSerial 1.0.0d1 com.apple.driver.AppleSerialShim 1 com.apple.driver.AppleMobileDispT600X-DCP 140.0 com.apple.AGXG13X 280.3.9 com.apple.driver.AppleMCDP29XXUpdateSupport 1 com.apple.driver.AppleS8000DWI 1.0.0d1 com.apple.driver.AppleS8000AES 1 com.apple.driver.usb.AppleSynopsysUSB40XHCI 1 com.apple.driver.AppleT8110DART 1 com.apple.driver.AppleBluetoothModule 1 com.apple.driver.AppleBCMWLANBusInterfacePCIe 1 com.apple.driver.AppleS5L8920XPWM 1.0.0d1 com.apple.driver.AudioDMAController-T600x 340.58 com.apple.driver.AppleT6000DART 1 com.apple.driver.AppleSPIMC 1 com.apple.driver.AppleS5L8940XI2C 1.0.0d2 com.apple.driver.AppleT6000 1 com.apple.driver.AppleSDXC 3.5.1 com.apple.driver.AppleM68Buttons 1.0.0d1 com.apple.iokit.IOUserEthernet 1.0.1 com.apple.driver.usb.AppleUSBUserHCI 1 com.apple.iokit.IOKitRegistryCompatibility 1 com.apple.iokit.EndpointSecurity 1 com.apple.driver.AppleUIO 1 com.apple.driver.AppleDiskImages2 276.100.16 com.apple.AppleSystemPolicy 2.0.0 com.apple.nke.applicationfirewall 404 com.apple.kec.InvalidateHmac 1 com.apple.kec.AppleEncryptedArchive 1 com.apple.driver.driverkit.serial 6.0.0 com.apple.driver.usb.IOUSBHostHIDDevice 1.2 com.apple.driver.usb.cdc.ecm 5.0.0 com.apple.driver.usb.cdc.acm 5.0.0 com.apple.driver.usb.serial 6.0.0 com.apple.driver.usb.cdc 5.0.0 com.apple.driver.AppleUSBAudio 640.12 com.apple.iokit.IOAudioFamily 540.3 com.apple.vecLib.kext 1.2.0 com.apple.iokit.IOAVBFamily 1220.1 com.apple.driver.AppleHIDKeyboard 7440.3 com.apple.driver.AppleHSBluetoothDriver 7440.8 com.apple.driver.IOBluetoothHIDDriver 9.0.0 com.apple.driver.AppleActuatorDriver 7440.9 com.apple.driver.AppleMultitouchDriver 7440.9 com.apple.driver.usb.AppleUSBXHCIPCI 1.2 com.apple.driver.AppleThunderboltDPOutAdapter 8.5.1 com.apple.driver.AppleThunderboltPCIUpAdapter 4.1.1 com.apple.driver.AppleMesaSEPDriver 100.99 com.apple.iokit.IOBiometricFamily 1 com.apple.driver.DiskImages.KernelBacked 493.0.0 com.apple.driver.AppleXsanScheme 3 com.apple.driver.AppleSEPHDCPManager 1.0.1 com.apple.driver.AppleTrustedAccessory 1 com.apple.iokit.AppleSEPGenericTransfer 1 com.apple.driver.usb.networking 5.0.0 com.apple.nke.ppp 1.9 com.apple.driver.AppleBSDKextStarter 3 com.apple.kext.triggers 1.0 com.apple.filesystems.hfs.encodings.kext 1 com.apple.driver.AppleSyntheticGameController 11.4.11 com.apple.driver.AppleBTM 1.0.1 com.apple.driver.IOHIDPowerSource 1 com.apple.driver.AppleCallbackPowerSource 1 com.apple.driver.AppleConvergedIPCOLYBTControl 1 com.apple.driver.AppleConvergedPCI 1 com.apple.driver.AppleBluetoothDebug 1 com.apple.driver.AppleThunderboltUSBDownAdapter 1.0.4 com.apple.driver.AppleThunderboltDPInAdapter 8.5.1 com.apple.driver.AppleThunderboltDPAdapterFamily 8.5.1 com.apple.driver.AppleThunderboltPCIDownAdapter 4.1.1 com.apple.driver.AppleAOPAudio 340.4 com.apple.driver.AppleDCPDPTXProxy 1.0.0 com.apple.driver.AppleHIDTransportSPI 7440.1 com.apple.driver.AppleHIDTransport 7440.1 com.apple.driver.AppleInputDeviceSupport 7440.1 com.apple.plugin.IOgPTPPlugin 1240.15 com.apple.driver.DCPDPFamilyProxy 1 com.apple.driver.AppleDiagnosticDataAccessReadOnly 1.0.0 com.apple.driver.AppleCSEmbeddedAudio 740.41 com.apple.driver.AppleSPU 1 com.apple.driver.AppleEmbeddedAudio 740.41 com.apple.iokit.AppleARMIISAudio 340.16 com.apple.driver.IISAudioIsolatedStreamECProxy 340.16 com.apple.driver.ExclavesAudioKext 1 com.apple.driver.ApplePassthroughPPM 3.0 com.apple.driver.ApplePMGR 1 com.apple.driver.AppleARMWatchdogTimer 1 com.apple.iokit.IONVMeFamily 2.1.0 com.apple.driver.AppleNANDConfigAccess 1.0.0 com.apple.AGXFirmwareKextG13XRTBuddy 280.3.9 com.apple.AGXFirmwareKextRTBuddy64 280.3.9 com.apple.driver.AppleStockholmControl 1.0.0 com.apple.driver.AppleSPMIPMU 1.0.1 com.apple.driver.AppleDialogPMU 1.0.1 com.apple.driver.DCPAVFamilyProxy 1 com.apple.driver.AppleSART 1 com.apple.driver.AppleSPMI 1.0.1 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.AppleM2ScalerCSCDriver 265.0.0 com.apple.driver.AppleA7IOP-ASCWrap-v4 1.0.2 com.apple.iokit.IOGPUFamily 93.40.3 com.apple.driver.AppleHPM 3.4.4 com.apple.driver.AppleDisplayCrossbar 1.0.0 com.apple.iokit.IODisplayPortFamily 1.0.0 com.apple.driver.AppleT6000TypeCPhy 1 com.apple.driver.AppleT8103TypeCPhy 1 com.apple.driver.AppleUSBXDCIARM 1.0 com.apple.driver.AppleUSBXDCI 1.0 com.apple.iokit.IOUSBDeviceFamily 2.0.0 com.apple.driver.usb.AppleSynopsysUSBXHCI 1 com.apple.driver.usb.AppleUSBXHCI 1.2 com.apple.driver.AppleTypeCPhy 1 com.apple.driver.AppleEmbeddedUSBHost 1 com.apple.driver.usb.AppleUSBHub 1.2 com.apple.driver.usb.AppleUSBHostCompositeDevice 1.2 com.apple.driver.AppleMobileApNonce 1 com.apple.driver.AppleA7IOP-M3Wrap-v2 1.0.2 com.apple.driver.AppleThunderboltNHI 7.2.81 com.apple.driver.AppleT6000PCIeC 1 com.apple.iokit.IOThunderboltFamily 9.3.3 com.apple.iokit.IOPortFamily 1.0 com.apple.driver.ApplePIODMA 1 com.apple.driver.AppleT600xPCIe 1 com.apple.driver.AppleMultiFunctionManager 1 com.apple.driver.AppleBluetoothDebugService 1 com.apple.driver.AppleBCMWLANCore 1.0.0 com.apple.iokit.IO80211Family 1200.13.0 com.apple.driver.IOImageLoader 1.0.0 com.apple.driver.AppleOLYHAL 1 com.apple.driver.corecapture 1.0.4 com.apple.driver.AppleMCA2-T600x 840.3 com.apple.driver.AppleEmbeddedAudioLibs 340.8 com.apple.driver.AppleFirmwareUpdateKext 1 com.apple.driver.AppleH13CameraInterface 8.500.0 com.apple.driver.AppleGPIOICController 1.0.2 com.apple.driver.AppleFireStormErrorHandler 1 com.apple.driver.AppleEmbeddedPCIE 1 com.apple.driver.usb.AppleUSBHostPacketFilter 1.0 com.apple.iokit.IOTimeSyncFamily 1240.15 com.apple.driver.DiskImages 493.0.0 com.apple.iokit.IOGraphicsFamily 598 com.apple.iokit.IOBluetoothFamily 9.0.0 com.apple.driver.AppleSSE 1.0 com.apple.driver.AppleSEPKeyStore 2 com.apple.driver.AppleUSBTDM 556 com.apple.iokit.IOUSBMassStorageDriver 245 com.apple.iokit.IOPCIFamily 2.9 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.IOSerialFamily 11 com.apple.iokit.IOSCSIBlockCommandsDevice 495 com.apple.iokit.IOSCSIArchitectureModelFamily 495 com.apple.driver.AppleRSMChannel 1 com.apple.iokit.IORSMFamily 1 com.apple.driver.AppleLockdownMode 1 com.apple.driver.AppleIPAppender 1.0 com.apple.iokit.IOSkywalkFamily 1.0 com.apple.driver.mDNSOffloadUserClient 1.0.1b8 com.apple.iokit.IONetworkingFamily 3.4 com.apple.driver.AppleFDEKeyStore 28.30 com.apple.driver.AppleEffaceableStorage 1.0 com.apple.driver.AppleCredentialManager 1.0 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.driver.AppleANELoadBalancer 7.400.0 com.apple.driver.AppleH11ANEInterface 7.400.0 com.apple.driver.IODARTFamily 1 com.apple.AUC 1.0 com.apple.iokit.IOSurface 352.41.7 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.AppleIISController 340.1 com.apple.driver.AppleAudioClockLibs 340.8 com.apple.driver.FairPlayIOKit 71.10.0 com.apple.driver.AppleARMPlatform 1.0.2 com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0 com.apple.iokit.IOReportFamily 47 com.apple.security.quarantine 4 com.apple.security.sandbox 300.0 com.apple.iokit.IOStorageFamily 2.1 com.apple.kext.AppleMatch 1.0.0d1 com.apple.driver.AppleMobileFileIntegrity 1.0.5 com.apple.iokit.CoreAnalyticsFamily 1 com.apple.security.AppleImage4 6.3.0 com.apple.kext.CoreTrust 1 com.apple.iokit.IOCryptoAcceleratorFamily 1.0.1 com.apple.kec.pthread 1 com.apple.kec.Libm 1 com.apple.kec.Compression 1.0 com.apple.kec.corecrypto 14.0

Stackshot Succeeded Bytes Traced 549105 (Uncompressed 1448480) **

aethernet commented 4 months ago

This is very weird. Can you share more information? What are you flashing? What's the target? Are you using an sd card adaptor? What variation did you try (other adaptors, other sd cards, another source image)? Etc.

mochsner commented 3 months ago

@LiminalD possibly unrelated, but incase there's a mac driver issue on Sonoma 14.4.1, I'll note that my wife's (bought used) macbook pro m2 is crashing with this same message when she copies files from the directly mounted SD card (photos) onto her desktop.

Do you happen to get any 'permissions' error type popups sometimes completing this workflow too? Guessing not, but worth checking

LiminalD commented 3 months ago

Hi,

After investigation and a complete reinstall of my Mac, it continues to crash. It appears that many card readers in MacBook Pro M1 (and apparently also M2) models are defective. This is a known issue at Apple; however, they have been very silent about it. The temporary solution is to use an external card reader, which works flawlessly.

denisbondar commented 3 months ago

Hi,

I seem to have the same problem. I am using on MacBook M1 Pro, OS 14.5 Sonoma and Promate USB-HUB. balenaEtcher v1.18.11

While writing to USB-Stick, a write error occurs at random places. Sometimes the write error occurs at the validation stage, either immediately at the start of validation or shortly after the start. However, recording to SD card and verification using this USB-HUB is successful.

Can I provide some additional information to find the problem?