We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Calendar crashes on swipe on Xamarin Forms with MvvmCross

Hello,

We are using the Calendar on a Xamarin Forms project with MvvmCross framework.
There is a crash happening only on the Android build, if you swipe to the next or previous month the app crashes. On iOS seems to work fine.
Managed to reproduce the Calendar crash on a new clean Xamarin Forms project with MvvmCross.

Is this a known issue? And if yes when is it expected to be fixed? We are almost at the release date and would buy the full license unless this problem is not fixed.

Thanks in advance for your help.

This is the stack trace:

02-15 13:39:55.981 I/lerikTest.Droid( 7845): type=1400 audit(0.0:27683): avc: denied { sendto } for path="/dev/socket/logdw" scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=unix_dgram_socket permissive=1
02-15 13:39:55.985 D/Mono    ( 7845): DllImport attempting to load: '/system/lib/liblog.so'.
02-15 13:39:55.986 D/Mono    ( 7845): DllImport loaded library '/system/lib/liblog.so'.
02-15 13:39:55.986 D/Mono    ( 7845): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
02-15 13:39:55.986 D/Mono    ( 7845): Searching for '__android_log_print'.
02-15 13:39:55.986 D/Mono    ( 7845): Probing '__android_log_print'.
02-15 13:39:55.986 D/Mono    ( 7845): Found as '__android_log_print'.
02-15 13:39:55.989 I/MonoDroid( 7845): UNHANDLED EXCEPTION:
02-15 13:39:56.007 I/MonoDroid( 7845): System.NullReferenceException: Object reference not set to an instance of an object.
02-15 13:39:56.007 I/MonoDroid( 7845):   at Com.Syncfusion.Calendar.SwipePanel.UpdateNewViewCell () [0x00006] in <a942f0d7e86348afae9b75eeced5c81a>:0 
02-15 13:39:56.007 I/MonoDroid( 7845):   at Com.Syncfusion.Calendar.SwipePanel+<Run>d__90.MoveNext () [0x00091] in <a942f0d7e86348afae9b75eeced5c81a>:0 
02-15 13:39:56.007 I/MonoDroid( 7845): --- End of stack trace from previous location where exception was thrown ---
02-15 13:39:56.007 I/MonoDroid( 7845):   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in <d4a23bbd2f544c30a48c44dd622ce09f>:0 
02-15 13:39:56.007 I/MonoDroid( 7845):   at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in <6f8818d6ffa14f4bad6fb5f5d0f0e665>:0 
02-15 13:39:56.007 I/MonoDroid( 7845):   at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <6f8818d6ffa14f4bad6fb5f5d0f0e665>:0 
02-15 13:39:56.007 I/MonoDroid( 7845):   at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <6f8818d6ffa14f4bad6fb5f5d0f0e665>:0 
02-15 13:39:56.007 I/MonoDroid( 7845):   at (wrapper dynamic-method) System.Object.27(intptr,intptr)
02-15 13:39:56.013 W/zygote  ( 7845): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
02-15 13:39:56.014 D/Mono    ( 7845): DllImport searching in: '__Internal' ('(null)').
02-15 13:39:56.015 D/Mono    ( 7845): Searching for 'java_interop_jnienv_throw'.
02-15 13:39:56.015 D/Mono    ( 7845): Probing 'java_interop_jnienv_throw'.
02-15 13:39:56.015 D/Mono    ( 7845): Found as 'java_interop_jnienv_throw'.

9 Replies

AS Arun siva Syncfusion Team February 18, 2019 04:48 PM UTC

Hi Ted, 
 
Thank you for contacting Syncfusion support. 
 
Currently, we are analyzing the reported behavior “Calendar crashes when navigating to previous/next month, when build with MVVMCross” and we will update you on 19th February 2019. We appreciate your patience until then. 
 
Regards, 
Arun Siva R 



SP Subburaj Pandian Veluchamy Syncfusion Team February 19, 2019 10:01 AM UTC

Hi Ted, 
  
Thank you for your patience. 
  
We have analyzed the reported issue “Calendar crashes when navigating to previous/next month, when build with MVVMCross” and it works fine from our end. We have prepared a sample using MVVMCross framework on forms and added appointments on it. When navigating to previous/next month views it works fine without any crash. 
  
Please find the sample by the following link. 
 
Sample linkCalendarMVVM 
  
Please check the sample, If the sample doesn’t meet your requirement, kindly modify the sample based on your scenario and revert us back with replication procedure to replicate the issue. It will be helpful for us to check on it and provide you the solution. 
 
Regards, 
Subburaj Pandian V 



TL Ted Latas February 19, 2019 11:19 AM UTC

Hello and thank you for your answer.

In the sample provided it indeed works without crashing, however the package versions used in the sample are different than ours.
Specifically we use NET Standard 2.0 while in the sample it is NET Framework 4.5, we also use Xamarin.Forms 3.4.0.1029999 while in the sample it is 2.5.1.527436 and lasty MvvmCross 6.2.3 while in the sample it is 5.7.0.

It seems that with the problem exists with the newer versions. Please advise and thank you for your time.


AS Arun siva Syncfusion Team February 20, 2019 02:01 PM UTC

Hi Ted, 
 
Currently, we are analyzing the reported behavior “Calendar crashes when navigating to previous/next month, when build with MVVMCross” with the latest version, as you have mentioned, we will update you for this on 21st February 2019. We appreciate your patience until then. 
 
Regards, 
Arun Siva R 
 



AS Arun siva Syncfusion Team February 21, 2019 12:54 PM UTC

Hi Ted, 
 
We are able to reproduce the reported issue “Calendar crashes when navigating to previous/next month, when build with MVVMCross on .NETStandard 2.0” and, currently, we are validating the issue on sample and source level, we will validate and let you know the details on two working days (25th February 2019). We appreciate your patience until then. 
 
Regards, 
Arun Siva R 



AS Arun siva Syncfusion Team February 25, 2019 12:59 PM UTC

Hi Ted, 
 
Apologize for the delay, 
 
Based on our analysis we found that the context of the application returns the Application instead of Activity, which causes the crash, we have handled activity in our source and in case of MVVMCross, it Application as Context hence the activity sets as null. Currently, we have analyzing more on this based on our source and as well as sample level solution. We will update you for this on or before 27th February 2019. We appreciate your patience until then. 
 
Regards, 
Arun Siva R 



SP Subburaj Pandian Veluchamy Syncfusion Team February 27, 2019 11:32 AM UTC

Hi Ted, 
 
Thank you for your patience. 
 
We have analyzed the reported issue “Calendar crashes when navigating to previous/next month, when build with MVVMCross on .NETStandard 2.0” and we found that the issue occurs on MVVM Cross version 6 and above. In the latest update, the context returns the application instead of Activity which causes the crash. This mentioned issue already reported and they confirmed this as issue and it will rectify in the next update. 
 
Kindly check the following link for the same, 
 
 
As of now, you can use MVVMCross version 5.7.0 which works fine in this scenario without any crash. You can use this version until they fixed the issue in the next update. 
 
Kindly revert us, if you have any concern. 
 
Regards,
Subburaj Pandian V  



TL Ted Latas February 27, 2019 11:34 AM UTC

Hello,

Thank you for your efforts, we will try the solution you suggested.

Regards,
Ted


SP Subburaj Pandian Veluchamy Syncfusion Team February 28, 2019 05:42 AM UTC

Hi Ted, 
 
Thank you for the update. Please let us know if you have any further query, we will happy to help you. 
 
Regards,
Subburaj Pandian V  


Loader.
Live Chat Icon For mobile
Up arrow icon