surface-duo-sdk icon indicating copy to clipboard operation
surface-duo-sdk copied to clipboard

[BUG] Xamarin Forms Crash Log: System.NullReferenceException at PlatformConfigurationExtensions.OnThisPlatform

Open brentesh opened this issue 1 year ago • 2 comments

🐛 Describe the bug

Crash log on Surface Duo devices only (Android 11, not reproducible but have gotten the log multiple times). Any ideas what could be causing this?

PlatformConfigurationExtensions.OnThisPlatform[T] (T element) System.NullReferenceException: Object reference not set to an instance of an object

PlatformConfigurationExtensions.OnThisPlatform[T] (T element) FragmentContainer.OnPause () Fragment.n_OnPause (System.IntPtr jnienv, System.IntPtr native__this) (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.129(intptr,intptr)

✔️ Expected behavior

Either a better exception or no exception at all

🪜 Steps to reproduce

Not reproducible :(

brentesh avatar Jul 20 '22 06:07 brentesh

Hey @brentesh

thanks for sharing!

Do you have a more informational logtrace where apps's or system's packages are shown? Without that info it is very difficult to guess from where that crash is coming from.

Also:

  • Is this crash log making the device to reboot?
  • is this crash coming after you have used any of our libraries (this repository) and or samples?

Please, any extra information is very appreciate.

Thanks, Cesar

CesarValiente avatar Aug 01 '22 13:08 CesarValiente