rotorgames / Rg.Plugins.Popup

Xamarin Forms popup plugin
MIT License
1.15k stars 336 forks source link

System.MissingMethodException: No constructor found for Rg.Plugins.Popup.Droid.Renderers.PopupPageRenderer #764

Open PrzemekZA opened 8 months ago

PrzemekZA commented 8 months ago

šŸ› Bug Report

On the appcenter.ms found today some crashes issue with Stack:

Xamarin Exception Stack: System.NotSupportedException: Unable to activate instance of type Rg.Plugins.Popup.Droid.Renderers.PopupPageRenderer from native handle 0x7ffe920824 (key_handle 0x28e56a0). at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00174] in <2705ebb5a06f428abce6df53f5b62683>:0 at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x00023] in <2705ebb5a06f428abce6df53f5b62683>:0 at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00017] in <2705ebb5a06f428abce6df53f5b62683>:0 at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in <2705ebb5a06f428abce6df53f5b62683>:0 at Java.Lang.Object.GetObject[T] (System.IntPtr jnienv, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00006] in <2705ebb5a06f428abce6df53f5b62683>:0 at Android.Views.View.n_OnMeasure_II (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00000] in <2705ebb5a06f428abce6df53f5b62683>:0 at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPII_V (_JniMarshal_PPII_V callback, System.IntPtr jnienv, System.IntPtr klazz, System.Int32 p0, System.Int32 p1) [0x00005] in <2705ebb5a06f428abce6df53f5b62683>:0 --- End of inner exception stack trace --- System.MissingMethodException: No constructor found for Rg.Plugins.Popup.Droid.Renderers.PopupPageRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x000b5] in <2705ebb5a06f428abce6df53f5b62683>:0 at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x0010c] in <2705ebb5a06f428abce6df53f5b62683>:0 --- End of inner exception stack trace --- Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown. at Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown. at java.lang.Error: Java callstack: at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onMeasure(Native Method) at crc643f46942d9dd1fff9.VisualElementRenderer_1.onMeasure(VisualElementRenderer_1.java:111) at android.view.View.measure(View.java:24603) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6925) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at com.android.internal.policy.DecorView.onMeasure(DecorView.java:756) at android.view.View.measure(View.java:24603) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:3061) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1888) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2233) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1776) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7662) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:966) at android.view.Choreographer.doCallbacks(Choreographer.java:790) at android.view.Choreographer.doFrame(Choreographer.java:725) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:951) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7708) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:503) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

Expected behavior

App will not crash and PopUp will be visible.

Reproduction steps

Unknown. Found this issue on the appcenter diagnostic report.

Configuration

Devices list

  1. Android: 13 Android Build: QP1A.190711.020 Manufacturer: sprd Model: ums512_1h10_Natv

  2. Android: 13 Android Build: TP1A.220624.014 Manufacturer: samsung Model: SM-N986B

  3. Android: 10 Android Build: QP1A.190711.020 Manufacturer: samsung Model: SM-G965F

  4. Android: 10 Android Build: QKQ1.191222.002 Manufacturer: LGE Model: LM-V405

  5. Android Build: HUAWEIHMA-L29 Manufacturer: HUAWEI Model: HMA-L29

Version: 2.1.0

Platform: