Jump to content

Game crashes after a few minutes - VineBranch


0oskar0
  • Branch: Live Branch Version: Windows Pending

Crash Code - 

Exception in: (VineBranch).VineBranch.root.mature. 
System.NullReferenceException: Object reference not set to an instance of an object
  at VineBranch+Instance.IsCellFoundation (System.Int32 cell) [0x00008] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at VineBranch.IsCellAvailable (UnityEngine.GameObject questionerObj, System.Int32 cell, System.Func`2[T,TResult] foundationCheckFunction) [0x00024] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at VineBranch+Instance.IsCellAvailable (System.Int32 cell) [0x00006] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at VineBranch+Instance.ChooseCompatibleShape (VineBranch+Shape[] possibleShapesOrderedByPriority) [0x00129] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at VineBranch+Instance.RecalculateMyShape () [0x00196] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at VineBranch.RecalculateShapeAndSpawnBranchesIfSpawnedByDiscovery (VineBranch+Instance smi) [0x00008] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00048] in <c249d7c3f60846a5bd531f8cae02e382>:0 

  at UnityEngine.Logger.Log (UnityEngine.LogType logType, System.Object message, UnityEngine.Object context) [0x00000] in <c39a522eee05469b8171a6cfeb646c59>:0 
  at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <c39a522eee05469b8171a6cfeb646c59>:0 
  at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PushState (StateMachine+BaseState state) [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteTransition (StateMachineInstanceType smi) [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].Evaluate (StateMachine+Instance smi) [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].TryEvaluateTransitions (StateMachine+BaseState state, System.Int32 goto_id) [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PushState (StateMachine+BaseState state) [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachine+Instance.StartSM () [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].StartSM () [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at VineBranch+Instance.StartSM () [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at StateMachineController.StartSMIS () [0x00000] in <c249d7c3f60846a5bd531f8cae02e382>:0 
  at KPrefabID.OnSpawn () [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at KMonoBehaviour.Spawn () [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at Util.SpawnComponent (UnityEngine.Component cmp) [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at MyAttributeManager`1[T].OnStart (System.Object obj, KMonoBehaviour cmp) [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at MyAttributes.OnStart (System.Object obj, KMonoBehaviour cmp) [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at MyAttributes.OnStart (KMonoBehaviour c) [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at KMonoBehaviour.Spawn () [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
  at KMonoBehaviour.Start () [0x00000] in <eeaae6bd36c2418387bac55a246d67a2>:0 
Build: U57-704096-SCRP


Steps to Reproduce

Play the game for a few minutesThe Space Paradise.sav.




User Feedback


1 hour ago, CorbsOfTwinkie said:

did this start just after u started growing Ovagros? 

Not just after, it's been a few cycles, could it be related to them?

Share this comment


Link to comment
Share on other sites

16 hours ago, 0oskar0 said:

Not just after, it's been a few cycles, could it be related to them?

im thinking it says branches so it is something with a plant that grows branches. i deleted every thing had a branch still crashed.. maybe go back in saves before u grow them and dont grow them and wait it out? does sound like a bug in growing branches but id like for you too be able to continue lol.  so inconclusion i would go back in saves when u didint build the Ovagro node  and rebuild it somewhere else and make sure u have the foundations correct before u continue. 

Edited by CorbsOfTwinkie
adding more/mispell

Share this comment


Link to comment
Share on other sites

5 hours ago, CorbsOfTwinkie said:

im thinking it says branches so it is something with a plant that grows branches. i deleted every thing had a branch still crashed.. maybe go back in saves before u grow them and dont grow them and wait it out? does sound like a bug in growing branches but id like for you too be able to continue lol.  so inconclusion i would go back in saves when u didint build the Ovagro node  and rebuild it somewhere else and make sure u have the foundations correct before u continue. 

I went back as far as I could, unfortunately didn't have a save file from before planting, but uprooted them and still got a crash a couple Cycles later. I'm guessing it could be an Ovagro or some other 'Vine' somewhere else?

Share this comment


Link to comment
Share on other sites

48 minutes ago, 0oskar0 said:

I went back as far as I could, unfortunately didn't have a save file from before planting, but uprooted them and still got a crash a couple Cycles later. I'm guessing it could be an Ovagro or some other 'Vine' somewhere else?

as i said i deleted everything in debug mode. researching it said it doesn't matter because it already happened even if deleting it wont fix it or something no idea. thats the onloy solution i have was going back in saves before growing. because it basically says a vine wanted to grow on a foundation but it just bugged out so it sounds like it would be a ovagro. sorry i cant help further. 

Share this comment


Link to comment
Share on other sites

Hi!

I recently made a mod to fix the influx of Exception error crashes people have been having and I've added your [Vinebranch] crash to it. If you wouldn't mind testing it out to make sure it works, I would appreciate it! 

I downloaded your save file and played around on it for about 30 minutes and never had any crashes or errors, so hopefully this will fix your problem. At least until the devs do a permanent fix, as I believe all these crashes are vanilla ONI.

Exception Crash Handler

Edited by trashcanhands

Share this comment


Link to comment
Share on other sites

4 hours ago, trashcanhands said:

Hi!

I recently made a mod to fix the influx of Exception error crashes people have been having and I've added your [Vinebranch] crash to it. If you wouldn't mind testing it out to make sure it works, I would appreciate it! 

I downloaded your save file and played around on it for about 30 minutes and never had any crashes or errors, so hopefully this will fix your problem. At least until the devs do a permanent fix, as I believe all these crashes are vanilla ONI.

Exception Crash Handler

do you know wxactly what is causing the crash for this save? i wanna know if i was far off on my findings

Share this comment


Link to comment
Share on other sites

On 1/3/2026 at 10:11 PM, CorbsOfTwinkie said:

do you know wxactly what is causing the crash for this save? i wanna know if i was far off on my findings

The vine branch is trying to check if it can grow at a particular location, and it calls IsCellFoundation() to see if the cell is a valid foundation tile. But somewhere in that check, an object is null (probably the GameObject or the foundation check function itself). Could be because the vine GameObject gets destroyed/deleted before the check completes, the foundation check function callback is null, or some world/grid data isn't initialized properly for that cell. Truthfully, the ovagro tree vines just have poor null-checking when they try to grow.

  • Like 1

Share this comment


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

×
  • Create New...