The requested operation caused a stack overflow.

Discussion and help for Easy Save 3
Post Reply
User avatar
frezno
Posts: 10
Joined: Mon Nov 13, 2017 8:53 pm

The requested operation caused a stack overflow.

Post by frezno »

I've been using Easy Save 3 now for about a month and it's been working flawless without any problems since I converted my project from ES2. I don't use Easy Save 3 in every scene but it's got a fair share of reading and writing data for saving game files. Today I have encountered this error that seems to be happening randomly when I load a scene. I'm not sure what is causing this but sometimes the stack overflow isn't caught and Unity will crash because of it. I don't know where to start off finding why this happens either so I'm hoping I can find some help here.

The full stack trace is posted below but the Unity Editor specifically says it's coming from Line 230 of ES3Reflection which is..

Code: Select all

var fieldInfos = GetSerializableFields(type, safe, memberNames);
Full stack trace

Code: Select all

StackOverflowException: The requested operation caused a stack overflow.
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Types.ES3CollectionType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3CollectionType.cs:19)
ES3Types.ES3ListType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Collection Types/ES3ListType.cs:10)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:62)
ES3Internal.ES3TypeMgr.GetOrCreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:23)
ES3Internal.ES3Reflection.TypeIsSerializable (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:178)
ES3Internal.ES3Reflection.GetSerializableFields (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:90)
ES3Internal.ES3Reflection.GetSerializableMembers (System.Type type, Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/ES3Reflection.cs:230)
ES3Types.ES3Type.GetMembers (Boolean safe, System.String[] memberNames) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:124)
ES3Types.ES3Type.GetMembers (Boolean safe) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3Type.cs:119)
ES3Types.ES3ReflectedScriptableObjectType..ctor (System.Type type) (at Assets/Plugins/Easy Save 3/Scripts/Types/Reflected Types/ES3ReflectedScriptableObjectType.cs:15)
ES3Internal.ES3TypeMgr.CreateES3Type (System.Type type, Boolean throwException) (at Assets/Plugins/Easy Save 3/Scripts/Types/ES3TypeMgr.cs:88)
ES3Internal.ES3TypeMgr.GetO<message truncated>

Any ideas? :)
cloudweight
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: The requested operation caused a stack overflow.

Post by Joel »

Hi there,

I don't seem to be able to replicate this, but I have a few ideas as to what the issue could be which I'll experiment with later today.

In the meantime if you do manage to find a way to replicate it reliably, please let me know.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
User avatar
frezno
Posts: 10
Joined: Mon Nov 13, 2017 8:53 pm

Re: The requested operation caused a stack overflow.

Post by frezno »

Hi Joel,

Thanks for the reply. I'll try and run some more tests to see if I can get a baseline for you and so you know where to look. Sorry for not providing much info for you but I'll try and explain the best I can what I am doing and where this occurs at.
  • I have a main menu scene that reads and writes from a settings file in the documents.
  • Every-time the menu scene is loaded, this file is loaded as well.
  • If I directly play this scene in the editor the error won't happen, but if I start another scene and then come back to this scene, the error will happen.
  • The file being written is a MonoBehavior and it's valid read/write settings.
Here's the code, I'm not sure if this helps at all but I'll try and get some more info on this. Thanks :)

Code: Select all

 public void Save()
    {
        ES3.Save<GraphicsManager>("graphicsManager",this, GameTools.Paths.GameDataPath() + "graphics.ini");
    }

    public void Load()
    {
        if (ES3.FileExists(GameTools.Paths.GameDataPath() + "graphics.ini"))
        {
            try
            {
                ES3.LoadInto<GraphicsManager>("graphicsManager",GameTools.Paths.GameDataPath() + "graphics.ini",this);
            }
            catch
            {
                Debug.LogWarning("Graphics failed to load, possible outdated version! Resetting file!");
				
				if(ResetGraphicsFile())
                ES3.LoadInto<GraphicsManager>("graphicsManager", GameTools.Paths.GameDataPath() + "graphics.ini", this);
			else{
				Debug.LogError("There was a fatal error!");
				
				//Log error for investigation immediately
				LogError(Error.InvestigateUrgent,MainComponents.Graphics,this);
				
				enabled=false;
				return;
				}
            }
        }
        else
            print("Graphics file doesn't exist, one will be created upon saving");

        SetQuality(foundMenu);
    }
cloudweight
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: The requested operation caused a stack overflow.

Post by Joel »

Thanks for the detailed information.

Would you possibly be able to post/PM me your GraphicsManager class (and any scripts it references) so I can try to work out what's going on at my end?

I believe this is caused by some sort of cyclic reference which our code isn't handling, but I'm struggling to find out the nature of it at the moment.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
User avatar
frezno
Posts: 10
Joined: Mon Nov 13, 2017 8:53 pm

Re: The requested operation caused a stack overflow.

Post by frezno »

So I haven't been able to reproduce the error anymore... A restart may have fixed it? Cache problem? I'm not sure.. all I know is the stack overflow doesn't happen anymore, but instead something else took it's place. Something about an indexer expecting ',' but I will assume that it is just an error on my part.

If I encounter this problem again I'll make sure to give you a holler.

Thanks. :)
cloudweight
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: The requested operation caused a stack overflow.

Post by Joel »

Hi there,

The expecting ',' message sounds like one of the previous errors you've encountered has corrupted your save data.

If you go to Window > Easy Save 3 > Tools > Open Persistent Data Path and delete the file from there, it should fix that error.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply