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
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