StackOverflowException on Build

Discussion and help for Easy Save 3
Post Reply
Animal
Posts: 5
Joined: Tue Jul 10, 2018 10:20 pm

StackOverflowException on Build

Post 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
User avatar
Joel
Moodkie Staff
Posts: 4824
Joined: Wed Nov 07, 2012 10:32 pm

Re: StackOverflowException on Build

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Animal
Posts: 5
Joined: Tue Jul 10, 2018 10:20 pm

Re: StackOverflowException on Build

Post by Animal »

That seems to work if i also remove the Reference Manager from my scenes. Is this going to be a problem?
User avatar
Joel
Moodkie Staff
Posts: 4824
Joined: Wed Nov 07, 2012 10:32 pm

Re: StackOverflowException on Build

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Animal
Posts: 5
Joined: Tue Jul 10, 2018 10:20 pm

Re: StackOverflowException on Build

Post by Animal »

I see, thanks for the help! Hopefully this gets resolved soon.
Post Reply