Android app crashes when orientation is changed

I have implemented SfPopupLayout in my app and when popup is open and we change the orientation in android it crashes.

Here is the stacktrace

  at Syncfusion.XForms.Android.PopupLayout.SfPopupLayout.CalculateRelativePoint (System.Int32 widthOfRelativeView, System.Int32 heightOfRelativeView, Syncfusion.XForms.Android.PopupLayout.RelativePosition position, System.Double absoluteX, System.Double absoluteY) [0x00013] in <e2d204cc2c2d4d52a7c1c89e0bbc62f5>:0 
  at Syncfusion.XForms.Android.PopupLayout.SfPopupLayout.ResetPopupWidthHeight () [0x00069] in <e2d204cc2c2d4d52a7c1c89e0bbc62f5>:0 
  at Syncfusion.XForms.Android.PopupLayout.SfPopupLayout.DecorView_LayoutChange (System.Object sender, Android.Views.View+LayoutChangeEventArgs e) [0x00054] in <e2d204cc2c2d4d52a7c1c89e0bbc62f5>:0 
  at (wrapper delegate-invoke) System.EventHandler`1[Android.Views.View+LayoutChangeEventArgs].invoke_void_object_TEventArgs(object,Android.Views.View/LayoutChangeEventArgs)
  at Android.Views.View+IOnLayoutChangeListenerImplementor.OnLayoutChange (Android.Views.View v, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom, System.Int32 oldLeft, System.Int32 oldTop, System.Int32 oldRight, System.Int32 oldBottom) [0x0000a] in /Users/builder/azdo/_work/278/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-29/mcw/Android.Views.View.cs:3477 
  at Android.Views.View+IOnLayoutChangeListenerInvoker.n_OnLayoutChange_Landroid_view_View_IIIIIIII (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom, System.Int32 oldLeft, System.Int32 oldTop, System.Int32 oldRight, System.Int32 oldBottom) [0x00010] in /Users/builder/azdo/_work/278/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-29/mcw/Android.Views.View.cs:3374 
  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.132(intptr,intptr,intptr,int,int,int,int,int,int,int,int)


1 Reply 1 reply marked as answer

KK Karthikraja Kalaimani Syncfusion Team March 29, 2021 09:38 AM UTC

Hi Dhruv,

Since we are not aware of your exact application situation, please share the following information in order to test it further and have a potential solution sooner.   

i) SfPopupLayout complete configuration

ii) SfPopupLayout and Xamarin Forms versions

iii) Device details.

Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/PopupDemo2078787248.zip


If you still facing the same issue ? please modify the attached sample based on your scenario and revert us back with clear replication procedure.

 
Regards,
Karthik Raja



Marked as answer
Loader.
Up arrow icon