Entities 0.17 windows build error: "The scene catalog has not been loaded yet"

Yeah that’s a new bug with 0.17.0. My fix is a workaround to make that run without using the DOTS build pipeline.

Thanks so much, this saved me.

just a note, I was experiencing this problem only on IOS builds, so I added an #if UNITY_IOS surrounding the entire static class.

Thank you, i was struggling with this for two days

I’ve recently discovered DOTS recently and I’d love to use it for my project.

I’m building with the new configuration system and I’m having the same exception on Android builds:

2021-06-01 03:12:48.710 22055-22116/com.HelloEntities2020.HelloEntities2020 E/Unity: AssertionException: The scene catalog has not been loaded yet
Assertion failure. Value was False
Expected: True
at UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) [0x0003c] in /Users/bokken/buildslave/unity/build/Runtime/Export/Assertions/Assert/AssertBase.cs:29
at UnityEngine.Assertions.Assert.IsTrue (System.Boolean condition, System.String message) [0x00009] in /Users/bokken/buildslave/unity/build/Runtime/Export/Assertions/Assert/AssertBool.cs:20
at Unity.Assertions.Assert.IsTrue (System.Boolean condition, System.String message) [0x00008] in …/games/SimpleEntities2020/Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/Stubs/Unity.Assertions/Assert.cs:24
at Unity.Scenes.SceneSystem.GetSceneGUID (System.String scenePath) [0x00001] in …/games/SimpleEntities2020/Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Scenes/SceneSystem.cs:97
at Unity.Scenes.GameObjectSceneUtility.AddGameObjectScene

I’ve run the code on 60+ devices on Firebase, I get the exception everywhere. I’ve also seen crashes in some devices, that did go away after using the trick mentioned here - even though I’m building with the new system. I’m also on the latest com.unity.rendering.hybrid as well as com.unity.platforms.android.

How benign this exception is? I’d hate to have random exceptions in production masking real problems but if this can cause crashes unfortunately I’d have to abandon my DOTS ambitions.

I’m in the process of fixing this on our project. I still don’t get it. First right of the bat is installing the package com.unity.platforms.windows. I can’t find it in Package Manager. I can only only find com.unity.platforms. Is this it?

Next step is to create the Build Configuration. So I clicked Assets > Create > Build but I don’t know what to do with this asset.
7314667--887023--upload_2021-7-10_15-53-2.png

Tried clicking Build, but shows up this error:
No valid build pipeline found for BuildConfiguration. At least one component that derives from IBuildPipelineComponent must be present.

So I made a test class BuildPipeline but couldn’t find the interface IBuildPipelineComponent. Maybe I installed the wrong platforms? How did you guys do it? Please share step by step.

Edit: Tried clicking Add Component and I saw different components for building. I thought I needed to code my own. But anyways, still confusing. I don’t know which components to add. Tried adding Classic Build Profile but again requires the package com.unity.platforms.windows but I can’t find it in Package Manager.

com.unity.platforms.windows works fine for me in 2020.3. What version of unity are you using?

com.unity.platforms is just the base package, you need the platform specific ones to build for them which are

com.unity.platforms.android@0.10.0-preview.10
com.unity.platforms.desktop@0.10.0-preview.10
com.unity.platforms.ios@0.10.0-preview.10
com.unity.platforms.linux@0.10.0-preview.10
com.unity.platforms.macos@0.10.0-preview.10
com.unity.platforms.web@0.10.0-preview.10
com.unity.platforms.windows@0.10.0-preview.10

Then you just go
Create → Build → Windows Classic Build Configuration

Then will look like this
7314724--887041--upload_2021-7-10_18-44-37.png

Or just look at the samples? https://github.com/Unity-Technologies/EntityComponentSystemSamples/tree/master/ECSSamples/Assets/BuildConfigurations

#UNITY_DISABLE_AUTOMATIC_SYSTEM_BOOTSTRAP_RUNTIME_WORLD Disable automatic create World。

#UNITY_DISABLE_AUTOMATIC_SYSTEM_BOOTSTRAP_EDITOR_WORLD Disable automatic editor create World。

#UNITY_DISABLE_AUTOMATIC_SYSTEM_BOOTSTRAP It is forbidden to automatically create the above two types World。

ecs will automatically create the world
you need add UNITY_DISABLE_AUTOMATIC_SYSTEM_BOOTSTRAP
Macro definition to your project

7365422--897518--upload_2021-7-27_20-42-41.png

Just got this error on a fresh DOTS 0.51 project, trying to build with the regular old-fashioned build window instead of a Build Config. It was resolved by using Build Configs to build.

But hey, Build Configs are meant to be killed by the time DOTS 1.0 comes around - so I’m posting this here as a “if you also figured learning Build Configs was a waste of time, you still need to use them for now” note.

The issue still persist witn Entities 0.51 in 2020.3.36f1, seems like UNITY_DISABLE_AUTOMATIC_SYSTEM_BOOTSTRAP is not defined and somehow Entities requires to be defined. This is a regression from Entities 0.16 where it was first reported.
The work around is to define the scripting symbol in the Player Settings manually: UNITY_DISABLE_AUTOMATIC_SYSTEM_BOOTSTRAP.