Error when saving scene in Unity

Discussion and help for Easy Save 3
Post Reply
Fabian
Posts: 12
Joined: Mon Dec 28, 2020 2:46 pm

Error when saving scene in Unity

Post by Fabian »

Hello,

I am receiving this error message when I am trying to save my current scene in Unity. It only occurs when I import Easy Save 3. If I delete it again, the error also disappears. What can I do to solve this? It seems that ES3 causes like a conflict with the editor windows in Unity!?

Thanks for your help!

Fabian
Attachments
Screenshot (2).png
Screenshot (2).png (145.33 KiB) Viewed 218 times

User avatar
Joel
Moodkie Staff
Posts: 3676
Joined: Wed Nov 07, 2012 10:32 pm

Re: Error when saving scene in Unity

Post by Joel »

Hi there,

Just to check, are you using the latest version of Easy Save?

If so, please could you replicate this in a new, empty project and private message it to me with instructions?

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

Fabian
Posts: 12
Joined: Mon Dec 28, 2020 2:46 pm

Re: Error when saving scene in Unity

Post by Fabian »

Okay, I will ry your suggestion! Thanks for the fast response!

Fabian
Posts: 12
Joined: Mon Dec 28, 2020 2:46 pm

Re: Error when saving scene in Unity

Post by Fabian »

Updating ES3 solved the problem! Thanks for the help!

MallNinjaMax
Posts: 1
Joined: Wed Jul 28, 2021 9:39 pm

Re: Error when saving scene in Unity

Post by MallNinjaMax »

I'm getting this in Unity 2019.4.26f1. Easy Save version 3.3.2f6 according to the changelog imported into the project. Recreation is simple: Create a new project in 2019.4.26f1, import Easy Save from the package manager, and hit Ctrl+S to save.

Code: Select all

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
ES3Postprocessor.UpdateAssembliesContainingES3Types () (at Assets/Plugins/Easy Save 3/Editor/ES3Postprocessor.cs:117)
ES3Postprocessor.RefreshReferences (System.Boolean isEnteringPlayMode) (at Assets/Plugins/Easy Save 3/Editor/ES3Postprocessor.cs:59)
ES3Postprocessor.OnWillSaveAssets (System.String[] paths) (at Assets/Plugins/Easy Save 3/Editor/ES3Postprocessor.cs:84)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
UnityEditor.AssetModificationProcessorInternal.OnWillSaveAssets (System.String[] assets, System.String[]& assetsThatShouldBeSaved, System.String[]& assetsThatShouldBeReverted, System.Boolean explicitlySaveAsset) (at <e6522990dfdf40458abbd5eeeb595b91>:0)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()

User avatar
Joel
Moodkie Staff
Posts: 3676
Joined: Wed Nov 07, 2012 10:32 pm

Re: Error when saving scene in Unity

Post by Joel »

Hi there,

We've managed to replicate this and we have a fix for this in the upcoming update. In the meantime if you PM me your invoice number I'll send it over.

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

Post Reply