다음과 같은 오류가 생깁니다. 정확히 어디에서 발생하는 오류인지 몰라서 해결 방법을 못 찾겠습니다.
Backend.GameData.UpdateV2(Statics.USER_DATA_TABLE, gameDataRowInDate, Backend.UserInDate, param,
callback =>
{
if (callback.IsSuccess())
{
Debug.Log($“Data Successfully Updated. : {callback}”);
}
else
{
Debug.LogError($“Data Update Failed. : {callback}”);
}
});
}
이 코드를 시도할 때 생기는 것으로 추정되며, 처음 로그인하고 딱 1번 이런 현상이 발생합니다. (첫 로그인 때마다 발생하는 것도 아닙니다. 간헐적)
InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.Collections.SortedList+SortedListEnumerator.MoveNext () (at :0)
BackEnd.Param.Clone () (at :0)
BackEnd.Game.GameInfo.BGameData.niYw5IxTfa (System.String , System.String , System.String , BackEnd.Param ) (at :0)
BackEnd.Game.GameInfo.BGameData+<>c__DisplayClass25_0.m5GwsDUI96 () (at :0)
System.Threading.Tasks.Task`1[TResult].InnerInvoke () (at :0)
System.Threading.Tasks.Task.Execute () (at :0)
— End of stack trace from previous location where exception was thrown —
BackEnd.Game.GameInfo.BGameData.UpdateV2 (System.String tableName, System.String inDate, System.String owner_inDate, BackEnd.Param param, BackEnd.Backend+BackendCallback callback) (at :0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at :0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)