Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello,

I have a Xamarin Forms app, that crashes as soon as the schedule control is displayed only on Android. On iOS and UWP, it works fine!

I am using the 17.3.0.17 version of Syncfusion controls.

I have Visual Studio 2019 v. 16.3.5.

The control is hosted in master-detail page, and the error that I get is: System.NullReferenceException: Object reference not set to an instance of an object


The full error from Visual Studio is:


10-17 11:33:34.697 W/eWorksStudioAp( 7483): JNI RegisterNativeMethods: attempt to register 0 native methods for md5f7dbe3b1e8d67fa05ca94fce6a500b14.SfRadioButtonRenderer 10-17 11:33:34.699 D/Mono ( 7483): Loading reference 6 of Syncfusion.Buttons.XForms.Android.dll asmctx DEFAULT, looking for Xamarin.Android.Support.v7.AppCompat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 10-17 11:33:34.701 D/Mono ( 7483): Assembly Ref addref Syncfusion.Buttons.XForms.Android[0xed8e1340] -> Xamarin.Android.Support.v7.AppCompat[0xd4e5a960]: 4 10-17 11:33:34.824 D/Mono ( 7483): Loading reference 17 of Xamarin.Forms.Platform.Android.dll asmctx DEFAULT, looking for Xamarin.Android.Support.SwipeRefreshLayout, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 10-17 11:33:34.824 D/Mono ( 7483): Assembly Ref addref Xamarin.Forms.Platform.Android[0xd4e5aea0] -> Xamarin.Android.Support.SwipeRefreshLayout[0xd4e5a840]: 2 10-17 11:33:34.824 D/Mono ( 7483): Loading reference 3 of Xamarin.Android.Support.SwipeRefreshLayout.dll asmctx DEFAULT, looking for Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 10-17 11:33:34.824 D/Mono ( 7483): Assembly Ref addref Xamarin.Android.Support.SwipeRefreshLayout[0xd4e5a840] -> Xamarin.Android.Support.Compat[0xd4e5a1e0]: 7 10-17 11:33:34.837 D/Mono ( 7483): Loading reference 2 of Xamarin.Android.Support.SwipeRefreshLayout.dll asmctx DEFAULT, looking for Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065 10-17 11:33:34.837 D/Mono ( 7483): Assembly Ref addref Xamarin.Android.Support.SwipeRefreshLayout[0xd4e5a840] -> Java.Interop[0xd4e5b0e0]: 23 10-17 11:33:35.153 D/Mono ( 7483): Loading reference 5 of Syncfusion.SfSchedule.XForms.Android.dll asmctx DEFAULT, looking for System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e 10-17 11:33:35.154 D/Mono ( 7483): Assembly Ref addref Syncfusion.SfSchedule.XForms.Android[0xed8e1c40] -> System[0xd4e5b1a0]: 15 10-17 11:33:35.166 W/eWorksStudioAp( 7483): JNI RegisterNativeMethods: attempt to register 0 native methods for md55c68927977a96a9fd3427ae9a62e68c8.SfScheduleRenderer 10-17 11:33:35.216 W/eWorksStudioAp( 7483): JNI RegisterNativeMethods: attempt to register 0 native methods for md5ca6ad4b4daa3082a1daffb5219fe7124.SfScheduleExt 10-17 11:33:35.348 D/Mono ( 7483): Loading reference 6 of Syncfusion.SfSchedule.XForms.Android.dll asmctx DEFAULT, looking for System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e 10-17 11:33:35.349 D/Mono ( 7483): Assembly Ref addref Syncfusion.SfSchedule.XForms.Android[0xed8e1c40] -> System.Core[0xd4e5cb80]: 8 10-17 11:33:35.914 I/eWorksStudioAp( 7483): Explicit concurrent copying GC freed 4658(380KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 2MB/5MB, paused 688us total 29.194ms 10-17 11:33:35.920 D/Mono ( 7483): GC_TAR_BRIDGE bridges 399 objects 5080 opaque 6888 colors 399 colors-bridged 399 colors-visible 399 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 6.49ms scc-setup 0.23ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.21ms 10-17 11:33:35.920 D/Mono ( 7483): GC_BRIDGE: Complete, was running for 37.14ms 10-17 11:33:35.920 D/Mono ( 7483): GC_MINOR: (Nursery full) time 15.92ms, stw 19.01ms promoted 1016K major size: 7488K in use: 6669K los size: 5176K in use: 4718K 10-17 11:33:37.245 E/eWorksStudioAp( 7483): Invalid ID 0x00000000. **System.NullReferenceException:** 'Object reference not set to an instance of an object.' Thread finished: #5 The thread 0x5 has exited with code 0 (0x0). Thread finished: #6 The thread 0x6 has exited with code 0 (0x0). Thread finished: #10 The thread 0xa has exited with code 0 (0x0). Thread finished: #4 The thread 0x4 has exited with code 0 (0x0). Thread finished: #7 The thread 0x7 has exited with code 0 (0x0). Thread finished: #8 The thread 0x8 has exited with code 0 (0x0). Thread finished: #9 The thread 0x9 has exited with code 0 (0x0). Thread finished: #11 The thread 0xb has exited with code 0 (0x0). Thread started: #12 Thread started: #13 Thread started: #14 Thread started: #15 10-17 11:50:05.150 D/Mono ( 7483): DllImport attempting to load: '/system/lib/liblog.so'. 10-17 11:50:05.166 D/Mono ( 7483): DllImport loaded library '/system/lib/liblog.so'. 10-17 11:50:05.166 D/Mono ( 7483): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so'). 10-17 11:50:05.166 D/Mono ( 7483): Searching for '__android_log_print'. 10-17 11:50:05.167 D/Mono ( 7483): Probing '__android_log_print'. 10-17 11:50:05.167 D/Mono ( 7483): Found as '__android_log_print'. Thread started: #16 10-17 11:50:05.196 I/MonoDroid( 7483): UNHANDLED EXCEPTION: 10-17 11:50:05.202 I/MonoDroid( 7483): System.NullReferenceException: Object reference not set to an instance of an object. 10-17 11:50:05.202 I/MonoDroid( 7483): at Com.Syncfusion.Schedule.ResourceItemView.GetBitmapData (Android.Graphics.Bitmap bitmap, Com.Syncfusion.Schedule.ResourceSettings settings) [0x00000] in :0 10-17 11:50:05.202 I/MonoDroid( 7483): at Com.Syncfusion.Schedule.ResourceItemView.UpdateImageView () [0x000f4] in :0 10-17 11:50:05.203 I/MonoDroid( 7483): at Com.Syncfusion.Schedule.ResourceContainer.AddResourcesView () [0x0023f] in :0 10-17 11:50:05.203 I/MonoDroid( 7483): at Com.Syncfusion.Schedule.SfSchedule.InitResourceView () [0x00034] in :0 10-17 11:50:05.203 I/MonoDroid( 7483): at Com.Syncfusion.Schedule.SfSchedule.OnMeasure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00069] in :0 10-17 11:50:05.203 I/MonoDroid( 7483): at Android.Views.View.n_OnMeasure_II (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00009] in /Users/vsts/agent/2.158.0/work/1/s/src/Mono.Android/obj/Release/android-28/mcw/Android.Views.View.cs:16644 10-17 11:50:05.203 I/MonoDroid( 7483): at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.55(intptr,intptr,int,int) 10-17 11:50:05.233 E/AppCenterCrashes( 7483): Unhandled Exception from source=AndroidEnvironment 10-17 11:50:05.233 E/AppCenterCrashes( 7483): System.NullReferenceException: Object reference not set to an instance of an object. 10-17 11:50:05.233 E/AppCenterCrashes( 7483): at Com.Syncfusion.Schedule.ResourceItemView.GetBitmapData (Android.Graphics.Bitmap bitmap, Com.Syncfusion.Schedule.ResourceSettings settings) [0x00000] in :0 10-17 11:50:05.233 E/AppCenterCrashes( 7483): at Com.Syncfusion.Schedule.ResourceItemView.UpdateImageView () [0x000f4] in :0 10-17 11:50:05.233 E/AppCenterCrashes( 7483): at Com.Syncfusion.Schedule.ResourceContainer.AddResourcesView () [0x0023f] in :0 10-17 11:50:05.233 E/AppCenterCrashes( 7483): at Com.Syncfusion.Schedule.SfSchedule.InitResourceView () [0x00034] in :0 10-17 11:50:05.233 E/AppCenterCrashes( 7483): at Com.Syncfusion.Schedule.SfSchedule.OnMeasure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00069] in :0 10-17 11:50:05.233 E/AppCenterCrashes( 7483): at Android.Views.View.n_OnMeasure_II (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00009] in /Users/vsts/agent/2.158.0/work/1/s/src/Mono.Android/obj/Release/android-28/mcw/Android.Views.View.cs:16644 10-17 11:50:05.233 E/AppCenterCrashes( 7483): at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.55(intptr,intptr,int,int) 10-17 11:50:05.251 D/Mono ( 7483): Loading reference 5 of Microsoft.AppCenter.Crashes.dll asmctx DEFAULT, looking for System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e 10-17 11:50:05.252 D/Mono ( 7483): Assembly Ref addref Microsoft.AppCenter.Crashes[0xed8e0b00] -> System.Core[0xd4e5cb80]: 9 10-17 11:50:05.669 W/eWorksStudioAp( 7483): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable 10-17 11:50:05.678 D/Mono ( 7483): DllImport searching in: '__Internal' ('(null)'). 10-17 11:50:05.678 D/Mono ( 7483): Searching for 'java_interop_jnienv_throw'. 10-17 11:50:05.678 D/Mono ( 7483): Probing 'java_interop_jnienv_throw'. 10-17 11:50:05.679 D/Mono ( 7483): Found as 'java_interop_jnienv_throw'. **System.NullReferenceException:** 'Object reference not set to an instance of an object.'