godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.34k stars 21.06k forks source link

running a scene with per pixel transparency will CRASH THE OS on mac monterey on apple silicon chip #55462

Closed IR2O closed 2 years ago

IR2O commented 2 years ago

Godot version

godot_mono 64-bit (x86-64 + Apple Silicon)

System information

macOS monterey, Mac mini 2020, apple chip, GLES3

Issue description

running a scene with per pixel transparency will CRASH THE OS on mac monterey on apple silicon chip i tried it to see if it worked so i could use it in my project so i ran it on a new project made purely for testing this once. I made a scene and enabled per pixil trasparency then the moment i ran the sene the whole pc froze including the mouse and a moment later the screen went megenta then the whole pc restarted with a crash report that is attached at the bottom

Steps to reproduce

all the things i did in the screenshots below 1)made scene 2)went to "project settings -> window -> per pixel trasparency -> allowed & enabled" 3)run 4)crash and restart

Minimal reproduction project

No response Screenshot 2021-11-30 at 12 44 21 PM Screenshot 2021-11-30 at 12 44 47 PM Screenshot 2021-11-30 at 12 45 12 PM Screenshot 2021-11-30 at 12 45 19 PM Screenshot 2021-11-30 at 12 45 35 PM Screenshot 2021-11-30 at 12 45 43 PM

apple problem report:

panic(cpu 4 caller 0xfffffe00277faef0): Kernel data abort. at pc 0xfffffe00293cc940, lr 0xfffffe00290527c8 (saved state: 0xfffffe60060c3310)
      x0:  0x0000000000000000 x1:  0x0000000000000000  x2:  0xfffffe1516d6c003  x3:  0xfffffe1516d6d0a0
      x4:  0xfffffe1516d6cd00 x5:  0x000000000002048a  x6:  0x0000000000000000  x7:  0x0000000000000000
      x8:  0x425e582b353e00e1 x9:  0x425e582b353e00e1  x10: 0x00000000000036d8  x11: 0x0000000000004001
      x12: 0x0000000000000210 x13: 0x0000000000000001  x14: 0xfffffe151a087848  x15: 0x0000000000000002
      x16: 0x01ac7e00293cc940 x17: 0xfffffe002a2d4fa0  x18: 0x0000000000000000  x19: 0x0000000000000000
      x20: 0x0000000000000001 x21: 0xfffffe151a087840  x22: 0xfffffe151236f468  x23: 0x0000000000000003
      x24: 0xfffffe151236f300 x25: 0x0000000000000000  x26: 0xfffffe0026ce1c5d  x27: 0xfffffe0026ce1c76
      x28: 0xfffffe0026ce1c85 fp:  0xfffffe60060c3780  lr:  0xfffffe00290527c8  sp:  0xfffffe60060c3660
      pc:  0xfffffe00293cc940 cpsr: 0x60401208         esr: 0x96000006          far: 0x00000000000000c0

Debugger message: panic
Memory ID: 0xff
OS release type: User
OS version: 21A559
Kernel version: Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101
Fileset Kernelcache UUID: 39AE122AC7508C4798C8CF27369575F7
Kernel UUID: 65055A0F-950D-365E-BE19-6B3D6230C622
iBoot version: iBoot-7429.41.5
secure boot?: YES
Paniclog version: 13
KernelCache slide: 0x000000001f698000
KernelCache base:  0xfffffe002669c000
Kernel slide:      0x000000001febc000
Kernel text base:  0xfffffe0026ec0000
Kernel text exec slide: 0x000000001ffa0000
Kernel text exec base:  0xfffffe0026fa4000
mach_absolute_time: 0x2b67e7ad3e
Epoch Time:        sec       usec
  Boot    : 0x61a5b156 0x000731b4
  Sleep   : 0x00000000 0x00000000
  Wake    : 0x00000000 0x00000000
  Calendar: 0x61a5cfa8 0x0001a435

Zone info:
Foreign   : 0xfffffe002e854000 - 0xfffffe002e868000
Native    : 0xfffffe10002f0000 - 0xfffffe30002f0000
Readonly  : 0 - 0
Metadata  : 0xfffffe6195174000 - 0xfffffe61a10bc000
Bitmaps   : 0xfffffe6195178000 - 0xfffffe6197d90000
CORE 0 recently retired instr at 0xfffffe002712c640
CORE 1 recently retired instr at 0xfffffe002712c640
CORE 2 recently retired instr at 0xfffffe002712c640
CORE 3 recently retired instr at 0xfffffe002712c640
CORE 4 recently retired instr at 0xfffffe002712af90
CORE 5 recently retired instr at 0xfffffe002712c644
CORE 6 recently retired instr at 0xfffffe002712c644
CORE 7 recently retired instr at 0xfffffe002712c644
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 0: PC=0xfffffe002702ab60, LR=0xfffffe002702ab5c, FP=0xfffffe6006063ef0
CORE 1: PC=0xfffffe002702ab5c, LR=0xfffffe002702ab5c, FP=0xfffffe6075153ef0
CORE 2: PC=0xfffffe002702ab5c, LR=0xfffffe002702ab5c, FP=0xfffffe600616bef0
CORE 3: PC=0xfffffe002702ab5c, LR=0xfffffe002702ab5c, FP=0xfffffe6006243ef0
CORE 4 is the one that panicked. Check the full backtrace for details.
CORE 5: PC=0x0000000102f69634, LR=0x0000000102f6bb04, FP=0x00000002030686e0
CORE 6: PC=0xfffffe002702ab60, LR=0xfffffe002702ab5c, FP=0xfffffe601e1b3ef0
CORE 7: PC=0xfffffe002702ab60, LR=0xfffffe002702ab5c, FP=0xfffffe6006103ef0
Panicked task 0xfffffe1512283be8: 2968 pages, 8 threads: pid 2749: Godot
Panicked thread: 0xfffffe1517e8f440, backtrace: 0xfffffe60060c29c0, tid: 132234
          lr: 0xfffffe0026ff6464  fp: 0xfffffe60060c2a30
          lr: 0xfffffe0026ff6134  fp: 0xfffffe60060c2aa0
          lr: 0xfffffe0027131c30  fp: 0xfffffe60060c2ac0
          lr: 0xfffffe0027124e84  fp: 0xfffffe60060c2b40
          lr: 0xfffffe002712284c  fp: 0xfffffe60060c2c00
          lr: 0xfffffe0026fab7f8  fp: 0xfffffe60060c2c10
          lr: 0xfffffe0026ff5dac  fp: 0xfffffe60060c2fb0
          lr: 0xfffffe0026ff5dac  fp: 0xfffffe60060c3020
          lr: 0xfffffe00277f3c5c  fp: 0xfffffe60060c3040
          lr: 0xfffffe00277faef0  fp: 0xfffffe60060c31c0
          lr: 0xfffffe0027124c7c  fp: 0xfffffe60060c3230
          lr: 0xfffffe0027122bdc  fp: 0xfffffe60060c32f0
          lr: 0xfffffe0026fab7f8  fp: 0xfffffe60060c3300
          lr: 0xfffffe00290527c8  fp: 0xfffffe60060c3780
          lr: 0xfffffe0029052944  fp: 0xfffffe60060c37b0
          lr: 0xfffffe00290516b4  fp: 0xfffffe60060c3800
          lr: 0xfffffe0029051d4c  fp: 0xfffffe60060c3830
          lr: 0xfffffe002904dd40  fp: 0xfffffe60060c38b0
          lr: 0xfffffe0027755528  fp: 0xfffffe60060c3910
          lr: 0xfffffe0027761e8c  fp: 0xfffffe60060c3aa0
          lr: 0xfffffe00270f3290  fp: 0xfffffe60060c3bc0
          lr: 0xfffffe0026ffbe24  fp: 0xfffffe60060c3c70
          lr: 0xfffffe0026fd381c  fp: 0xfffffe60060c3ce0
          lr: 0xfffffe0026feb334  fp: 0xfffffe60060c3d70
          lr: 0xfffffe002711819c  fp: 0xfffffe60060c3e50
          lr: 0xfffffe0027122d10  fp: 0xfffffe60060c3f10
          lr: 0xfffffe0026fab7f8  fp: 0xfffffe60060c3f20
      Kernel Extensions in backtrace:
         com.apple.iokit.IOGPUFamily(35.11)[D6840617-D3A3-393F-A190-0C64F904F3BD]@0xfffffe002904a6a0->0xfffffe0029078c33
            dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[3EF67662-7297-3BC3-94C3-B1F2778149E6]@0xfffffe00282f5c70->0xfffffe0028310887
            dependency: com.apple.iokit.IOGraphicsFamily(593)[73F92AD6-FBB0-3F8A-A8BC-139F968E74AE]@0xfffffe0029078c40->0xfffffe00290b02b7
            dependency: com.apple.iokit.IOPCIFamily(2.9)[38E6DC01-BDA7-38F0-A6AF-C1FEAA322FB4]@0xfffffe00292c4050->0xfffffe00292e06b7
            dependency: com.apple.iokit.IOReportFamily(47)[EA48F6C5-6287-39A9-A6C6-229C5029AE20]@0xfffffe00292e06c0->0xfffffe00292e370b
            dependency: com.apple.iokit.IOSurface(302.9)[AE90C4A8-943B-3D6B-B2E4-92056D53E6DC]@0xfffffe00293bd090->0xfffffe00293dd2e7

last started kext at 2823078125: com.apple.filesystems.smbfs    4.0 (addr 0xfffffe0026ea5980, size 64483)
loaded kexts:
com.apple.filesystems.smbfs 4.0
com.apple.filesystems.autofs    3.0
com.apple.fileutil  20.036.15
com.apple.UVCService    1
com.apple.driver.AppleBiometricServices 1
com.apple.driver.CoreKDL    1
com.apple.driver.usb.AppleUSBHostBillboardDevice    1.0
com.apple.driver.AppleAOPVoiceTrigger   100.1
com.apple.driver.BCMWLANFirmware4378.Hashstore  1
com.apple.driver.SEPHibernation 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.iokit.AppleBCM5701Ethernet    11.0.0
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleUSBDeviceNCM  5.0.0
com.apple.filesystems.apfs  1933.41.2
com.apple.driver.AppleThunderboltIP 4.0.3
com.apple.driver.AppleFileSystemDriver  3.0.1
com.apple.nke.l2tp  1.9
com.apple.filesystems.tmpfs 1
com.apple.filesystems.lifs  1
com.apple.IOTextEncryptionFamily    1.0.0
com.apple.filesystems.hfs.kext  582.40.4
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.AppleSmartIO2  1
com.apple.driver.ApplePMP   1
com.apple.driver.ApplePMPFirmware   1
com.apple.driver.AppleSPMIPMU   1.0.1
com.apple.AppleEmbeddedSimpleSPINORFlasher  1
com.apple.driver.AppleTAS5770LAmp   502.6
com.apple.driver.AppleCS42L83Audio  502.6
com.apple.driver.AppleT8020SOCTuner 1
com.apple.driver.AppleT8103CLPCv3   1
com.apple.driver.AppleMobileDispH13G-DCP    140.0
com.apple.driver.AppleAVD   415
com.apple.AGXG13G   187.57
com.apple.driver.AppleSerialShim    1
com.apple.driver.AppleSPIMC 1
com.apple.driver.AppleJPEGDriver    4.7.8
com.apple.driver.AppleAVE2  501.6.9
com.apple.driver.AudioDMAController-T8103   100.51
com.apple.driver.usb.AppleSynopsysUSB40XHCI 1
com.apple.driver.AppleS5L8960XNCO   1
com.apple.driver.AppleT8103PMGR 1
com.apple.driver.AppleEventLogHandler   1
com.apple.driver.AppleS8000AES  1
com.apple.driver.AppleS5L8920XPWM   1.0.0d1
com.apple.driver.AppleS8000DWI  1.0.0d1
com.apple.driver.AppleInterruptController   1.0.0d1
com.apple.driver.AppleM68Buttons    1.0.0d1
com.apple.driver.AppleBluetoothModule   1
com.apple.driver.AppleSamsungSerial 1.0.0d1
com.apple.driver.AppleBCMWLANBusInterfacePCIe   1
com.apple.driver.AppleMCDP29XXUpdateSupport 1
com.apple.driver.AppleT8020DART 1
com.apple.driver.AppleS5L8940XI2C   1.0.0d2
com.apple.driver.AppleT8101 1
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.AppleDiskImages2   126.40.1
com.apple.AppleSystemPolicy 2.0.0
com.apple.nke.applicationfirewall   402
com.apple.kec.InvalidateHmac    1
com.apple.kec.AppleEncryptedArchive 1
com.apple.driver.driverkit.serial   6.0.0
com.apple.iokit.IOAVBFamily 1010.2
com.apple.plugin.IOgPTPPlugin   1000.11
com.apple.iokit.IOEthernetAVBController 1.1.0
com.apple.kext.triggers 1.0
com.apple.driver.AppleMesaSEPDriver 100.99
com.apple.iokit.IOBiometricFamily   1
com.apple.driver.AppleAOPAudio  102.2
com.apple.driver.usb.IOUSBHostHIDDevice 1.2
com.apple.driver.usb.cdc    5.0.0
com.apple.driver.AppleUSBAudio  412.8
com.apple.iokit.IOAudioFamily   300.10
com.apple.vecLib.kext   1.2.0
com.apple.driver.AppleSEPHDCPManager    1.0.1
com.apple.driver.AppleTrustedAccessory  1
com.apple.iokit.AppleSEPGenericTransfer 1
com.apple.driver.DiskImages.KernelBacked    493.0.0
com.apple.driver.usb.AppleEmbeddedUSBXHCIPCI    1
com.apple.driver.usb.AppleUSBXHCIPCI    1.2
com.apple.driver.AppleEmbeddedUSB   1
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.AppleXsanScheme    3
com.apple.driver.AppleThunderboltUSBDownAdapter 1.0.4
com.apple.driver.AppleThunderboltDPInAdapter    8.5.0
com.apple.driver.AppleThunderboltDPAdapterFamily    8.5.0
com.apple.driver.AppleThunderboltPCIDownAdapter 4.1.1
com.apple.nke.ppp   1.9
com.apple.driver.AppleDCPDPTXProxy  1.0.0
com.apple.driver.DCPDPFamilyProxy   1
com.apple.driver.AppleBSDKextStarter    3
com.apple.filesystems.hfs.encodings.kext    1
com.apple.driver.AppleSPU   1
com.apple.iokit.IONVMeFamily    2.1.0
com.apple.driver.AppleDiagnosticDataAccessReadOnly  1.0.0
com.apple.driver.AppleNANDConfigAccess  1.0.0
com.apple.driver.AppleStockholmControl  1.0.0
com.apple.AGXFirmwareKextG13GRTBuddy    187.57
com.apple.AGXFirmwareKextRTBuddy64  187.57
com.apple.driver.AppleDialogPMU 1.0.1
com.apple.driver.AppleHPM   3.4.4
com.apple.driver.AppleCSEmbeddedAudio   502.6
com.apple.driver.AppleEmbeddedAudio 502.6
com.apple.iokit.AppleARMIISAudio    100.1
com.apple.driver.ApplePassthroughPPM    3.0
com.apple.driver.DCPAVFamilyProxy   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.iokit.IOGPUFamily 35.11
com.apple.driver.AppleSART  1
com.apple.driver.AppleT8103TypeCPhy 1
com.apple.driver.AppleH11ANEInterface   5.33.0
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.AppleEmbeddedUSBHost   1
com.apple.driver.usb.AppleUSBHub    1.2
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.2
com.apple.driver.AppleSPMI  1.0.1
com.apple.driver.AppleMCA2-T8103    600.95
com.apple.driver.AppleEmbeddedAudioLibs 100.9.1
com.apple.driver.AppleFirmwareUpdateKext    1
com.apple.driver.ApplePMGR  1
com.apple.driver.AppleARMWatchdogTimer  1
com.apple.driver.usb.AppleUSBHostPacketFilter   1.0
com.apple.driver.AppleDisplayCrossbar   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.AppleBluetoothDebugService 1
com.apple.driver.AppleBCMWLANCore   1.0.0
com.apple.iokit.IO80211Family   1200.12.2b1
com.apple.driver.IOImageLoader  1.0.0
com.apple.driver.AppleOLYHAL    1
com.apple.driver.corecapture    1.0.4
com.apple.driver.AppleEmbeddedPCIE  1
com.apple.iokit.IODisplayPortFamily 1.0.0
com.apple.driver.AppleGPIOICController  1.0.2
com.apple.driver.AppleFireStormErrorHandler 1
com.apple.driver.AppleMobileApNonce 1
com.apple.iokit.IOTimeSyncFamily    1000.11
com.apple.driver.DiskImages 493.0.0
com.apple.iokit.IOGraphicsFamily    593
com.apple.iokit.IOBluetoothSerialManager    9.0.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport   9.0.0
com.apple.iokit.IOBluetoothHostControllerUARTTransport  9.0.0
com.apple.iokit.IOBluetoothHostControllerTransport  9.0.0
com.apple.driver.IOBluetoothHostControllerPCIeTransport 9.0.0
com.apple.iokit.IOBluetoothFamily   9.0.0
com.apple.driver.FairPlayIOKit  68.13.0
com.apple.iokit.CoreAnalyticsFamily 1
com.apple.iokit.CSRBluetoothHostControllerUSBTransport  9.0.0
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 9.0.0
com.apple.driver.AppleSSE   1.0
com.apple.driver.AppleSEPKeyStore   2
com.apple.driver.AppleUSBTDM    532.40.7
com.apple.iokit.IOUSBMassStorageDriver  209.40.6
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOSCSIBlockCommandsDevice   452.30.4
com.apple.iokit.IOSCSIArchitectureModelFamily   452.30.4
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.0
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.AppleIISController 100.1
com.apple.driver.AppleAudioClockLibs    100.9.1
com.apple.driver.AppleM2ScalerCSCDriver 265.0.0
com.apple.iokit.IOSurface   302.9
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.security.AppleImage4  4.1.0
com.apple.kext.CoreTrust    1
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.Libm  1
com.apple.kec.corecrypto    12.0

** Stackshot Succeeded ** Bytes Traced 347963 (Uncompressed 873936) **
akien-mga commented 2 years ago

Please specify the Godot version (release) you are using.

bruvzg commented 2 years ago

43951 duplicate. ~It's unlikely we can do anything with the driver crash, probably should disable transparency on M1.~

Fix - #55464.

IR2O commented 2 years ago

Please specify the Godot version (release) you are using.

v3.4 godot.mono.official