Xamarin.forms: Unable to activate instance of type Xamarin.Forms.Platform.Android.AppCompat.TabbedPageRenderer from native handle

Created on 6 Nov 2018  ·  10Comments  ·  Source: xamarin/Xamarin.Forms

Description

The below stack trace appeared in App Center Crashes recently from users who downloaded my app from the Google Play Store. I haven't been able to reproduce it yet, but wanted to share the stack trace with the team.

It is happening on Xamarin.Forms v3.3.0.912540.

Steps to Reproduce

Unknown

Basic Information

  • Version with issue: Unknown
  • Last known good version: Unknown
  • IDE: Visual Studio Mac
  • Platform Target Frameworks:

    • Android: Android 8.1

  • Android Support Library Version: v27.0.2.1
  • Nuget Packages: Xamarin.Forms v3.3.0.912540
  • Affected Devices: (Screen shot below)

Screenshots

None

Reproduction Link

None

Stack Trace

Package: com.minnick.mondaypundayapp
Version Code: 157
Version Name: 3.4.4
Android: 8.0.0
Android Build: OPR1.170623.032
Manufacturer: LGE
Model: LG-H871
CrashReporter Key: bdb9c0db-4709-40c8-a607-34fd6f5ad9a2
Start Date: 2018-11-02T02:19:59.878Z
Date: 2018-11-02T16:56:47.097Z

Xamarin Exception Stack:
System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.AppCompat.TabbedPageRenderer from native handle 0x79 (key_handle 0x5f389d2).
  at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00182] in <52cda36f06644c5abf922ea558a8f95b>:0
  at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x000c1] in <52cda36f06644c5abf922ea558a8f95b>:0
  at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00017] in <52cda36f06644c5abf922ea558a8f95b>:0
  at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in <52cda36f06644c5abf922ea558a8f95b>:0
  at Android.Views.ViewGroup.GetChildAt (System.Int32 index) [0x00036] in <52cda36f06644c5abf922ea558a8f95b>:0
  at Xamarin.Forms.Platform.Android.AppCompat.Platform.SetPageInternal (Xamarin.Forms.Page newRoot) [0x0001a] in <bf1be5de9f774184903c6001067cd76a>:0
  at Xamarin.Forms.Platform.Android.AppCompat.Platform+<>c__DisplayClass36_0.<SetPage>b__0 () [0x0001f] in <bf1be5de9f774184903c6001067cd76a>:0
  at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <52cda36f06644c5abf922ea558a8f95b>:0
  at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <52cda36f06644c5abf922ea558a8f95b>:0
  at (wrapper dynamic-method) System.Object.28(intptr,intptr)
--- End of inner exception stack trace ---
  System.MissingMethodException: No constructor found for Xamarin.Forms.Platform.Android.AppCompat.TabbedPageRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership)
    at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00055] in <52cda36f06644c5abf922ea558a8f95b>:0
    at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00116] in <52cda36f06644c5abf922ea558a8f95b>: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 mono.java.lang.RunnableImplementor.n_run(Native Method)
      at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
      at android.os.Handler.handleCallback(Handler.java:789)
      at android.os.Handler.dispatchMessage(Handler.java:98)
      at android.os.Looper.loop(Looper.java:164)
      at android.app.ActivityThread.main(ActivityThread.java:6710)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)

Thread 2:
0   dalvik.system.VMStack.getThreadStackTrace(VMStack.java:-2)
1   java.lang.Thread.getStackTrace(Thread.java:1536)
2   java.lang.Thread.getAllStackTraces(Thread.java:1586)
3   com.microsoft.appcenter.crashes.Crashes.saveUncaughtException(Crashes.java:923)
4   com.microsoft.appcenter.crashes.WrapperSdkExceptionManager.saveWrapperException(WrapperSdkExceptionManager.java:50)
5   mono.java.lang.RunnableImplementor.n_run(RunnableImplementor.java:-2)
6   mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
7   android.os.Handler.handleCallback(Handler.java:789)
8   android.os.Handler.dispatchMessage(Handler.java:98)
9   android.os.Looper.loop(Looper.java:164)
10  android.app.ActivityThread.main(ActivityThread.java:6710)
11  java.lang.reflect.Method.invoke(Method.java:-2)
12  com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
13  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)

Thread 866:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:178)
2   java.lang.Daemons$Daemon.run(Daemons.java:103)
3   java.lang.Thread.run(Thread.java:764)

Thread 867:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Object.wait(Object.java:422)
2   java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188)
3   java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209)
4   java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:232)
5   java.lang.Daemons$Daemon.run(Daemons.java:103)
6   java.lang.Thread.run(Thread.java:764)

Thread 868:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded(Daemons.java:297)
2   java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:277)
3   java.lang.Daemons$Daemon.run(Daemons.java:103)
4   java.lang.Thread.run(Thread.java:764)

Thread 885:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Thread 887:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Thread 888:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Thread 901:
0   java.lang.Object.wait(Object.java:-2)
1   com.android.okhttp.okio.AsyncTimeout.awaitTimeout(AsyncTimeout.java:318)
2   com.android.okhttp.okio.AsyncTimeout.-wrap0
3   com.android.okhttp.okio.AsyncTimeout$Watchdog.run(AsyncTimeout.java:293)

Affected Devices / OS's

image

has-stacktrace Android needs-info ❓ needs-repro ❔ bug

Most helpful comment

@samhouts Just curious to why isn't this on track for 3.6.0? This is the main crash issue in our app and if there's a potential fix in this PR I would like it to be included in the next release. I can't seem to find a decent workaround for it either

All 10 comments

Hi, this is a issue we see when we are trying to access a disposed TabbedPage.

We would need a repro to try to replicate this issue and do further investigation.

I wonder if you can see on AppCenter the users flow till that crash.

I have an app with the exact same issue using version 3.3.0.967583 (also had it with previous versions).

I can reproduce it when I get a push notification and click on that while the app is in the background but not closed. Unfortunately that isn't a scenario I can share a sample for.

After some research I found this article who might be related: https://stackoverflow.com/questions/26573627/no-constructor-found-for-system-intptr-android-runtime-jnihandleownership

Not sure if that would mean that the issue can be solved by exposing such a constructor?

@NPadrutt this is a recurring issue on Android. Adding the constructor just goes around the problem. Normally the root cause is somewhere, somehow we are trying to mess with that object that was already gone, a mismatch between mono and android.
First thing is a good repo so we can tackle the problem by look what's trying to access TabbedPaga

I can only talk about my case. Here it is when base.OnCreate() is called when the app is launched from the background over a push notification.
That would raise the question what is different when launched from the icon to when launched over the notification banner. The passed bundle in both cases is null. Als the intent is in both cases identically.

@dimazaid

Adding App Center Push PM, Dimah, for visibility

I had this error on an other app aswell, which is open source. Unforntunately I haven't found out concrete steps to reproduce this while debugging, but maybe this can help.

Xamarin Forms: 3.3.0.967583

Package: com.applysolutions.moneyfox
Version Code: 2018318002
Version Name: 4.4.2018318.002
Android: 8.0.0
Android Build: OPR1.170623.032
Manufacturer: OnePlus
Model: ONEPLUS A3003
CrashReporter Key: c69e70df-a610-4112-be05-e3869f130474
Start Date: 2018-11-14T13:15:22.029Z
Date: 2018-11-14T13:46:49.998Z

Xamarin Exception Stack:
System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.AppCompat.TabbedPageRenderer from native handle 0x7fe27a2d24 (key_handle 0xc4a7412).
  at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00182] in <8c628934d53240ec9f93aa220d26a9d8>:0
  at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x000c1] in <8c628934d53240ec9f93aa220d26a9d8>:0
  at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00017] in <8c628934d53240ec9f93aa220d26a9d8>:0
  at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in <8c628934d53240ec9f93aa220d26a9d8>:0
  at Java.Lang.Object.GetObject[T] (System.IntPtr jnienv, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00006] in <8c628934d53240ec9f93aa220d26a9d8>:0
  at Android.Views.View.n_OnDetachedFromWindow (System.IntPtr jnienv, System.IntPtr native__this) [0x00000] in <8c628934d53240ec9f93aa220d26a9d8>:0
  at (wrapper dynamic-method) System.Object.45(intptr,intptr)
--- End of inner exception stack trace ---
  System.MissingMethodException: No constructor found for Xamarin.Forms.Platform.Android.AppCompat.TabbedPageRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership)
    at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00055] in <8c628934d53240ec9f93aa220d26a9d8>:0
    at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00116] in <8c628934d53240ec9f93aa220d26a9d8>: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 md58432a647068b097f9637064b8985a5e0.TabbedPageRenderer.n_onDetachedFromWindow(Native Method)
      at md58432a647068b097f9637064b8985a5e0.TabbedPageRenderer.onDetachedFromWindow(TabbedPageRenderer.java:65)
      at android.view.View.dispatchDetachedFromWindow(View.java:17536)
      at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3683)
      at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3675)
      at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5227)
      at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5198)
      at android.view.ViewGroup.removeView(ViewGroup.java:5129)
      at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1520)
      at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
      at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:792)
      at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)
      at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)
      at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)
      at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)
      at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:781)
      at md5a0013181b845adff0c8407b475a96272.MainActivity.n_onCreate(Native Method)
      at md5a0013181b845adff0c8407b475a96272.MainActivity.onCreate(MainActivity.java:30)
      at android.app.Activity.performCreate(Activity.java:7003)
      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1230)
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2899)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3046)
      at android.app.ActivityThread.-wrap11(Unknown Source:0)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1688)
      at android.os.Handler.dispatchMessage(Handler.java:105)
      at android.os.Looper.loop(Looper.java:164)
      at android.app.ActivityThread.main(ActivityThread.java:6798)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

Thread 2:
0   dalvik.system.VMStack.getThreadStackTrace(VMStack.java:-2)
1   java.lang.Thread.getStackTrace(Thread.java:1536)
2   java.lang.Thread.getAllStackTraces(Thread.java:1586)
3   com.microsoft.appcenter.crashes.Crashes.saveUncaughtException(Crashes.java:923)
4   com.microsoft.appcenter.crashes.WrapperSdkExceptionManager.saveWrapperException(WrapperSdkExceptionManager.java:50)
5   md58432a647068b097f9637064b8985a5e0.TabbedPageRenderer.n_onDetachedFromWindow(TabbedPageRenderer.java:-2)
6   md58432a647068b097f9637064b8985a5e0.TabbedPageRenderer.onDetachedFromWindow(TabbedPageRenderer.java:65)
7   android.view.View.dispatchDetachedFromWindow(View.java:17536)
8   android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3683)
9   android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3675)
10  android.view.ViewGroup.removeViewInternal(ViewGroup.java:5227)
11  android.view.ViewGroup.removeViewInternal(ViewGroup.java:5198)
12  android.view.ViewGroup.removeView(ViewGroup.java:5129)
13  android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1520)
14  android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
15  android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:792)
16  android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)
17  android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)
18  android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)
19  android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)
20  android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:781)
21  md5a0013181b845adff0c8407b475a96272.MainActivity.n_onCreate(MainActivity.java:-2)
22  md5a0013181b845adff0c8407b475a96272.MainActivity.onCreate(MainActivity.java:30)
23  android.app.Activity.performCreate(Activity.java:7003)
24  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1230)
25  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2899)
26  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3046)
27  android.app.ActivityThread.-wrap11
28  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1688)
29  android.os.Handler.dispatchMessage(Handler.java:105)
30  android.os.Looper.loop(Looper.java:164)
31  android.app.ActivityThread.main(ActivityThread.java:6798)
32  java.lang.reflect.Method.invoke(Method.java:-2)
33  com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
34  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

Thread 2134:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:186)
2   java.lang.Daemons$Daemon.run(Daemons.java:111)
3   java.lang.Thread.run(Thread.java:764)

Thread 2135:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Object.wait(Object.java:422)
2   java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188)
3   java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209)
4   java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:240)
5   java.lang.Daemons$Daemon.run(Daemons.java:111)
6   java.lang.Thread.run(Thread.java:764)

Thread 2136:
0   java.lang.Thread.sleep(Thread.java:-2)
1   java.lang.Thread.sleep(Thread.java:373)
2   java.lang.Thread.sleep(Thread.java:314)
3   java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor(Daemons.java:355)
4   java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:396)
5   java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:289)
6   java.lang.Daemons$Daemon.run(Daemons.java:111)
7   java.lang.Thread.run(Thread.java:764)

Thread 2148:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Thread 2152:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Thread 2154:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Thread 2159:
0   android.net.LocalSocketImpl.connectLocal(LocalSocketImpl.java:-2)
1   android.net.LocalSocketImpl.connect(LocalSocketImpl.java:292)
2   android.net.LocalSocket.connect(LocalSocket.java:145)
3   com.qti.tcmclient.DpmTcmClient$TcmReceiver.run(DpmTcmClient.java:106)
4   java.lang.Thread.run(Thread.java:764)

Thread 2162:
0   java.lang.Object.wait(Object.java:-2)
1   com.android.okhttp.okio.AsyncTimeout.awaitTimeout(AsyncTimeout.java:311)
2   com.android.okhttp.okio.AsyncTimeout.-wrap0
3   com.android.okhttp.okio.AsyncTimeout$Watchdog.run(AsyncTimeout.java:286)

Thread 2184:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Thread.parkFor$(Thread.java:2135)
2   sun.misc.Unsafe.park(Unsafe.java:358)
3   java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
4   java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2101)
5   java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
6   java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1086)
7   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1147)
8   java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
9   java.lang.Thread.run(Thread.java:764)

@samhouts Just curious to why isn't this on track for 3.6.0? This is the main crash issue in our app and if there's a potential fix in this PR I would like it to be included in the next release. I can't seem to find a decent workaround for it either

I am able to reproduce this error. I get this error when i quickly click on a button multiple times.

A similar stack:

----------------
Unable to activate instance of type Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer from native handle 0xffdb644c (key_handle 0x497009f).
----------------
at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x0017d] in <0205815895514309b5222e48386b7d42>:0 
at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x000b9] in <0205815895514309b5222e48386b7d42>:0 
at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00017] in <0205815895514309b5222e48386b7d42>:0 
at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in <0205815895514309b5222e48386b7d42>:0 
at Java.Lang.Object.GetObject[T] (System.IntPtr jnienv, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00006] in <0205815895514309b5222e48386b7d42>:0 
at Android.Views.View.n_OnTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x00000] in <0205815895514309b5222e48386b7d42>:0 
at (wrapper dynamic-method) System.Object.c1a50462-9337-4519-9ecf-3dddb31a61ad(intptr,intptr,intptr)

----------------
No constructor found for Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership)
----------------
at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00054] in <0205815895514309b5222e48386b7d42>:0 
at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00111] in <0205815895514309b5222e48386b7d42>:0 

----------------
Exception of type 'Java.Interop.JavaLocationException' was thrown.
----------------
Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.
--- End of managed Java.Lang.Error stack trace ---
java.lang.Error: Java callstack:
\tat md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onTouchEvent(Native Method)
\tat md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onTouchEvent(VisualElementRenderer_1.java:48)
\tat android.view.View.dispatchTouchEvent(View.java:12611)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3054)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_dispatchTouchEvent(Native Method)
\tat md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.dispatchTouchEvent(VisualElementRenderer_1.java:64)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_dispatchTouchEvent(Native Method)
\tat md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.dispatchTouchEvent(VisualElementRenderer_1.java:64)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.n_dispatchTouchEvent(Native Method)
\tat md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.dispatchTouchEvent(PlatformRenderer.java:47)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3041)
\tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2728)
\tat com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:555)
\tat com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1929)
\tat android.app.Activity.dispatchTouchEvent(Activity.java:3591)
\tat android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:68)
\tat android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:68)
\tat com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:504)
\tat android.view.View.dispatchPointerEvent(View.java:12856)
\tat android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5753)
\tat android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5519)
\tat android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4974)
\tat android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5027)
\tat android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4993)
\tat android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5147)
\tat android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5001)
\tat android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5204)
\tat android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4974)
\tat android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5027)
\tat android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4993)
\tat android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5001)
\tat android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4974)
\tat android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7780)
\tat android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7745)
\tat android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7703)
\tat android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7977)
\tat android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:202)
\tat android.os.MessageQueue.nativePollOnce(Native Method)
\tat android.os.MessageQueue.next(MessageQueue.java:386)
\tat android.os.Looper.loop(Looper.java:169)
\tat android.app.ActivityThread.main(ActivityThread.java:7539)
\tat java.lang.reflect.Method.invoke(Native Method)
\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)




System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer from native handle 0xffdb644c (key_handle 0x497009f). ---> System.MissingMethodException: No constructor found for Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
--- End of inner exception stack trace ---
at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00054] in <0205815895514309b5222e48386b7d42>:0 
at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00111] in <0205815895514309b5222e48386b7d42>:0 
--- End of inner exception stack trace ---
at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x0017d] in <0205815895514309b5222e48386b7d42>:0 
at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x000b9] in <0205815895514309b5222e48386b7d42>:0 
at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00017] in <0205815895514309b5222e48386b7d42>:0 
at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in <0205815895514309b5222e48386b7d42>:0 
at Java.Lang.Object.GetObject[T] (System.IntPtr jnienv, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00006] in <0205815895514309b5222e48386b7d42>:0 
at Android.Views.View.n_OnTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x00000] in <0205815895514309b5222e48386b7d42>:0 
at (wrapper dynamic-method) System.Object.c1a50462-9337-4519-9ecf-3dddb31a61ad(intptr,intptr,intptr)

I don't have much info to add, I cannot reproduce this but it happens from time to time.
I get it sent from AndroidEnvironment_UnhandledExceptionRaiser

Was this page helpful?
0 / 5 - 0 ratings