Error when importing into project

  • A* version: [5.3.1]
  • Unity version: [6000.0.034f1]

I keep getting the following error when importing A* into project.

Processing assembly Library/Bee/artifacts/1900b0aE.dag/AstarPathfindingProject.dll, with 145 defines and 250 references
processors: Unity.Entities.CodeGen.EntitiesILPostProcessors, Unity.Jobs.CodeGen.JobsILPostProcessor, zzzUnity.Burst.CodeGen.BurstILPostProcessor
running Unity.Entities.CodeGen.EntitiesILPostProcessors
Unity.Entities.CodeGen.EntitiesILPostProcessors: ILPostProcessor has thrown an exception: System.InvalidOperationException: Type initialization failure: AIDestinationSetter inherits from more than one of IBufferElementData,
							IComponentData, ISharedComponentData, and UnityEngine.Object, which is not allowed.
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.<IsInstantiableComponentType>g__HasAnyOfTheInterfaces|15_0(TypeDefinition def)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.<IsInstantiableComponentType>g__HasAnyOfTheInterfacesRecursive|15_1(TypeDefinition def)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.IsInstantiableComponentType(TypeReference type)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.AddTypeToListIfSupported(HashSet`1 typeSet, TypeReference type)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.GatherTypeInformation()
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.PostProcessImpl(TypeDefinition[] componentSystemTypes)
   at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess(AssemblyDefinition assemblyDefinition, TypeDefinition[] componentSystemTypes, Boolean& madeAChange)
   at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process(ICompiledAssembly compiledAssembly)
   at Unity.ILPP.Runner.PostProcessingPipeline.PostProcessAssemblyAsync(PostProcessAssemblyRequest request, Action`2 progressSink)
PostProcessing failed: System.InvalidOperationException: Type initialization failure: AIDestinationSetter inherits from more than one of IBufferElementData,
							IComponentData, ISharedComponentData, and UnityEngine.Object, which is not allowed.
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.<IsInstantiableComponentType>g__HasAnyOfTheInterfaces|15_0(TypeDefinition def)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.<IsInstantiableComponentType>g__HasAnyOfTheInterfacesRecursive|15_1(TypeDefinition def)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.IsInstantiableComponentType(TypeReference type)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.AddTypeToListIfSupported(HashSet`1 typeSet, TypeReference type)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.GatherTypeInformation()
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.PostProcessImpl(TypeDefinition[] componentSystemTypes)
   at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess(AssemblyDefinition assemblyDefinition, TypeDefinition[] componentSystemTypes, Boolean& madeAChange)
   at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process(ICompiledAssembly compiledAssembly)
   at Unity.ILPP.Runner.PostProcessingPipeline.PostProcessAssemblyAsync(PostProcessAssemblyRequest request, Action`2 progressSink)
   at Unity.ILPP.Runner.PostProcessingService.PostProcessAssembly(PostProcessAssemblyRequest request, IServerStreamWriter`1 responseStream, ServerCallContext context)
Unhandled Exception: System.InvalidOperationException: Post processing failed
   at Unity.ILPP.Trigger.TriggerApp.<ProcessArgumentsAsync>d__1.MoveNext() + 0xf74
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at Unity.ILPP.Trigger.TriggerApp.<ProcessArgumentsAsync>d__1.MoveNext() + 0x1149
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at Unity.ILPP.Trigger.TriggerApp.<RunAsync>d__0.MoveNext() + 0xc7
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at Program.<<Main>$>d__0.MoveNext() + 0x1a3
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at Program.<Main>(String[]) + 0x20
   at Unity.ILPP.Trigger!<BaseAddress>+0x48d4fb

I’m currently facing the same issue after upgrading Burst/ECS to the latest versions.
Occurs in Unity 6000.0.32f1 / 6000.0.34f1
I’m on MacOS.

Can you both let us know what version of Entities you are using in Unity?

@random are you updating or installing fresh? and @Kpx what version of Astar are you upgrading from?

com.unity.burst : 1.8.19
com.unity.entities : 1.3.9 (rolling back to 1.3.8 solves the issue)
com.arongranberg.astar : 5.3.1

I also have :


It looks very similar to this

Having the same issue with AStar v5.3.1. The issue started occurring after updating Unity Entity from 1.3.5 to 1.3.9.

Processing assembly Library/Bee/artifacts/1900b0aE.dag/AstarPathfindingProject.dll, with 157 defines and 255 references
processors: Unity.Entities.CodeGen.EntitiesILPostProcessors, Unity.Jobs.CodeGen.JobsILPostProcessor, zzzUnity.Burst.CodeGen.BurstILPostProcessor
running Unity.Entities.CodeGen.EntitiesILPostProcessors
Unity.Entities.CodeGen.EntitiesILPostProcessors: ILPostProcessor has thrown an exception: System.InvalidOperationException: Type initialization failure: AIDestinationSetter inherits from more than one of IBufferElementData,
							IComponentData, ISharedComponentData, and UnityEngine.Object, which is not allowed.
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.<IsInstantiableComponentType>g__HasAnyOfTheInterfaces|15_0(TypeDefinition def)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.<IsInstantiableComponentType>g__HasAnyOfTheInterfacesRecursive|15_1(TypeDefinition def)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.IsInstantiableComponentType(TypeReference type)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.AddTypeToListIfSupported(HashSet`1 typeSet, TypeReference type)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.GatherTypeInformation()
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.PostProcessImpl(TypeDefinition[] componentSystemTypes)
   at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess(AssemblyDefinition assemblyDefinition, TypeDefinition[] componentSystemTypes, Boolean& madeAChange)
   at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process(ICompiledAssembly compiledAssembly)
   at Unity.ILPP.Runner.PostProcessingPipeline.PostProcessAssemblyAsync(PostProcessAssemblyRequest request, Action`2 progressSink)
PostProcessing failed: System.InvalidOperationException: Type initialization failure: AIDestinationSetter inherits from more than one of IBufferElementData,
							IComponentData, ISharedComponentData, and UnityEngine.Object, which is not allowed.
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.<IsInstantiableComponentType>g__HasAnyOfTheInterfaces|15_0(TypeDefinition def)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.<IsInstantiableComponentType>g__HasAnyOfTheInterfacesRecursive|15_1(TypeDefinition def)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.IsInstantiableComponentType(TypeReference type)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.AddTypeToListIfSupported(HashSet`1 typeSet, TypeReference type)
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.GatherTypeInformation()
   at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.PostProcessImpl(TypeDefinition[] componentSystemTypes)
   at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess(AssemblyDefinition assemblyDefinition, TypeDefinition[] componentSystemTypes, Boolean& madeAChange)
   at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process(ICompiledAssembly compiledAssembly)
   at Unity.ILPP.Runner.PostProcessingPipeline.PostProcessAssemblyAsync(PostProcessAssemblyRequest request, Action`2 progressSink)
   at Unity.ILPP.Runner.PostProcessingService.PostProcessAssembly(PostProcessAssemblyRequest request, IServerStreamWriter`1 responseStream, ServerCallContext context)
Unhandled Exception: System.InvalidOperationException: Post processing failed
   at Unity.ILPP.Trigger.TriggerApp.<ProcessArgumentsAsync>d__1.MoveNext() + 0xf74
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at Unity.ILPP.Trigger.TriggerApp.<ProcessArgumentsAsync>d__1.MoveNext() + 0x1149
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at Unity.ILPP.Trigger.TriggerApp.<RunAsync>d__0.MoveNext() + 0xc7
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at Program.<<Main>$>d__0.MoveNext() + 0x1a3
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at Program.<Main>(String[]) + 0x20
   at Unity.ILPP.Trigger!<BaseAddress>+0x48d4fb

The log says AIDestinationSetter inheriting more than one interfaces is causing the problem. Temporarily fixed the issue by rolling back entities to 1.3.8

Hi

A fix will be released soon :slight_smile:

1 Like