Hi,
This might have been reported already, but the search doesn’t yield any result so here it is.
I get these errors when Burst Compilation is enabled.
C:\code\World2\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities\Types\TypeManager.cs(431,13): error: Cannot find the field `TypeInfos` required for supporting TypeManager intrinsics in burst
at Unity.Entities.TypeManager.GetTypeInfo(int typeIndex) (at C:\code\World2\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities\Types\TypeManager.cs:430)
at Unity.Entities.ChunkDataUtility.ReplicateComponents(Unity.Entities.Chunk* srcChunk, int srcIndex, Unity.Entities.Chunk* dstChunk, int dstBaseIndex, int count) (at C:\code\World2\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities\ChunkDataUtility.cs:268)
at Unity.Entities.EntityComponentStore.InstantiateEntitiesOne(Unity.Entities.EntityComponentStore* this, Unity.Entities.Entity srcEntity, Unity.Entities.Entity* outputEntities, int instanceCount, Unity.Entities.EntityComponentStore.InstantiateRemapChunk* remapChunks, int remapChunksCount) (at C:\code\World2\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities\EntityComponentStoreCreateDestroyEntities.cs:432)
at Unity.Entities.EntityComponentStore.InstantiateEntitiesGroup(Unity.Entities.EntityComponentStore* this, Unity.Entities.Entity* srcEntities, int srcEntityCount, Unity.Entities.Entity* outputRootEntities, int instanceCount) (at C:\code\World2\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities\EntityComponentStoreCreateDestroyEntities.cs:502)
at Unity.Entities.EntityComponentStore.InstantiateEntities(Unity.Entities.EntityComponentStore* this, Unity.Entities.Entity srcEntity, Unity.Entities.Entity* outputEntities, int instanceCount) (at C:\code\World2\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities\EntityComponentStoreCreateDestroyEntities.cs:203)
at Unity.Entities.StructuralChange.InstantiateEntitiesExecute(Unity.Entities.EntityComponentStore* entityComponentStore, Unity.Entities.Entity* srcEntity, Unity.Entities.Entity* outputEntities, int instanceCount) (at C:\code\World2\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities\EntityManagerChangeArchetype.cs:135)
While compiling job: System.Void Unity.Entities.StructuralChange::InstantiateEntitiesExecute(Unity.Entities.EntityComponentStore*,Unity.Entities.Entity*,Unity.Entities.Entity*,System.Int32)
InvalidOperationException: Burst failed to compile the given delegate: Void InstantiateEntitiesExecute(Unity.Entities.EntityComponentStore*, Unity.Entities.Entity*, Unity.Entities.Entity*, Int32)
attribute: Unity.Burst.BurstCompileAttribute
Unity.Burst.BurstCompiler.Compile[T] (T delegateObj) (at Library/PackageCache/com.unity.burst@1.1.2/Runtime/BurstCompiler.cs:120)
Unity.Burst.BurstCompiler.CompileFunctionPointer[T] (T delegateMethod) (at Library/PackageCache/com.unity.burst@1.1.2/Runtime/BurstCompiler.cs:78)
Unity.Entities.StructuralChange.Initialize () (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/EntityManagerChangeArchetype.cs:68)
Unity.Entities.EntityManager..ctor (Unity.Entities.World world) (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/EntityManager.cs:163)
Unity.Entities.World..ctor (System.String name) (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/World.cs:115)
Unity.Entities.DefaultWorldInitialization.Initialize (System.String defaultWorldName, System.Boolean editorWorld) (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.Hybrid/Injection/DefaultWorldInitialization.cs:127)
Unity.Entities.AutomaticWorldBootstrap.Initialize () (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.Hybrid/Injection/AutomaticWorldBootstrap.cs:15)
1 Like
Can’t edit post add this (forum says it is spam-like?!), but it’s 2019.3.0f3, Burst 1.1.2.
1 Like
It looks like you have burst pinned to an older version. Please remove it from the package manifest file or upgrade to the latest version of burst.
1 Like
Hello,
I have similar issue. I’ve changed the package manifest file to update to burst 1.2.0. I’m on 2019.3.0f3. However with 1.2.0 I receive these errors:
Unexpected exception Burst.Options.OptionException: Unexpected arguments: `--is-for-function-pointer --managed-function-pointer=0x000000018DF99890`
at Burst.Compiler.IL.Jit.JitCompilerService.Compile (Burst.Compiler.IL.Jit.JitCompilerService+CompileJob job) [0x0012a] in <3179d4839c86430ca331f2949f40ede5>:0
While compiling job: Unity.Entities.StructuralChange, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AddComponentEntitiesBatchExecute(Unity.Entities.EntityComponentStore*, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|Unity.Collections.LowLevel.Unsafe.UnsafeList*, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
InvalidOperationException: Burst failed to compile the function pointer `Void AddComponentEntitiesBatchExecute(Unity.Entities.EntityComponentStore*, Unity.Collections.LowLevel.Unsafe.UnsafeList*, Int32)`
Unity.Burst.BurstCompiler.Compile[T] (T delegateObj, System.Boolean isFunctionPointer) (at Library/PackageCache/com.unity.burst@1.2.0-preview.11/Runtime/BurstCompiler.cs:160)
Unity.Burst.BurstCompiler.CompileFunctionPointer[T] (T delegateMethod) (at Library/PackageCache/com.unity.burst@1.2.0-preview.11/Runtime/BurstCompiler.cs:78)
Unity.Entities.StructuralChange.Initialize () (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/EntityManagerChangeArchetype.cs:58)
Unity.Entities.EntityManager..ctor (Unity.Entities.World world) (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/EntityManager.cs:163)
Unity.Entities.World..ctor (System.String name) (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/World.cs:115)
Unity.Entities.DefaultWorldInitialization.Initialize (System.String defaultWorldName, System.Boolean editorWorld) (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.Hybrid/Injection/DefaultWorldInitialization.cs:127)
Unity.Entities.AutomaticWorldBootstrap.Initialize () (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.Hybrid/Injection/AutomaticWorldBootstrap.cs:15)
NullReferenceException: Object reference not set to an instance of an object
Unity.Entities.World.Dispose () (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/World.cs:146)
Unity.Entities.World.DisposeAllWorlds () (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/World.cs:164)
Unity.Entities.DefaultWorldInitialization.DomainUnloadOrPlayModeChangeShutdown () (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.Hybrid/Injection/DefaultWorldInitialization.cs:87)
Unity.Entities.DefaultWorldInitializationProxy.OnDisable () (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.Hybrid/Injection/DefaultWorldInitializationProxy.cs:28)
@Joachim_Ante_1
Pinned? I can assure you that I have not pinned it, at least not intentionally. Where and how do I pin it? And more importantly, unpin it? You mention a file, where do I find it an is there not a UI for it?
Also, version 0.4.0 is the most recent version that is listed in the package manager. Unless preview.32 - 0.0.12 is more recent than preview.10 - 0.4.0? If so, the package manager does a really bad job in sorting the versions. Edit: It’s not more recent based on the publish date.
Which one is the latest version? @Mr-Mechanical mentions 1.2.0, it’s not listed in my package manager.
Sorry spoke too soon, restarting unity fixes the problem. Go to manifest.json and just delete the line that has burst in it, then burst will be updated to the correct version.
Not sure what is going on… Unity crashed as it does quite often while debugging and now the package manager lists Burst at 1.1.2.
I have an error too, but it’s not the same that is posted here:
Something went wrong while Post Processing the assembly (Unity.Entities.dll) :
Failed to resolve System.Collections.Generic.Stack`1
at Unity.Entities.CodeGen.TypeReferenceExtensions.CheckedResolve (Mono.Cecil.TypeReference typeReference) [0x00000] in F:\Unity Projects\EOS\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\CecilExtensionMethods.cs:13
at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.<VerifyMethod>g__IsTypeRestrictedToBlobAssetStorage|3_0 (Mono.Cecil.TypeReference tr, Unity.Entities.CodeGen.BlobAssetSafetyVerifier+<>c__DisplayClass3_0& ) [0x000a1] in F:\Unity Projects\EOS\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\BlobAssetSafety\BlobAssetSafetyVerifier.cs:64
at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.VerifyMethod (Mono.Cecil.MethodDefinition method, System.Collections.Generic.HashSet`1[T] _nonRestrictedTypes) [0x0004d] in F:\Unity Projects\EOS\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\BlobAssetSafety\BlobAssetSafetyVerifier.cs:90
at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.AssertNoBlobAssetLeavesBlobAssetStorage () [0x0004d] in F:\Unity Projects\EOS\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\BlobAssetSafety\BlobAssetSafetyVerifier.cs:37
at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.PostProcessImpl () [0x00007] in F:\Unity Projects\EOS\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\BlobAssetSafety\BlobAssetSafetyVerifier.cs:20
at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess (Mono.Cecil.AssemblyDefinition assemblyDefinition, System.Boolean& madeAChange) [0x00007] in F:\Unity Projects\EOS\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\EntitiesILPostProcessor.cs:231
at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process (Unity.CompilationPipeline.Common.ILPostProcessing.ICompiledAssembly compiledAssembly) [0x00038] in F:\Unity Projects\EOS\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\EntitiesILPostProcessor.cs:44
at UnityEditor.Scripting.ScriptCompilation.ILPostProcessing.RunILPostProcessors (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly assembly, System.String outputTempPath) [0x0011b] in <50c2886429a849e8b640d0aca52729fc>:0
at UnityEditor.Scripting.ScriptCompilation.ILPostProcessing.PostProcess (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly assembly, System.Collections.Generic.List`1[T] messages, System.String outputTempPath) [0x00061] in <50c2886429a849e8b640d0aca52729fc>:0
That’s when updating from 0.3.0 - preview.4
Now that I’ve got the correct version of Burst the errors are gone.
Hm, I spoke to soon. Unity crashed again and now I’m back at 0.4.0, but the manifest.json still specifies 1.1.2. There is something obviously wrong with the package management :\
If your manifest explicitly specifies 1.1.2 then that is the version it will fetch.
So either you remove it from the manifest.json completetely (So that the correct version of burst will be pulled down as a dependency from entities) or you upgrade burst. Both will solve the problem.
1 Like