StackOverflowException on Build

Discussion and help for Easy Save 3

StackOverflowException on Build

Postby Animal » Tue Jul 10, 2018 10:23 pm

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
Animal
 
Posts: 5
Joined: Tue Jul 10, 2018 10:20 pm

Re: StackOverflowException on Build

Postby Joel » Wed Jul 11, 2018 1:04 pm

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 Tebbett @ Moodkie Interactive
Twitter - Unity - LinkedIn
User avatar
Joel
Moodkie Staff
 
Posts: 2424
Joined: Wed Nov 07, 2012 10:32 pm

Re: StackOverflowException on Build

Postby Animal » Wed Jul 11, 2018 8:18 pm

That seems to work if i also remove the Reference Manager from my scenes. Is this going to be a problem?
Animal
 
Posts: 5
Joined: Tue Jul 10, 2018 10:20 pm

Re: StackOverflowException on Build

Postby Joel » Wed Jul 11, 2018 8:53 pm

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 Tebbett @ Moodkie Interactive
Twitter - Unity - LinkedIn
User avatar
Joel
Moodkie Staff
 
Posts: 2424
Joined: Wed Nov 07, 2012 10:32 pm

Re: StackOverflowException on Build

Postby Animal » Wed Jul 11, 2018 9:24 pm

I see, thanks for the help! Hopefully this gets resolved soon.
Animal
 
Posts: 5
Joined: Tue Jul 10, 2018 10:20 pm


Return to General Discussion

Who is online

Users browsing this forum: FredTuna and 4 guests

cron