Jump to content

NullReferenceException on generated Terrain

Go to solution Solved by Thomas123,

Recommended Posts

I keep getting this error. Either generating multiple tile map with stamps or with the generator. When using only one tile, I do not get the error. The Runtime seems to work partially. Even it's rendering only one tile, as it seems.


What I did

- Deleted all Gaia Objects in my Scene

- Deleted UserData/Sessions

- Opened Gaia Manager -> Create World (World Designer, 6x6 tiles, 512 sqm)

- Set up a world

- Generate the world

- Open Gaia Manager -> Add Runetime (starts to spawn errors)


Could you tell me what I am doing wrong and how to fix, please?


NullReferenceException: Object reference not set to an instance of an object
Gaia.TerrainScene.LoadScene (UnityEngine.SceneManagement.Scene scene, System.Boolean& loadRequested, Gaia.LoadState& loadState, System.Boolean isImpostor) (at Assets/Procedural Worlds/Gaia/Scripts/MultiTerrainSystem/TerrainScene.cs:441)
Gaia.TerrainScene.UpdateLoadState (System.Collections.Generic.List`1[T] referenceList, Gaia.LoadState& loadState, System.Boolean& loadRequested, System.Boolean& unLoadRequested, System.Boolean isImpostor) (at Assets/Procedural Worlds/Gaia/Scripts/MultiTerrainSystem/TerrainScene.cs:303)
Gaia.TerrainScene.AddRegularReference (UnityEngine.GameObject gameObject) (at Assets/Procedural Worlds/Gaia/Scripts/MultiTerrainSystem/TerrainScene.cs:144)
Gaia.TerrainLoaderManager.UpdateTerrainLoadState (Gaia.BoundsDouble loadingBoundsRegular, Gaia.BoundsDouble loadingBoundsImpostor, UnityEngine.GameObject requestingObject, System.Single minDistance, System.Single maxDistance, System.Single minThresholdMS, System.Single maxThresholdMS) (at Assets/Procedural Worlds/Gaia/Scripts/MultiTerrainSystem/TerrainLoaderManager.cs:1043)
Gaia.TerrainLoader.UpdateTerrains () (at Assets/Procedural Worlds/Gaia/Gaia Pro/Scripts/MultiTerrainSystem/TerrainLoader.cs:190)
Gaia.TerrainLoader.Update () (at Assets/Procedural Worlds/Gaia/Gaia Pro/Scripts/MultiTerrainSystem/TerrainLoader.cs:103)


Bildschirm­foto 2022-10-31 um 15.50.15.png

Link to comment
Share on other sites

  • Solution

Well. Thanks Murphy. 


I just figured it out after I posted this Topic. Sorry. Posting my solution, in case someone else runs into the same problem.


My Memory Settings where quite too small (4 GB).  I set it to 8 GM now and the error vanished.

Bildschirm­foto 2022-10-31 um 15.57.53.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

  • Create New...