Skip to content

Instantly share code, notes, and snippets.

@antont
Created December 17, 2024 09:25
Show Gist options
  • Save antont/3570ff2966f8fa6eadf7644a2002f3dc to your computer and use it in GitHub Desktop.
Save antont/3570ff2966f8fa6eadf7644a2002f3dc to your computer and use it in GitHub Desktop.
Metaplay 30.2 exception on Intel Mac
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Try_000000B2$BurstDirectCall' threw an exception. ---> System.InvalidOperationException: Burst failed to compile the function pointer `Int32 Try$BurstManaged(IntPtr, Block ByRef)`
at Unity.Burst.BurstCompiler.Compile (System.Object delegateObj, System.Reflection.MethodInfo methodInfo, System.Boolean isFunctionPointer, System.Boolean isILPostProcessing) [0x0015a] in ./Library/PackageCache/[email protected]/Runtime/BurstCompiler.cs:462
at Unity.Burst.BurstCompiler.CompileILPPMethod2 (System.RuntimeMethodHandle burstMethodHandle) [0x0003a] in ./Library/PackageCache/[email protected]/Runtime/BurstCompiler.cs:223
at Unity.Collections.AllocatorManager+StackAllocator+Try_000000B2$BurstDirectCall.Constructor () [0x00000] in <44c913c9b1604b409cfd6b5c953c227e>:0
at Unity.Collections.AllocatorManager+StackAllocator+Try_000000B2$BurstDirectCall..cctor () [0x00000] in <44c913c9b1604b409cfd6b5c953c227e>:0
--- End of inner exception stack trace ---
at Unity.Collections.AllocatorManager.Initialize$StackAllocator_Try_000000B2$BurstDirectCall () [0x00000] in <44c913c9b1604b409cfd6b5c953c227e>:0
at $BurstDirectCallInitializer.Initialize () [0x00000] in <44c913c9b1604b409cfd6b5c953c227e>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <e307bbb467104258887a104f6151f183>:0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <e307bbb467104258887a104f6151f183>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <e307bbb467104258887a104f6151f183>:0
at UnityEditor.EditorAssemblies.ProcessInitializeOnLoadMethodAttributes () [0x000a5] in /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:145
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:149)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment