Search Unity

Unity editor crashes macOS

Discussion in 'Editor & General Support' started by DobrinescuI, Sep 4, 2019.

  1. DobrinescuI

    DobrinescuI

    Joined:
    Oct 6, 2017
    Posts:
    5
    I am using Unity 2019.3.0b1 on a Macbook pro (mid 2015).

    When editor tries to open after importing the assets from an existing project macOS crashes with a kernel panic. After rebooting i am able to open editor but then macOS randomly crashes again when i click on an editor window.

    This is the kernel panic report:

    Anonymous UUID: 47D52836-7B3B-EFD8-C8D6-DABB06DE7731

    Wed Sep 4 10:35:16 2019

    *** Panic Report ***
    panic(cpu 3 caller 0xffffff80062dbadd): Kernel trap at 0xffffff7f872d65db, type 14=page fault, registers:
    CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x000000000a25d000, CR4: 0x00000000001626e0
    RAX: 0x000000000c000304, RBX: 0xffffff8046ea75e0, RCX: 0x0000000000000001, RDX: 0x0000000000000000
    RSP: 0xffffff81f56fbde0, RBP: 0xffffff81f56fbde0, RSI: 0x0000000000000000, RDI: 0xffffff8045d57000
    R8: 0x0000000000000310, R9: 0x0000000000000001, R10: 0xffffff8006aa3ec0, R11: 0x0000000000003220
    R12: 0xffffff8046ea75e0, R13: 0x0000000000000000, R14: 0x0000000000000006, R15: 0xffffff7f873298d8
    RFL: 0x0000000000010246, RIP: 0xffffff7f872d65db, CS: 0x0000000000000008, SS: 0x0000000000000010
    Fault CR2: 0x0000000000000000, Error code: 0x0000000000000000, Fault CPU: 0x3, PL: 0, VF: 1

    Backtrace (CPU 3), Frame : Return Address
    0xffffff81f56fb8b0 : 0xffffff80061ae6ed
    0xffffff81f56fb900 : 0xffffff80062ea185
    0xffffff81f56fb940 : 0xffffff80062db8ba
    0xffffff81f56fb9b0 : 0xffffff800615bb40
    0xffffff81f56fb9d0 : 0xffffff80061ae107
    0xffffff81f56fbaf0 : 0xffffff80061adf53
    0xffffff81f56fbb60 : 0xffffff80062dbadd
    0xffffff81f56fbcd0 : 0xffffff800615bb40
    0xffffff81f56fbcf0 : 0xffffff7f872d65db
    0xffffff81f56fbde0 : 0xffffff7f873050e1
    0xffffff81f56fbe10 : 0xffffff7f8887580c
    0xffffff81f56fbe40 : 0xffffff7f872eb18a
    0xffffff81f56fbea0 : 0xffffff7f872ece18
    0xffffff81f56fbed0 : 0xffffff8006858d8c
    0xffffff81f56fbf30 : 0xffffff8006856e72
    0xffffff81f56fbf70 : 0xffffff80068563cc
    0xffffff81f56fbfa0 : 0xffffff800615b0ce
    Kernel Extensions in backtrace:
    com.apple.iokit.IOAcceleratorFamily2(404.14)[618B24B5-1387-31FD-A7F7-53283E2C3FEA]@0xffffff7f872bd000->0xffffff7f87363fff
    dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[1D716047-7F62-3FFA-8C01-26C166B3739A]@0xffffff7f86f8d000
    dependency: com.apple.iokit.IOSurface(255.6.1)[263BDC28-38C8-3995-BB6B-AD419E41C2DC]@0xffffff7f87239000
    dependency: com.apple.iokit.IOPCIFamily(2.9)[BFDEB8D4-50FE-3DDB-87B7-F6A504393830]@0xffffff7f86a95000
    dependency: com.apple.iokit.IOGraphicsFamily(530.66)[373EAB85-2C5F-3B84-B86D-421F79C47DF2]@0xffffff7f8725d000
    dependency: com.apple.iokit.IOReportFamily(47)[0BC9F93B-456A-3D97-BE4C-69DCBB5E8A3C]@0xffffff7f872b6000
    com.apple.driver.AppleIntelHD5000Graphics(12.1)[64FB4E54-1464-3749-9D2C-B80783A164E9]@0xffffff7f88862000->0xffffff7f888dcfff
    dependency: com.apple.iokit.IOSurface(255.6.1)[263BDC28-38C8-3995-BB6B-AD419E41C2DC]@0xffffff7f87239000
    dependency: com.apple.iokit.IOPCIFamily(2.9)[BFDEB8D4-50FE-3DDB-87B7-F6A504393830]@0xffffff7f86a95000
    dependency: com.apple.iokit.IOGraphicsFamily(530.66)[373EAB85-2C5F-3B84-B86D-421F79C47DF2]@0xffffff7f8725d000
    dependency: com.apple.iokit.IOAcceleratorFamily2(404.14)[618B24B5-1387-31FD-A7F7-53283E2C3FEA]@0xffffff7f872bd000

    BSD process name corresponding to current thread: kernel_task

    Mac OS version:
    18G95

    Kernel version:
    Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64
    Kernel UUID: C41337A1-0EC3-3896-A954-A1F85E849D53
    Kernel slide: 0x0000000005e00000
    Kernel text base: 0xffffff8006000000
    __HIB text base: 0xffffff8005f00000
    System model name: MacBookPro11,4 (Mac-06F11FD93F0323C5)

    System uptime in nanoseconds: 636065337973
    last loaded kext at 247360646113: com.apple.filesystems.msdosfs 1.10 (addr 0xffffff7f8750c000, size 69632)
    last unloaded kext at 308157782476: com.apple.driver.AppleFileSystemDriver 3.0.1 (addr 0xffffff7f86db3000, size 8192)
    loaded kexts:
    com.apple.filesystems.smbfs 3.3.2
    com.apple.driver.AppleBluetoothMultitouch 96
    com.apple.driver.AppleMikeyHIDDriver 131
    com.apple.driver.AudioAUUC 1.70
    com.apple.fileutil 20.036.15
    com.apple.filesystems.autofs 3.0
    com.apple.driver.AppleUpstreamUserClient 3.6.5
    com.apple.driver.AGPM 110.25.11
    com.apple.driver.ApplePlatformEnabler 2.7.0d0
    com.apple.driver.X86PlatformShim 1.0.0
    com.apple.driver.AppleGraphicsDevicePolicy 3.50.12
    com.apple.AGDCPluginDisplayMetrics 3.50.12
    com.apple.driver.AppleHDA 282.54
    com.apple.driver.AppleHV 1
    com.apple.iokit.IOUserEthernet 1.0.1
    com.apple.iokit.IOBluetoothSerialManager 6.0.14d3
    com.apple.driver.AppleIntelHD5000Graphics 12.1.0
    com.apple.driver.pmtelemetry 1
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.driver.AppleBacklight 170.12.12
    com.apple.driver.eficheck 1
    com.apple.driver.AppleIntelFramebufferAzul 12.1.0
    com.apple.driver.AppleSMCLMU 212
    com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
    com.apple.driver.AppleMCCSControl 1.5.9
    com.apple.driver.AppleLPC 3.1
    com.apple.driver.AppleOSXWatchdog 1
    com.apple.driver.AppleCameraInterface 6.8.0
    com.apple.iokit.BroadcomBluetooth20703USBTransport 6.0.14d3
    com.apple.driver.AppleThunderboltIP 3.1.2
    com.apple.driver.AppleTopCaseHIDEventDriver 138.4
    com.apple.driver.AppleUSBTopCaseDriver 138.4
    com.apple.driver.AppleUSBCardReader 456.260.3
    com.apple.filesystems.apfs 945.275.7
    com.apple.driver.AirPort.BrcmNIC 1400.1.1
    com.apple.driver.AppleAHCIPort 329.260.5
    com.apple.driver.AppleVirtIO 2.1.3
    com.apple.filesystems.hfs.kext 407.200.4
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.BootCache 40
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
    com.apple.AppleSystemPolicy 1.0
    com.apple.private.KextAudit 1.0
    com.apple.driver.AppleSmartBatteryManager 161.0.0
    com.apple.driver.AppleRTC 2.0
    com.apple.driver.AppleACPIButtons 6.1
    com.apple.driver.AppleHPET 1.8
    com.apple.driver.AppleSMBIOS 2.1
    com.apple.driver.AppleACPIEC 6.1
    com.apple.driver.AppleAPIC 1.7
    com.apple.nke.applicationfirewall 201
    com.apple.security.TMSafetyNet 8
    com.apple.driver.AppleBluetoothHIDKeyboard 208
    com.apple.kext.triggers 1.0
    com.apple.driver.DspFuncLib 282.54
    com.apple.kext.OSvKernDSPLib 528
    com.apple.iokit.IOAVBFamily 760.6
    com.apple.plugin.IOgPTPPlugin 740.2
    com.apple.iokit.IOEthernetAVBController 1.1.0
    com.apple.iokit.IOSkywalkFamily 1
    com.apple.driver.AppleSSE 1.0
    com.apple.driver.AppleBacklightExpert 1.1.0
    com.apple.iokit.IONDRVSupport 530.51
    com.apple.driver.X86PlatformPlugin 1.0.0
    com.apple.iokit.IOAcceleratorFamily2 404.14
    com.apple.iokit.IOSurface 255.6.1
    com.apple.AppleGPUWrangler 3.50.12
    com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0
    com.apple.driver.AppleSMBusController 1.0.18d1
    com.apple.driver.AppleHDAController 282.54
    com.apple.iokit.IOHDAFamily 282.54
    com.apple.AppleGraphicsDeviceControl 3.50.12
    com.apple.iokit.IOGraphicsFamily 530.66
    com.apple.driver.AppleGraphicsControl 3.50.12
    com.apple.driver.IOPlatformPluginFamily 6.0.0d8
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 6.0.14d3
    com.apple.iokit.IOBluetoothHostControllerUSBTransport 6.0.14d3
    com.apple.iokit.IOBluetoothHostControllerTransport 6.0.14d3
    com.apple.driver.AppleActuatorDriver 2450.1
    com.apple.driver.AppleHSBluetoothDriver 138.4
    com.apple.driver.IOBluetoothHIDDriver 6.0.14d3
    com.apple.iokit.IOBluetoothFamily 6.0.14d3
    com.apple.driver.AppleHIDKeyboard 208
    com.apple.driver.AppleMultitouchDriver 2450.1
    com.apple.driver.AppleInputDeviceSupport 2440.2
    com.apple.driver.usb.IOUSBHostHIDDevice 1.2
    com.apple.iokit.IOAudioFamily 206.5
    com.apple.vecLib.kext 1.2.0
    com.apple.driver.usb.networking 5.0.0
    com.apple.driver.usb.AppleUSBHostCompositeDevice 1.2
    com.apple.driver.usb.AppleUSBHub 1.2
    com.apple.driver.AppleThunderboltDPInAdapter 5.6.9
    com.apple.driver.AppleThunderboltDPAdapterFamily 5.6.9
    com.apple.driver.AppleThunderboltPCIDownAdapter 2.1.5
    com.apple.driver.AppleThunderboltNHI 4.7.9
    com.apple.iokit.IOThunderboltFamily 6.8.6
    com.apple.iokit.IOAHCIBlockStorage 301.270.1
    com.apple.iokit.IO80211Family 1200.12.2
    com.apple.driver.mDNSOffloadUserClient 1.0.1b8
    com.apple.driver.corecapture 1.0.4
    com.apple.driver.usb.AppleUSBXHCIPCI 1.2
    com.apple.driver.usb.AppleUSBXHCI 1.2
    com.apple.iokit.IOAHCIFamily 288
    com.apple.iokit.IOSerialFamily 11
    com.apple.filesystems.hfs.encodings.kext 1
    com.apple.driver.usb.AppleUSBHostPacketFilter 1.0
    com.apple.iokit.IOUSBFamily 900.4.2
    com.apple.driver.AppleUSBHostMergeProperties 1.2
    com.apple.driver.AppleEFINVRAM 2.1
    com.apple.driver.AppleEFIRuntime 2.1
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.iokit.IOHIDFamily 2.0.0
    com.apple.security.quarantine 3
    com.apple.security.sandbox 300.0
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.driver.DiskImages 493.0.0
    com.apple.driver.AppleFDEKeyStore 28.30
    com.apple.driver.AppleEffaceableStorage 1.0
    com.apple.driver.AppleKeyStore 2
    com.apple.driver.AppleUSBTDM 456.260.3
    com.apple.driver.AppleMobileFileIntegrity 1.0.5
    com.apple.iokit.IOUSBMassStorageDriver 145.200.2
    com.apple.iokit.IOSCSIBlockCommandsDevice 408.250.3
    com.apple.iokit.IOSCSIArchitectureModelFamily 408.250.3
    com.apple.iokit.IOStorageFamily 2.1
    com.apple.kext.CoreTrust 1
    com.apple.driver.AppleCredentialManager 1.0
    com.apple.driver.KernelRelayHost 1
    com.apple.iokit.IOUSBHostFamily 1.2
    com.apple.driver.usb.AppleUSBCommon 1.0
    com.apple.driver.AppleBusPowerController 1.0
    com.apple.driver.AppleSEPManager 1.0.1
    com.apple.driver.IOSlaveProcessor 1
    com.apple.iokit.IOReportFamily 47
    com.apple.iokit.IOTimeSyncFamily 740.2
    com.apple.iokit.IONetworkingFamily 3.4
    com.apple.driver.AppleACPIPlatform 6.1
    com.apple.driver.AppleSMC 3.1.9
    com.apple.iokit.IOPCIFamily 2.9
    com.apple.iokit.IOACPIFamily 1.4
    com.apple.kec.pthread 1
    com.apple.kec.Libm 1
    com.apple.kec.corecrypto 1.0

    EOF
    Model: MacBookPro11,4, BootROM 194.0.0.0.0, 4 processors, Intel Core i7, 2,2 GHz, 16 GB, SMC 2.29f24
    Graphics: kHW_IntelIrisProItem, Intel Iris Pro, spdisplays_builtin
    Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
    Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.77.61.2 AirPortDriverBrcmNIC-1305.8)
    Bluetooth: Version 6.0.14d3, 3 services, 27 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en0
    Serial ATA Device: APPLE SSD SM0256G, 251 GB
    USB Device: USB 3.0 Bus
    USB Device: Internal Memory Card Reader
    USB Device: USB5744
    USB Device: Apple Internal Keyboard / Trackpad
    USB Device: Bluetooth USB Host Controller
    USB Device: USB2744
    USB Device: USB2.0 Hub
    Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1


    I tried reinstalling macOS, reimport the project multiple times but with no success.

    I could not reproduce this with another project and the project that crashes on my laptop works just fine on another machine.

    Does anyone know what the problem might be?
     
    Last edited: Sep 4, 2019
    shaneparsons likes this.
  2. DobrinescuI

    DobrinescuI

    Joined:
    Oct 6, 2017
    Posts:
    5
    Update:
    I managed to reproduce this crash by creating a new project and replace the ProjectSettings folder with the one from the project that crashed before.

    I attached the unity crash report
     

    Attached Files:

  3. DobrinescuI

    DobrinescuI

    Joined:
    Oct 6, 2017
    Posts:
    5
    Ok, i think i solved it. My project settings had metal editor support disabled. Enabling this option solved the crashing problem. I reproduced this issue with a freshly created project and just disabled the Metal editor support. I tried on a macbook pro 2018 (with dedicated graphics card) and could not reproduce the issue. This could be an Intel graphics driver related problem.
     
    edwardrowe, satanas, wlwl2 and 5 others like this.
  4. lumeneo

    lumeneo

    Joined:
    Mar 3, 2014
    Posts:
    60
    OMG, I think I'm having the same issue, except my project is for Magic Leap, which uses WebGL on the Mac during dev. Ouch.
     
  5. kyuskoj

    kyuskoj

    Joined:
    Aug 28, 2013
    Posts:
    56
    You just saved my Life. Thanks.
     
  6. pep_dj

    pep_dj

    Joined:
    Nov 7, 2014
    Posts:
    179
    Saved my day :) Thanks!
     
  7. cgascons

    cgascons

    Joined:
    Feb 22, 2016
    Posts:
    25
    Don't quite know how you got to into that solution but definitely saved my day as well, thanks!

    Update: Keeps crashing after a few minutes
     
    Last edited: Jan 31, 2020
  8. sadambober

    sadambober

    Joined:
    Jan 14, 2014
    Posts:
    1
    I have the same issue with 2019.3.0f6 on a Macbook 12 (2017). OS crashes when I switch between the Scene and Game tabs.
    The same project worked fine on 2019.2 and there are no issues on windows.
    Switching to Metal didn't help.
     
  9. AppA11y2

    AppA11y2

    Joined:
    Jul 25, 2017
    Posts:
    1
    Same here.
     
  10. GaryBearchell

    GaryBearchell

    Joined:
    Feb 10, 2020
    Posts:
    1
    Yup, same here. Nice find.
     
  11. lharoon

    lharoon

    Joined:
    Mar 31, 2016
    Posts:
    5
    Has this already been flagged as a bug?

    Disabling metal support in the editor causes my MacBook (2018, integrated graphics) to freeze & crash on the latest 2019 release (Unity 2019.3.1). Annoyingly, I get a screen tearing issue with metal that doesn't appear to be there with OpenGL, but I can't switch without everything going haywire :(.
     
    kmedved likes this.
  12. LuckyHamster

    LuckyHamster

    Joined:
    Oct 28, 2014
    Posts:
    50
    Where do you find the metal support editor setting? I can't find it for the life of me. Thanks.
     
  13. PeterPP

    PeterPP

    Joined:
    Jul 18, 2019
    Posts:
    3
    Open ProjectSettings/ProjectSettings.asset with text editor, find metalEditorSupport and set to 1.
    metalEditorSupport: 1
     
    diogo-FYF, edwardrowe and wlwl2 like this.
  14. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
    I've had 15 crashes in the past days and enabling metal seems to workaround for now. I reported issue #1225380
     
  15. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Thank you for the report! We're looking into it.

    Could you please submit a bug report for the crashes you're experiencing? Sounds like separate issues.
     
    wlwl2 likes this.
  16. juanfornos

    juanfornos

    Joined:
    Feb 17, 2018
    Posts:
    10
    This happens with the latest build of Unity too. Unity crashes constantly and sometimes makes the OS to crash. I disabled the editor metal support because I'm getting rendering artifacts in the Editor making it unusable (attaching a screenshot) and the only solution is to restart it. I guess the better option is to enable metal and restart the editor from time to time instead of using OpenGL and being unable to start unity at all or even making my computer to crash ¯\_(ツ)_/¯
     

    Attached Files:

  17. cubbox55

    cubbox55

    Joined:
    Sep 9, 2014
    Posts:
    1
    Same issue here on 2019.30b6. Enabling metal support is the only way to stop a kernel panic when previewing on my 2018 13" Intel Iris 655 GPU Macbook
     
  18. kankeus

    kankeus

    Joined:
    Dec 3, 2013
    Posts:
    12
    Thank you.. i thought my mac was broken before I found about this. Now seems to be working! Phew... Using 2019.3.4f on a MacBook Air 2013 11"
     
  19. tanico

    tanico

    Joined:
    Sep 5, 2014
    Posts:
    24
    This is still happening and relevant in 2019.3.6f1. I tried to turn metal editor support on by editing the settings file but it keeps crashing with a different error now:

    Code (CSharp):
    1. Process:               Unity [3900]
    2. Path:                  /Applications/Unity/*/Unity.app/Contents/MacOS/Unity
    3. Identifier:            com.unity3d.UnityEditor5.x
    4. Version:               Unity version 2019.3.6f1 (2019.3.6f1)
    5. Code Type:             X86-64 (Native)
    6. Parent Process:        Unity Hub [469]
    7. Responsible:           Unity Hub [469]
    8. User ID:               501
    9.  
    10. Date/Time:             2020-03-25 18:11:08.328 +0100
    11. OS Version:            Mac OS X 10.15.3 (19D76)
    12. Report Version:        12
    13. Bridge OS Version:     4.2 (17P3050)
    14. Anonymous UUID:        849CF114-E224-4379-96AC-28247BD8F42A
    15.  
    16.  
    17. Time Awake Since Boot: 1300 seconds
    18.  
    19. System Integrity Protection: enabled
    20.  
    21. Crashed Thread:        0  Dispatch queue: com.apple.main-thread
    22.  
    23. Exception Type:        EXC_BAD_ACCESS (SIGBUS)
    24. Exception Codes:       KERN_MEMORY_ERROR at 0x000000013ab4f00a - FS pagein error: 0x22 Invalid argument
    25. Exception Note:        EXC_CORPSE_NOTIFY
    26.  
    27. Termination Signal:    Bus error: 10
    28. Termination Reason:    Namespace SIGNAL, Code 0xa
    29. Terminating Process:   exc handler [3900]
    30.  
    31. VM Regions Near 0x13ab4f00a:
    32.     MALLOC_LARGE           000000013a78c000-000000013a98c000 [ 2048K] rw-/rwx SM=PRV
    33. --> mapped file            000000013a98c000-000000013ab8c000 [ 2048K] r--/rwx SM=PRV
    34.     STACK GUARD            0000700004cf5000-0000700004cf6000 [    4K] ---/rwx SM=NUL  stack guard for thread 1
    35.  
    36. Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    37. 0   com.unity3d.UnityEditor5.x        0x0000000111b9b4e5 mdb_page_search_root + 37
    38. 1   com.unity3d.UnityEditor5.x        0x0000000111b9adb8 mdb_page_search + 184
    39. 2   com.unity3d.UnityEditor5.x        0x0000000111b94f52 mdb_cursor_first + 66
    40. 3   com.unity3d.UnityEditor5.x        0x0000000111b94a99 mdb_cursor_get + 121
    41. 4   com.unity3d.UnityEditor5.x        0x0000000111b960d6 mdb_page_alloc + 678
    42. 5   com.unity3d.UnityEditor5.x        0x0000000111b9b194 mdb_page_touch + 100
    43. 6   com.unity3d.UnityEditor5.x        0x0000000111b9ad98 mdb_page_search + 152
    44. 7   com.unity3d.UnityEditor5.x        0x0000000111b95ac8 mdb_cursor_touch + 376
    45. 8   com.unity3d.UnityEditor5.x        0x0000000111b92f74 mdb_cursor_put + 628
    46. 9   com.unity3d.UnityEditor5.x        0x0000000111b9a705 mdb_put + 485
    47. 10  com.unity3d.UnityEditor5.x        0x000000010f0b2c27 LMDB_Map::Set(LMDB_Transaction&, LMDB_Value const&, LMDB_Value const&) + 39
    48. 11  com.unity3d.UnityEditor5.x        0x000000010f155c08 core::function_ref<void (LMDB_Transaction&)>::function_ref<SourceAssetDB::SourceAssetDB(char const*)::$_6, (void*)0>(SourceAssetDB::SourceAssetDB(char const*)::$_6&&)::'lambda'(void*, LMDB_Transaction&)::__invoke(void*, LMDB_Transaction&) + 152
    49. 12  com.unity3d.UnityEditor5.x        0x000000010f0b3ccf LMDB_Transaction::Run(core::function_ref<void (LMDB_Transaction&)>) + 79
    50. 13  com.unity3d.UnityEditor5.x        0x000000010f144c71 SourceAssetDB::SourceAssetDB(char const*) + 321
    51. 14  com.unity3d.UnityEditor5.x        0x000000010f08cc98 InitializeAssetDatabaseV2(bool, bool, bool, int*) + 792
    52. 15  com.unity3d.UnityEditor5.x        0x000000010ef7c9b4 AssetDatabase::InitializeAssetDatabase(bool, bool, bool, int*) + 132
    53. 16  com.unity3d.UnityEditor5.x        0x000000010e193fb3 Application::InitializeProject() + 8707
    54. 17  com.unity3d.UnityEditor5.x        0x0000000111b37d7d -[EditorApplication applicationDidFinishLaunching:] + 221
    55. 18  com.apple.CoreFoundation          0x00007fff34f0d35f __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
    56. 19  com.apple.CoreFoundation          0x00007fff34f0d2f3 ___CFXRegistrationPost1_block_invoke + 63
    57. 20  com.apple.CoreFoundation          0x00007fff34f0d268 _CFXRegistrationPost1 + 372
    58. 21  com.apple.CoreFoundation          0x00007fff34f0cebe ___CFXNotificationPost_block_invoke + 97
    59. 22  com.apple.CoreFoundation          0x00007fff34edc7e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1575
    60. 23  com.apple.CoreFoundation          0x00007fff34edbc82 _CFXNotificationPost + 1351
    61. 24  com.apple.Foundation              0x00007fff37561a22 -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
    62. 25  com.apple.AppKit                  0x00007fff320e4fef -[NSApplication _postDidFinishNotification] + 312
    63. 26  com.apple.AppKit                  0x00007fff320e4d32 -[NSApplication _sendFinishLaunchingNotification] + 208
    64. 27  com.apple.AppKit                  0x00007fff320e1df3 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 549
    65. 28  com.apple.AppKit                  0x00007fff320e1a39 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 688
    66. 29  com.apple.Foundation              0x00007fff3758d246 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
    67. 30  com.apple.Foundation              0x00007fff3758d0b0 _NSAppleEventManagerGenericHandler + 98
    68. 31  com.apple.AE                      0x00007fff36291092 0x7fff36284000 + 53394
    69. 32  com.apple.AE                      0x00007fff362907b9 0x7fff36284000 + 51129
    70. 33  com.apple.AE                      0x00007fff36288a27 aeProcessAppleEvent + 449
    71. 34  com.apple.HIToolbox               0x00007fff33a7d2b8 AEProcessAppleEvent + 54
    72. 35  com.apple.AppKit                  0x00007fff320dbe4c _DPSNextEvent + 1670
    73. 36  com.apple.AppKit                  0x00007fff320da380 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
    74. 37  com.apple.AppKit                  0x00007fff320cc09e -[NSApplication run] + 658
    75. 38  com.apple.AppKit                  0x00007fff3209e465 NSApplicationMain + 777
    76. 39  com.unity3d.UnityEditor5.x        0x0000000111b7a16f EditorMain(int, char const**) + 1055
    77. 40  com.unity3d.UnityEditor5.x        0x0000000111b7a479 main + 9
    78. 41  libdyld.dylib                     0x00007fff6c5bb7fd start + 1
    79.  
     
  20. MonkeyPuzzle

    MonkeyPuzzle

    Joined:
    Jan 17, 2016
    Posts:
    119
    Same here - metal support on - downgrading to 2019.2 for now.
     
  21. eggdeng

    eggdeng

    Joined:
    Jul 13, 2019
    Posts:
    1
    This issue persists on 2019.3.7f1. Again this is on a (2014) Macbook Pro with Intel Iris Graphics.
    Fiddling with Metal support makes no difference. However, reimporting all assets (Assets folder -> right click -> Reimport All) stops it happening. I think you probably need to reimport every time you make changes to the Build Settings or restart Unity.
     
    Last edited: Mar 30, 2020
  22. WoodlandGames

    WoodlandGames

    Joined:
    Jul 1, 2016
    Posts:
    1
    Same issue here (with metal support)
     
    msjoberg likes this.
  23. tconkling

    tconkling

    Joined:
    Jul 13, 2012
    Posts:
    20
    Same issue here. I have metal support enabled. When Unity is running, my system occasionally (every few days) becomes un-responsive and eventually reboots itself. Console.app shows a WindowServer crash log with these details:

    Code (CSharp):
    1. Termination Reason:    WATCHDOG, [0x1] monitoring timed out for service
    2. Termination Details:   WATCHDOG, checkin with service: WindowServer returned not alive with context:
    3. is_alive_func returned unhealthy : WindowServer initialization not complete (post IOKitWaitQuiet)
    4. 80 seconds since last successful checkin, 1325 total successsful checkins since wake, 39 seconds since last crashed by watchdogd,  (1 induced crashes)
    5.  
    I'm on a 2019 MacBook Pro with 32 GB of memory and a discrete GPU.
     
  24. aronsommer

    aronsommer

    Joined:
    Dec 5, 2010
    Posts:
    202
    Same here. I have opened and upgraded a project in which metalEditorSupport is set to 0. It crashes my MacBook Pro (13-inch 2020 2 thunderbolt ports) running macOS 10.15.5 with Unity version 2019.3.15f1 and turns off the computer.

    Setting metalEditorSupport to 1 in ProjectSettings/ProjectSettings.asset with text editor before opening solved the problem.
     
    Last edited: Jun 17, 2020
  25. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    Crikey and I bought a used MacBook Pro Retina 2015 off eBay as my Mac mini 2014 was getting this same error.
    (the 2015 does too btw)
     
  26. PandaArcade

    PandaArcade

    Joined:
    Jan 2, 2017
    Posts:
    130
    Thanks this worked for me as well!
     
  27. CameronND

    CameronND

    Joined:
    Oct 2, 2018
    Posts:
    89
    This error still happens in 2019.4.0 LTS! Same panic crash as the OP.

    Changing to metalEditorSupport to 1 seems to fix it. i will report back if it continues.
     
    Last edited: Jun 22, 2020
  28. aronsommer

    aronsommer

    Joined:
    Dec 5, 2010
    Posts:
    202
    When I filed a bug report regarding this issue they replied the following:

    "Thanks for getting in touch, after looking at the crashlog that you've attached, we've identified the issue as a duplicate of the following issue: https://issuetracker.unity3d.com/product/unity/issues/guid/1215404/

    This issue should be caused by the OpenGL graphics API, therefore you should be able to work around it by forcing the Editor to use Metal. You can do that by launching the Editor with the following command line argument: -force-metal

    You can learn more about command line arguments here:
    https://docs.unity3d.com/Manual/CommandLineArguments.html"

    On macOS, type the following into the Terminal to launch Unity:

    /Applications/Unity/Unity.app/Contents/MacOS/Unity -force-metal

    I have not tested this. And I think it is a better solution to just setting metalEditorSupport to 1 in ProjectSettings/ProjectSettings.asset with text editor before opening.
     
    shaneparsons likes this.
  29. IdrilKalean

    IdrilKalean

    Joined:
    Dec 7, 2015
    Posts:
    9
    UP -> 2020
    TY, you save me. Crash after Crash sometime immediately and sometime 1/2 hours after launch unity :). A package have changed my default setting and after crash after crash.
    Same issue Unity 2014.4.1f1 and 2019.3.14f1 ( project stetting -> player -> metal editor).

    TY All.
     
  30. mathewsbabu

    mathewsbabu

    Joined:
    Sep 30, 2014
    Posts:
    33
    Hi,
    How do we do that? can you post a screenshot?
     
  31. mathewsbabu

    mathewsbabu

    Joined:
    Sep 30, 2014
    Posts:
    33
    Enabling metaleditorsupport in the player settings seem to fix the problem
     
    Last edited: Jun 23, 2020
  32. jmdoc

    jmdoc

    Joined:
    Jun 8, 2020
    Posts:
    1
    Thank you to all who contributed to this thread. Opening the ProjectSettings.asset file and editing metaleditorsupport: 1 solved it for me on my:
    MBP 13 Early 2015 running MacOS 10.15.5 (this model has Intel Iris Graphics 6100 1536 MB)
     
    wlwl2 likes this.
  33. shaneparsons

    shaneparsons

    Joined:
    May 5, 2015
    Posts:
    44
    Thanks man, I was having this issue with Unity 2019.4.1 (LTS).

    In my case, the option to enable Metal compatibility wasn't available in a particular project (ported from an older version of Unity) and using the terminal command would just open Unity Hub. This is how I added the -force-metal flag:
    • open Unity Hub
    • click the 3 dots to the right of the project you want to add the flag to
    • click Advanced Project Settings
    • add the flag -force-metal and click done
    • your project will now open Unity in "Metal" mode
     
    Last edited: Jun 25, 2020
    wlwl2 likes this.
  34. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    961
    So it seems like neither metalEditorSupport: 1 option nor the -force-metal launch command helps MacBook Air 2012 to open Unity 2019.4.0f1 LTS project. Not even empty ones.

    My question is 2-fold:

    - How should I report this crash bug, when the Unity Editor itself is not launching?

    - Is a Metal API related crash bug currently known, so far all solutions are pointing to OpenGL issues?
     
  35. OhMyGodHelpMe

    OhMyGodHelpMe

    Joined:
    Jul 19, 2020
    Posts:
    3
    the file ProjectSettings/ProjectSettings.asset is a binary file. How can I open and modify it?
    which text editor did you use?
     
  36. nicloay

    nicloay

    Joined:
    Jul 11, 2012
    Posts:
    540
    thanks a lot! works for me also!
     
  37. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Can confirm. Unity 2019.4.4 and 2019.4.8 and 2020.1 crash with Macbook Pro 2015 and on board graphics.
    Usually when I press play and then resize the Editor.
    Once it also crashed when importing.

    Switching to metal fixes it.
    Would be great if Unity could enable metal by default in those cases.
     
  38. James-DeCarlo

    James-DeCarlo

    Joined:
    Dec 6, 2015
    Posts:
    6
    Thank you this worked on macos catalina and unity version 2019
     
  39. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,276
    I can not use 2019 LTS (2018 was fine) on Catalina (older iMac, Intel Iris Pro), just crashes Mac after a short time. No issue with project settings which have metal enabled. Kind of a big issue!

    Edit: So far -force-metal fix working
     
    Last edited: Oct 12, 2020
    wlwl2 likes this.
  40. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    I am force to update to Unity 2019 even I don't like, because of the googleplaystore api level 29 requirement,
    Im from unity 2017.4 which is perfect
    switching to Unity 2019.4 which supports api level 29, crashes and shutdowns my mac mini 2018 mojave.
    I tried almost 4 times, and it shutting down my computer. this is the first time I experience my mac being shutdown by any software, what is happening to unity? every version is getting worse!? why dont they test before release?

    And I hope they can support or update unity 2017 api level to max level 29 which is required on googelplaystore, So others who is used to specific unity version does not need to update to the buggy higher version of unity.

    I dont know what will I do now, I need to update my android app asap, and unity version which only supports api 29 always shutdowns my mac. ( my mac is i5 and 6 core very fast )

    PLEASE HELP!!!
     
    Last edited: Dec 12, 2020
  41. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
    @tataygames try to following the ideas on this thread, such as starting the editor with -force-metal argument when starting the editor or setting the value of metalEditorSupport to 1 in ProjectSettings/ProjectSettings.asset

    If you don't manage to follow any of the directions above, but you know how to use the Terminal you could most probably try something like this (adjust the YOUR_PROJECT_PATH or the version number of Unity you want to use):

    cd YOUR_PROJECT_PATH
    path=/Applications/Unity/Hub/Editor/2019.4.16f1/Unity.app
    open -a $path --args -force-metal --project-path `pwd`

    or if that doesn't work for some reason, maybe this one will

    cd YOUR_PROJECT_PATH
    version=`cat ProjectSettings/ProjectVersion.txt | head -1 | cut -d ' ' -f 2`
    path=`mdfind kMDItemCFBundleIdentifier == 'com.unity3d.UnityEditor5.x' | grep $version`
    open -a $path --args -force-metal --project-path `pwd`

    this will start unity with the right argument.
     
  42. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    Hi okay will try it on the terminal, I just fear my thousand dollar mac mini will get destroyed because of the system shutting down often, I cant even start the unity for 5 sec and my mac will shutdown, I will just try it on the terminal instead thank you
     
  43. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    Is there a way to bypass unity 2017 maximum api level to 28 and make it 29?
     

    Attached Files:

  44. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    LOL I downloaded now this Unity 2019.4.15 on my windows laptop, after 2 hours of download when installation is finish.
    I tried to opened it and nothing happens, wait for 5 minutes doesnt opened, restart my laptop, tried to open it again still does not open, I FEEL IM ON A CURSE, WTH is happening to unity. what is happening to their developers :(
    I FEEL THERE IS NO UNITY VERSION THAT IS PERFECTLY WORKING FINE!!!!!!!!!!!!
     
  45. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    Thank you very much this one works for me!!
     
  46. BilalShahid

    BilalShahid

    Joined:
    Sep 16, 2014
    Posts:
    5
    The Metal Editor Support is 1 and Metal API Validation is also 1 of my new created project. When I close the Unity Hub, it does not opening the project again. Metal Editor Support is not working. I can't figure it out to solve this issue. Does anyone have answers of this issue?

    I am Using:
    - MacBook Pro Mid 2014
    - MacOS 10.15.7
    - Unity 2019.4.16f1 LTS

    Thanks.
     
  47. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    DO WHAT shaneparsons SED, open Unity hub, before opening your project click the 3 dots look on my screenshot, then put force metal we are using same unity version 2019.4.16 LTS so this should work on you too.
     

    Attached Files:

  48. BilalShahid

    BilalShahid

    Joined:
    Sep 16, 2014
    Posts:
    5
    -force-metal is also not working in my mac and still Unity 2019.4.16f1 is not opening.
     
  49. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    what is your mac os? mine is mojave
     
  50. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    That thing happens to me on windows when I downloaded unity editor before unity hub.
    I uninstall it, and I did not downloaded unity editor or and unity installer or downloader,

    I JUST DOWNLOAD UNITY HUB, and from there go to installs click ADD button on top left then select your unity version, click next then so on, It will install your unity trough Unity hub not unity editor downloader. ( SEE SCREENSHOT)

    Thats what I did then its working already. btw I encounter bug while downloading i restarted my mac then re download.
    This unity has pure of bugs lol, even you will just install it at the first place.
     

    Attached Files:

    Last edited: Dec 18, 2020