Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Xamarin and Synfusion ListView/SfPopupLayout Occasionally exit when OnSleep (hide) and (OnResume) #15797

Open
Pureaznangel opened this issue Aug 12, 2023 · 0 comments
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@Pureaznangel
Copy link

Pureaznangel commented Aug 12, 2023

Description

I don't understand why but sometimes the app crashes and quits.

Steps to Reproduce

  1. Do the changeVoucherCommand/changeLogisticCommand, (just PushAsync to another Page) then the App crash, (not all but sometimes)
  2. Sleep (hide) and Open again (OnResume) then Crash.
  3. Touch anywhere on the screen while operating and crash

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue: Any version of Syncfusion and Xamarin (Using newest)
  • Last known good version: n/a
  • Platform Target Frameworks: Android 12,13....
  • Affected Devices: I have Android only

Environment

Show/Hide Visual Studio info
Microsoft Visual Studio Professional 2022
Version 17.6.6
VisualStudio.17.Release/17.6.6+33927.249
Microsoft .NET Framework
Version 4.8.09037

Installed Version: Professional

ASP.NET and Web Tools   17.6.326.62524
ASP.NET and Web Tools

Azure App Service Tools v3.0.0   17.6.326.62524
Azure App Service Tools v3.0.0

C# Tools   4.6.0-3.23329.3+5db000294db8cc634e7d8fc004844338c9747dbc
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CodeMaid   12.0
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Extensibility Message Bus   1.4.21 (main@8f226a8)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio   17.6.41 (790a401)
Support for debugging Mono processes with Visual Studio.

Multiline Search and Replace   3.4
Adds multiline search and replace functionality to Visual Studio.

NuGet Package Manager   6.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

OzCodePackage Extension   1.0
OzCodePackage Visual Studio Extension Detailed Info

Rainbow Braces   1.0.151
Colorizes matching brace pairs to make it easy to identify them and their scope. Works for curly brackets, parentheses, and square brackets.

Razor (ASP.NET Core)   17.6.0.2327201+a6a61fdfa748eaa65aab53dab583276e26af4a3e
Provides languages services for ASP.NET Core Razor.

StylerPackage Extension   1.0
StylerPackage Visual Stuido Extension Detailed Info

Syncfusion Xamarin Project Templates   22.2.5
A multi-project template for building iOS, Android, and Windows apps using Syncfusion Xamarin components.

Syncfusion Xamarin Toolbox   22.2.5
Syncfusion Essential Studio for Xamarin Toolbox Visual Studio extension.

SyncfusionMenu Extension   22.2.5
SyncfusionMenu Visual Studio Extension Detailed Info

Tabnine AI Assistant - Visual Studio Autocomplete   1.0.17
C++ / C#, ASP.NET, Visual Basic, .NET, JavaScript, Java & all other languages - AI Code completion plugin. Tabnine makes developers more productive by auto-completing their code.

TypeScript Tools   17.0.20329.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.6.0-3.23329.3+5db000294db8cc634e7d8fc004844338c9747dbc
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   17.6.0-beta.23174.5+0207bea1afae48d9351ac26fb51afc8260de0a97
Microsoft Visual F# Tools

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

VisualStudio.DeviceLog   1.0
Information about my package

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

VSColorOutput64   2023.3
Color output for build and debug windows - https://mike-ward.net/vscoloroutput

Word Highlight With Margin Extension   1.0
Highlight all occurrences of a selected word and display carets on the enhanced vertical scrollbar at the right margin.

Xamarin   17.6.0.251 (d17-6@318364c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   17.6.6.0 (remotes/origin/d17-6@cb430751d1)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   17.6.32 (98c12a2)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   13.2.0.6 (d17-5/a200af1)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: 6dd9def
    Java.Interop: xamarin/java.interop/d17-5@149d70fe
    SQLite: xamarin/sqlite/3.40.1@68c69d8
    Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@9f02d77


Xamarin.iOS and Xamarin.Mac SDK   16.4.0.6 (97731c92c)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

XamRight   4.2
Program analysis and refactoring tools for Xaml

Build Logs

Screenshots

Reproduction Link

Not available

AppCenter Crash Log

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)
Collapse
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)

and sometime is:

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)
Collapse
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)
Collapse

Workaround

No at this moment.

@Pureaznangel Pureaznangel added s/unverified New report that has yet to be verified t/bug 🐛 labels Aug 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

1 participant