After saving on iOS, 99% of the time - for this project in particular - the app will crash and never work again. Here’s the error:
Preview detected an unhandled exception: Uno.AggregateException: One or more errors occurred.
at Fuse.UpdateManager.Update(Fuse.Stage)
at Fuse.UpdateManager.Update()
at Fuse.AppBase.OnUpdate()
at Fuse.App.OnUpdate()
at Outracks.Simulator.Application.OnUpdate()
at Fuse.App.OnTick(object,Uno.Platform.TimerEventArgs)
at Uno.Platform2.Display.OnTick(Uno.Platform.TimerEventArgs)
ERROR: Not handled: OnNewAll
Uno.Exception occured.
at Fuse.Reactive.DataBinding1.Fuse.Reactive.IObserver.OnNewAll(Fuse.Scripting.Array)
at Uno.Threading.IDispatcherExtensions.Arg1Invoke1.Run()
at Fuse.Reactive.Dispatcher.Run()
at Fuse.UpdateListener.Invoke()
at Fuse.UpdateManager.Update(Fuse.Stage)
at Fuse.UpdateManager.Update()
at Fuse.AppBase.OnUpdate()
at Fuse.App.OnUpdate()
at Outracks.Simulator.Application.OnUpdate()
at Fuse.App.OnTick(object,Uno.Platform.TimerEventArgs)
at Uno.Platform2.Display.OnTick(Uno.Platform.TimerEventArgs)
I get OnNewAll
in local preview sometimes too, but it’s very rare. On android this has never happened so far.
Project sent to support@fusetools.com
In order to reproduce the error, data must be saved on iOS. To do this in the app:
-
Tap the dumbbell icon on the bottom tab bar
-
Tap the plus icon on the top right
-
Add 2+ exercises
-
Tap “Finish” on the top right
The error mentioned should pop up. There is a small chance this error won’t happen, and the saving will work, in which case please repeat the steps and the error will certainly happen.
Some information that might be useful:
- Line 40 is the load function. Data isn’t actually loaded but the JSON string is parsed.
- Line 106 is the save function, this is the only place data is saved.
- Lines 23 - 28 are the only lines involved in the actual loading of the saved (or not yet created) data.