Page 1 of 1

StackOverflowException on Build

Posted: Tue Jul 10, 2018 10:23 pm
by Animal
Getting a stack overflow error on Build in Unity 2018.1

Code: Select all

StackOverflowException: The requested operation caused a stack overflow.
  at (wrapper managed-to-native) UnityEditor.EditorUtility:CollectDependencies (UnityEngine.Object[])
  at ES3ReferenceMgr.GenerateReferences () [0x0003a] in E:\UNITY5.0\01_Dev\beestingboys\Assets\Plugins\Easy Save 3\Scripts\ES3ReferenceMgr.cs:44 
  at ES3ReferenceMgr.OnBeforeSerialize () [0x0000d] in E:\UNITY5.0\01_Dev\beestingboys\Assets\Plugins\Easy Save 3\Scripts\ES3ReferenceMgr.cs:17
Saving works fine in Editor with no error. Build freezes with stack overflow. Any ideas?

*ignore the folder path naming "Unity5.0", we are indeed running 2018.1.7f1

Re: StackOverflowException on Build

Posted: Wed Jul 11, 2018 1:04 pm
by Joel
Hi there,

It looks like this is related to a bug at Unity's end which they are yet to fix, despite them saying it would be available in Unity 2018.

Going to Window > Easy Save 3 > Settings and unchecking Auto Update References should stop it from happening in the meantime.

All the best,
Joel

Re: StackOverflowException on Build

Posted: Wed Jul 11, 2018 8:18 pm
by Animal
That seems to work if i also remove the Reference Manager from my scenes. Is this going to be a problem?

Re: StackOverflowException on Build

Posted: Wed Jul 11, 2018 8:53 pm
by Joel
Hi there,

This will only cause issues if you're saving any variables by reference, or if you're saving prefab instances.

All the best,
Joel

Re: StackOverflowException on Build

Posted: Wed Jul 11, 2018 9:24 pm
by Animal
I see, thanks for the help! Hopefully this gets resolved soon.