Search Unity

Installing Entities or Burst package crashes OSX Editor

Discussion in 'Burst' started by mcjones9, Oct 18, 2018.

  1. mcjones9

    mcjones9

    Joined:
    May 4, 2017
    Posts:
    6
    When trying to install the associated package, the editor crashes when trying to load the assembly for the Burst compiler. As such I've been unable to load the ECS framework thus far. I've experienced this on 2018.2.12f1, 2017.3.0f3 and 2018.3.0b5.

    I've submitted a bug report to Unity, but I thought I would post here and see if anyone had any advice.

    Here's the stacktrace from the editor log:

    - Starting compile Library/ScriptAssemblies/Unity.Entities.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.Entities.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.Transforms.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.Transforms.Editor.dll
    Reloading assemblies after script compilation.
    Begin MonoManager ReloadAssembly
    Symbol file LoadedFromMemory is not a mono symbol file
    Initializing Unity.PackageManager (PackageManager) v2018.2.12 for Unity v2018.2.12f1
    Registering platform support modules:
    Registered platform support modules in: 0.0805678s.
    Native extension for OSXStandalone target not found
    Refreshing native plugins compatible for Editor in 1.06 ms, found 5 plugins.
    Preloading 2 native plugins for Editor in 1.80 ms.
    Refreshing native plugins compatible for Editor in 0.87 ms, found 5 plugins.
    Stacktrace:

    at <unknown> <0xffffffff>
    at (wrapper managed-to-native) Burst.Backend.UnmanagedLibrary/MacOSUnmanagedLibrary.dlopen (string,int) [0x00014] in <1b47c490f7514297b54fb38891db3f7e>:0
    at Burst.Backend.UnmanagedLibrary/MacOSUnmanagedLibrary.LoadLibrary (string) [0x00014] in <1b47c490f7514297b54fb38891db3f7e>:0
    at Burst.Backend.UnmanagedLibrary.LoadLibrary (string) [0x00026] in <1b47c490f7514297b54fb38891db3f7e>:0
    at Burst.Backend.StandardCompilerBackend..ctor (string) [0x0000f] in <1b47c490f7514297b54fb38891db3f7e>:0
    at Burst.Compiler.IL.Jit.JitCompilerService..ctor () [0x0000b] in <8ccfa83e0f984072892c29638c340c1a>:0
    at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x00020] in <f2e6809acb14476a81f399aeb800f8f2>:0
    at <unknown> <0xffffffff>
    at (wrapper managed-to-native) Unity.Burst.LowLevel.BurstCompilerService.InitializeInternal (string,Unity.Burst.LowLevel.BurstCompilerService/ExtractCompilerFlags) <0x000c5>
    at Unity.Burst.LowLevel.BurstCompilerService.Initialize (string,Unity.Burst.LowLevel.BurstCompilerService/ExtractCompilerFlags) <0x00302>
    at Unity.Burst.Editor.BurstLoader..cctor () <0x0032a>
    at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x00164>
    at <unknown> <0xffffffff>
    at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (intptr) <0x000ae>
    at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle) <0x001a2>
    at UnityEditor.EditorAssemblies.ProcessEditorInitializeOnLoad (System.Type) <0x000fa>
    at UnityEditor.EditorAssemblies.ProcessInitializeOnLoadAttributes () <0x0027a>
    at (wrapper runtime-invoke) <Module>.runtime_invoke_object (object,intptr,intptr,intptr) <0x00164>

    Native stacktrace:

    0 libmonobdwgc-2.0.dylib 0x0000000136caa266 mono_handle_native_crash + 242
    1 libmonobdwgc-2.0.dylib 0x0000000136c0b594 mono_sigill_signal_handler + 46
    2 libsystem_platform.dylib 0x00007fff8e4c3b3a _sigtramp + 26
    3 ??? 0x00000001165d0770 0x0 + 4670162800
    4 ??? 0x00000001165a7cb2 0x0 + 4669996210
    5 ??? 0x00000001165ab6c7 0x0 + 4670011079
    6 ??? 0x00000001165b354b 0x0 + 4670043467
    7 libdyld.dylib 0x00007fff8e2b1832 dlopen + 59
    8 ??? 0x000000013f05cbc6 0x0 + 5352311750

    Debug info from gdb:

    (lldb) command source -s 0 '/tmp/mono-gdb-commands.Qy2jGK'
    Executing commands in '/tmp/mono-gdb-commands.Qy2jGK'.
    (lldb) process attach --pid 38043
    Process 38043 stopped
    * thread #1, name = 'CrBrowserMain', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff8e3e33ee libsystem_kernel.dylib`__wait4 + 10
    libsystem_kernel.dylib`__wait4:
    -> 0x7fff8e3e33ee <+10>: jae 0x7fff8e3e33f8 ; <+20>
    0x7fff8e3e33f0 <+12>: movq %rax, %rdi
    0x7fff8e3e33f3 <+15>: jmp 0x7fff8e3dbcd4 ; cerror
    0x7fff8e3e33f8 <+20>: retq
    Target 0: (Unity) stopped.
     
  2. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    I just installed the preview 19 and it works fine. I am on High Sierra and 2018.3.0b5

    Maybe try deleting your Library > Package Cache and open the project again? Or clear out the ~/Library/Unity/cache/packages and let the package manager redownload the code.
     
  3. deathangelix

    deathangelix

    Joined:
    Mar 5, 2015
    Posts:
    1
    I met exactly the same problem and solve it by upgrade mac OS to High Sierra
     
  4. xoofx

    xoofx

    Unity Technologies

    Joined:
    Nov 5, 2016
    Posts:
    417
    This should be fixed if you install the latest version of burst 0.2.4-preview.37