As the title says, SfRotator control crashes with
Attached a sample solution that demonstrates the problem. You would see few Task.Delay in the code, that is to simulate the actual work done in original app.
Steps to reprodude:
- Just start the application in Android emulator.
- Click the "
" button on the bottom of the main page. You should see the exception.
System.DivideByZeroException: Attempted to divide by zero. occurred
0xFFFFFFFFFFFFFFFF in System.Diagnostics.Debugger.Mono_UnhandledException_internal
0x1 in System.Diagnostics.Debugger.Mono_UnhandledException
0x20 in object.29
0x2F in Com.Syncfusion.Rotator.SfRotator.GetViewFromItemsList
0x5E in Com.Syncfusion.Rotator.SfRotator.RefreshHolderView
0x73 in Com.Syncfusion.Rotator.SfRotator.b__219_0
0x6 in Java.Lang.Runnable.Run
0xA in Java.Lang.IRunnableInvoker.n_Run
0x11 in object.29
Syncfusion Version : 18.104.22.168
Android Version :Google Pixel 2 Template (Android 9, Api-28)
Note: You may not see the exception as I have handled it in
TestPageViewModel class. Either remove exception handling there or set your exception handling settings in visual studio to "Break when exception is thrown" to be able to visualize the problem.
Feel free to reach me for any questions.