-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
1 - XS (<= 1 day)
-
2725
What happened?
With use Start() Stop() i have a constant CPU consume of 13% , when comment Start/Stop it's drop to 0%.
Repro steps
1 - Run app
2 - Instance.Start()
3 - Instance Stop()
Version
10.6.0
What SDK flavour are you using?
MongoDB Realm (i.e. Sync, auth, functions)
What type of application is this?
Xamarin
Client OS and version
Microsoft Windows 10 Pro Version 10.0.19043 Build 19043
Code snippets
public async Task WaitSync() { var watch = System.Diagnostics.Stopwatch.StartNew();
Session session = App.AppEnvironmentService.SyncDB.RealmInstance.GetSession(); if (session != null && Connectivity.NetworkAccess == NetworkAccess.Internet) { session.Start(); try { await Task.WhenAll(session.WaitForDownloadAsync(), session.WaitForUploadAsync()); session.Stop(); } catch (Exception ex) { var t = ex; } App.AppEnvironmentService.SyncDB.GetCurrentUserExtension(); } watch.Stop(); var elapsedMs = watch.ElapsedMilliseconds; }
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response