We've been struggling with an out of memory exception on iOS for the last few days and finally narrowed down the bug to this Playfab API call.
private IEnumerator<float> GetServerTime_Coroutine() { while (true) { GetTimeRequest getTimeRequest = new GetTimeRequest(); PlayFabClientAPI.GetTime(getTimeRequest, (result) => { CurrentEasternServerTime = result.Time.AddHours(-4); }, (error) => { Debug.LogErrorFormat("Failed getting server time. Error: {0}", error.GenerateErrorReport()); } ); yield return Timing.WaitForSeconds(60); } }
The function has been working fine for many months now but for some reason, the app goes from using around 400Mb upwards until it crashes. If we comment out the GetTime() call, the memory leak does not happen anymore. We tried this on SDK versions 2.107.210427 and 2.109.210521 as well.
Is anyone else encountering this or has ideas how to fix it?
Thank you!