Build error with Burst & Entity Subscene

Using 2019.3.0f3 I put together a VR demo scene and got it working. (No small task with the newest XR SDK and Oculus Quest, yay me!)

In order to see if I could be even MORE fancy I decided to install the burst, DOTS, & Entity packages

This is a lot of bleeding edge stuff … see attached manifest.json.

{
  "dependencies": {
    "com.havok.physics": "0.1.1-preview",
    "com.unity.burst": "1.1.2",
    "com.unity.collab-proxy": "1.2.16",
    "com.unity.entities": "0.4.0-preview.10",
    "com.unity.ide.rider": "1.1.4",
    "com.unity.ide.vscode": "1.1.3",
    "com.unity.platforms.android": "0.1.7-preview.6",
    "com.unity.test-framework": "1.1.3",
    "com.unity.textmeshpro": "2.0.1",
    "com.unity.timeline": "1.2.6",
    "com.unity.ugui": "1.0.0",
    "com.unity.xr.management": "3.0.5",
    "com.unity.xr.oculus": "1.1.4",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.androidjni": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
  }
}

With a previously working scene, I did two additional steps which was to convert the environment to a subscene (not a terrain, but instead just a demo-city from an asset store package) and ADD that subscene to the player build settings.

I’ve attached a copy and paste of the build errors, but the two main ones seem to be:

Loading Entity Scene failed because the entity header file could not be found: 8d06a284c9ca2dd45a617e353ba59ed3

and

Cannot find the field TypeInfos required for supporting TypeManager intrinsics in burst
at Unity.Entities.TypeManager.GetTypeInfo(int typeIndex)

It’s getting late so I’m calling it a night, but does anyone have experience with these two errors in this context? I’m sure it’s something simple-ish.

5308599–533553–burst_&_subscene_buildErrors.txt (7.26 KB)

Hello,
i’m not sure what is triggering the Entity scene error, but the burst issue is shown because you are using burst 1.1.2 version which does not supporting TypeManager. Could you please try to upgrade burst to 1.2.0-preview.11 and let us know if at least the burst issue gets fixed?

Thanks

1 Like

@fabrizio_unity that looks like it fixed all errors! Thanks I’m happily building again :slight_smile:

ooops spoke to soon. have new errors. will have to read and report back.

So with the BURST package upgraded to the newest preview build, I’ve got three (or four) new errors.

In order to try and isolate just the BURST portion I eliminated the CONVERT-TO-SUBSCENE and attempted to run in the editor.

1
Unexpected exception Burst.Options.OptionException: Unexpected arguments: --is-for-function-pointer --managed-function-pointer=0x000001A970908640
at Burst.Compiler.IL.Jit.JitCompilerService.Compile (Burst.Compiler.IL.Jit.JitCompilerService+CompileJob job) [0x0012a] in <3179d4839c86430ca331f2949f40ede5>:0
While compiling job: Unity.Entities.StructuralChange, (etc…)
2
InvalidOperationException: Burst failed to compile the function pointer Void AddComponentEntitiesBatchExecute(Unity.Entities.EntityComponentStore*, Unity.Collections.LowLevel.Unsafe.UnsafeList*, Int32)
3
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

as a test I tried making sure unsafe code was enabled in the player settings, but that doesn’t change anything

If I add back the CONVERT-TO-SUBSCENE I also get something from the Hybrid Renderer

Loading GameObjectEntity in Playmode but there is no active World
UnityEngine.Debug:LogError(Object)
Unity.Debug:LogError(Object) (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities/Stubs/Unity/Debug.cs:13)
Unity.Entities.DefaultWorldInitialization:smile:efaultLazyEditModeInitialize() (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.Hybrid/Injection/DefaultWorldInitialization.cs:228)
Unity.Scenes.SubScene:OnEnable() (at Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Scenes.Hybrid/SubScene.cs:136)

What’s really nice is that the APK will actually BUILD now … the drawback is of course that nothing actually works :slight_smile:

5310180–533778–burst_&_subscene_buildErrors_new.txt (3.17 KB)