Help me: Exception occured and exit with SfPopupLayout

I usually got this exception:

exception.png

and the Stack traces:

  • Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.
  • java.lang.Error: Java callstack:
  • crc6466d27d713c291f37.PopupView.n_onTouchEvent(Native Method)
  • crc6466d27d713c291f37.PopupView.onTouchEvent PopupView.java:59
  • android.view.View.dispatchTouchEvent(Unknown Source:97)
  • android.view.ViewGroup.dispatchTransformedTouchEvent(Unknown Source:39)
  • android.view.ViewGroup.dispatchTouchEvent(Unknown Source:590)
  • android.view.ViewGroup.dispatchTransformedTouchEvent(Unknown Source:109)
  • android.view.ViewGroup.dispatchTouchEvent(Unknown Source:388)
  • android.view.ViewGroup.dispatchTransformedTouchEvent(Unknown Source:59)
  • android.view.ViewGroup.dispatchTouchEvent(Unknown Source:388)
  • com.android.internal.policy.DecorView.superDispatchTouchEvent(Unknown Source:0)
  • com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(Unknown Source:2)
  • android.app.Activity.dispatchTouchEvent(Unknown Source:13)
  • androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent WindowCallbackWrapper.java:70
  • com.android.internal.policy.DecorView.dispatchTouchEvent(Unknown Source:123)
  • android.view.View.dispatchPointerEvent(Unknown Source:16)
  • android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(Unknown Source:45)
  • android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(Unknown Source:131)
  • android.view.ViewRootImpl$InputStage.deliver(Unknown Source:26)
  • android.view.ViewRootImpl$InputStage.onDeliverToNext(Unknown Source:4)
  • android.view.ViewRootImpl$InputStage.forward(Unknown Source:0)
  • android.view.ViewRootImpl$AsyncInputStage.forward(Unknown Source:10)
  • android.view.ViewRootImpl$InputStage.apply(Unknown Source:2)
  • android.view.ViewRootImpl$AsyncInputStage.apply(Unknown Source:7)
  • android.view.ViewRootImpl$InputStage.deliver(Unknown Source:34)
  • android.view.ViewRootImpl$InputStage.onDeliverToNext(Unknown Source:4)
  • android.view.ViewRootImpl$InputStage.forward(Unknown Source:0)
  • android.view.ViewRootImpl$InputStage.apply(Unknown Source:2)
  • android.view.ViewRootImpl$InputStage.deliver(Unknown Source:34)
  • android.view.ViewRootImpl.deliverInputEvent(Unknown Source:165)
  • android.view.ViewRootImpl.doProcessInputEvents(Unknown Source:48)
  • android.view.ViewRootImpl.enqueueInputEvent(Unknown Source:105)
  • android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(Unknown Source:90)
  • android.view.InputEventReceiver.dispatchInputEvent(Unknown Source:36)
  • android.os.MessageQueue.nativePollOnce(Native Method)
  • android.os.MessageQueue.next(Unknown Source:17)
  • android.os.Looper.loopOnce(Unknown Source:6)
  • android.os.Looper.loop(Unknown Source:76)
  • android.app.ActivityThread.main(Unknown Source:138)
  • java.lang.reflect.Method.invoke(Native Method)
  • com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
  • com.android.internal.os.ZygoteInit.main(Unknown Source:309)


  • TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer)
  • TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType)

  • TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType)
  • Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type)
  • Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer)
  • Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer)
  • Object.GetObject[T] (System.IntPtr jnienv, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer)
  • View.n_OnTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e)
  • JNINativeWrapper.Wrap_JniMarshal_PPL_Z (_JniMarshal_PPL_Z callback, System.IntPtr jnienv, System.IntPtr klazz, System.IntPtr p0)

This happen some times and much days recent when I touch to:

<syncfusion:SfListView.Behaviors>


<local1:EventToCommandBehavior>

this command does:

 await ((FlyoutPage)Application.Current.MainPage).Detail.Navigation.PushAsync(new SelectVoucher(shopId));


There many crash error related to this control: Listview and PopupView

exception 3.png


I attached fie log files that I've collected from the crash report of AppCenter.

Thanks.




Attachment: Downloads_57346789.rar


4 Replies

HG hoang Gia August 13, 2023 08:57 AM UTC

p/s: The screenshot

I found the way easy to make this exception happen, just press Home button to put app to sleep state and then tap on the screen to resume it, continuously about 10-20-30 times will fire this exception.

Image_3150_1691866848861



DV Diwakar Venkatesan Syncfusion Team August 14, 2023 01:46 PM UTC

Hi Hoang Gia, 

We have analyzed your query, but we were unable to replicate the mentioned exception on our end. It appears that we are unable to understand your query based on the information provided. Could you please share the following details:

- Code snippet related to the initialization of SfPopupLayout and the properties used
- Code snippet for the initialization of SfListView and the details of the EventToCommandBehavior
- Sample replication video
- SfListView and SfPopupLayout version and device details (Model and OS)
We have attached a video demonstrating how we attempted to reproduce the issue using a simple SfPopupLayout. Could you please provide more details about your requirements? This will help us to investigate further and provide you with a solution as soon as possible.


Regards,
Diwakar V


HG hoang Gia replied to Diwakar Venkatesan August 14, 2023 01:58 PM UTC

Hello, This is my commercial product so I am unable to post the code here, 

Would you please send me an email ? So I would send you my Xamarin Form project, and you could run it on a real android device or Visual studio emulator (both of them are effect). Please reach me at giahh(remove)[email protected], because I don't know which is the trusted email that I could send.

Regards,




RM RiyasHameed MohamedAbdulKhader Syncfusion Team August 15, 2023 08:05 AM UTC

hoang Gia,

We have already created the ticket. You can view our response there. Therefore, we are closing this task. Feel free to reopen the ticket if needed.


Loader.
Up arrow icon