We are seeing a sudden uptick in a crash coming from sfCalendar when navigating back 1 month (user reports going aug -> jul) and selecting a date. Android (8/9?) only.
Here's an example copy and pasted from App Center:
Android Build: HUAWEIPOT-LX1
CrashReporter Key: b4cc5a85-bcc6-43fa-9bbd-cb31f09e063b
Xamarin Exception Stack:
System.NullReferenceException: Object reference not set to an instance of an object
at Com.Syncfusion.Calendar.SwipePanel.Run () [0x00081] in <f8a7a9a2e43e4c41a1b2d9a2ed69cfba>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in <0a951c0b4607490bb24b709cc58587b4>:0
at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in <518144de650e47a38ddec3f79172b312>:0
at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <518144de650e47a38ddec3f79172b312>:0
at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <518144de650e47a38ddec3f79172b312>:0
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.49(intptr,intptr)
Our customers tells us, that if you tap the month name in the top left corner, and select the new month that way instead of swiping to it, then there is no crash.
SPSubburaj Pandian Veluchamy Syncfusion Team August 9, 2019 08:10 AM
Thank you for contacting Syncfusion support.
Based on the provided information we have checked the mentioned exception “Swipe the calendar and select the date with MVVMCross” and we can able to replicate the mentioned exception from our end. We have logged the bug report for the same. We will fix and include the issue fix in our upcoming Volume 2 SP1 release, which is expected to roll out by mid of August 2019. We appreciate your patience until then.
You can track the status of the report by the following feedback link,
Note: The provided feedback link is private, and you need to login to view this feedback.
Regards, Subburaj Pandian V
PRPadmini Ramamurthy Syncfusion Team August 9, 2019 08:27 AM
From: Tim Ahrentlov Sent: Friday, August 9, 2019 9:21 AM To: Syncfusion Support <firstname.lastname@example.org> Subject: Re: Syncfusion support community forum 146559, SwipePanel.Run () - System.NullReferenceException: Object reference not set to an instance of an object, has been updated.
PRPadmini Ramamurthy Syncfusion Team August 9, 2019 08:28 AM
You are welcome and we will let you know once Volume 2 SP 1 is rolled out.
IRIndumathi Ravichandran Syncfusion Team August 23, 2019 01:25 AM
We are glad to announce that our Essential Studio 2019 Volume 2 SP1 Release version 188.8.131.52 is rolled out with the mentioned issue fix “Swipe the calendar and select the date with MVVMCross” and is available for download under the following link.
I will test rolling back the new r8/d8 android feature in Xamarin.Android. I suspect that the SyncFusion nuggets are not ready for this.
FRFrozengnu August 29, 2019 03:29 AM
Syncfusion needs to support r8.
Rolling back r8 (keeping d8) removed the ava.Lang.ClassNotFoundException: Didn't find class "md5a5ef2baa6ee16f32e6a8325e10f58559.SwipePanel" on path: DexPathList[[zip file "/data/app/com.timegnu-fajxVcT5d8fn_ioRcGaJ3g==/base.apk"],nativeLibraryDirectories=[/data/app/com.timegnu-fajxVcT5d8fn_ioRcGaJ3g==/lib/arm64, /data/app/com.timegnu-fajxVcT5d8fn_ioRcGaJ3g==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /product/lib64]]
SPSubburaj Pandian Veluchamy Syncfusion Team August 29, 2019 07:58 AM
Thank you for the update.
Based on the provided information, we have checked mentioned issue “Calendar crashes when selecting the date when applying the d8 DexTool” in Xamarin Android and we are unable to replicate the crash from our side. We have checked the same by adding d8/r8 DexTool in the Android project with the simple MVVMCross sample and calendar works as expected without any issue.
We have attached the sample for your reference, please find the sample from following link.
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us with more details, it will helpful for us to analyze and provide you solution at the earliest.
Regards, Subburaj Pandian V
FRFrozengnu August 29, 2019 08:37 AM
Sure. d8 works for me to.
I wrote it was r8 that crashed a lot of Huawei Mate 10 devices with Android 8.
SPSubburaj Pandian Veluchamy Syncfusion Team August 30, 2019 07:22 AM
Thank you for the update.
We have checked in r8 as well in both Xamarin.Android and with provided Xamarin.Forms sample. We have tested <AndroidLinkTool>r8</AndroidLinkTool> tool in simple Android and MVVMCross sample and it works fine as expected from our end.
We have tested Xamarin.Android sample with our available Huawei LLD-AL20 device with Target Version as 8.0 and MVVMCross sample with 9.0 version and unable to replicate the mentioned crash from our side.
We have attached the sample (Xamarin.Android) for your reference, please find the sample from following link. Use Xamarin.Forms sample from the last update.
Please check the provided sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us with more details whether issue occurs only in Huawei Mate 10 device or other devices well. It will helpful for us to analyze on it and provide you the solution.