Bug 36729 - Android.GenericAnimatorListener Constructor missing crash
Summary: Android.GenericAnimatorListener Constructor missing crash
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-12-08 18:56 UTC by Marko
Modified: 2017-06-17 01:49 UTC (History)
5 users (show)

Tags: android
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Marko 2015-12-08 18:56:46 UTC
My app crashes randomly with the following exception. After looking with ILSpy into the Assembly, I can confirm, that the consturctor is not available or was not preserved. The base class implements the constructor: https://developer.xamarin.com/api/type/Android.Animation.AnimatorListenerAdapter/


[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.GenericAnimatorListener from native handle 0x47f14af4 (key_handle 0x657f5c48). ---> System.MissingMethodException: No constructor found for Xamarin.Forms.Platform.Android.GenericAnimatorListener::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
[MonoDroid] Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.
[MonoDroid]   --- End of managed exception stack trace ---
[MonoDroid] java.lang.Error: Java callstack:
[MonoDroid] 	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.GenericAnimatorListener.n_finalize(Native Method)
[MonoDroid] 	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.GenericAnimatorListener.finalize(GenericAnimatorListener.java:55)
[MonoDroid] 	at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:190)
[MonoDroid] 	at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:173)
[MonoDroid] 	at java.lang.Thread.run(Thread.java:811)
[MonoDroid]   --- End of inner exception stack trace ---
[MonoDroid]   at Java.Interop.TypeManager.CreateProxy (System.Type type, IntPtr handle, JniHandleOwnership transfer) [0x00058] in <filename unknown>:0 
[MonoDroid]   at Java.Interop.TypeManager.CreateInstance (IntPtr handle, JniHandleOwnership transfer, System.Type targetType) [0x0012c] in <filename unknown>:0 
[MonoDroid]   --- End of inner exception stack trace ---
[MonoDroid]   at Java.Interop.TypeManager.CreateInstance (IntPtr handle, JniHandleOwnership transfer, System.Type targetType) [0x001a4] in <filename unknown>:0 
[MonoDroid]   at Java.Lang.Object.GetObject (IntPtr handle, JniHandleOwnership transfer, System.Type type) [0x000e5] in <filename unknown>:0 
[MonoDroid]   at Java.Lang.Object._GetObject[T] (IntPtr handle, JniHandleOwnership transfer) [0x0001a] in <filename unknown>:0 
[MonoDroid]   at Java.Lang.Object.GetObject[T] (IntPtr handle, JniHandleOwnership transfer) [0x00000] in <filename unknown>:0 
[MonoDroid]   at Java.Lang.Object.GetObject[T] (IntPtr jnienv, IntPtr handle, JniHandleOwnership transfer) [0x00006] in <filename unknown>:0 
[MonoDroid]   at Java.Lang.Object.n_JavaFinalize (IntPtr jnienv, IntPtr native__this) [0x00000] in <filename unknown>:0 
[MonoDroid]   at (wrapper dynamic-method) System.Object:afe37a1f-cb80-4987-8c99-9a1770c57cab (intptr,intptr)
[art] JNI RegisterNativeMethods: attempt to register 0 native methods for md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable
[mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.GenericAnimatorListener from native handle 0x47f14af4 (key_handle 0x657f5c48). ---> System.MissingMethodException: No constructor found for Xamarin.Forms.Platform.Android.GenericAnimatorListener::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
[mono-rt] Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.
[mono-rt] 
[mono-rt]   --- End of managed exception stack trace ---
[mono-rt] java.lang.Error: Java callstack:
[mono-rt] 	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.GenericAnimatorListener.n_finalize(Native Method)
[mono-rt] 	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.GenericAnimatorListener.finalize(GenericAnimatorListener.java:55)
[mono-rt] 	at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:190)
[mono-rt] 	at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:173)
[mono-rt] 	at java.lang.Thread.run(Thread.java:811)
[mono-rt] 
[mono-rt]   --- End of inner exception stack trace ---
[mono-rt]   at Java.Interop.TypeManager.CreateProxy (System.Type type, IntPtr handle, JniHandleOwnership transfer) [0x00058] in <filename unknown>:0 
[mono-rt]   at Java.Interop.TypeManager.CreateInstance (IntPtr handle, JniHandleOwnership transfer, System.Type targetType) [0x0012c] in <filename unknown>:0 
[mono-rt]   --- End of inner exception stack trace ---
[mono-rt]   at (wrapper dynamic-method) System.Object:afe37a1f-cb80-4987-8c99-9a1770c57cab (intptr,intptr)
[mono-rt]   at (wrapper native-to-managed) System.Object:afe37a1f-cb80-4987-8c99-9a1770c57cab (intptr,intptr)
[libc] bionic/libstdc++/src/pure_virtual.cpp:6: void __cxa_pure_virtual(): assertion "!"Pure virtual function called. Are you calling virtual methods from a destructor?"" failed
[libc] Fatal signal 6 (SIGABRT) at 0x00004a41 (code=-6), thread 19009 (kobl.tickerfeed)
Comment 1 Jonathan Pryor 2016-02-04 21:02:54 UTC
Mark as NEW as NEEDINFO was a mistake.
Comment 2 adrianknight89 2016-10-22 08:56:27 UTC
I've had similar problems before. It seemed like Cycle 8 fixed the issue.
Comment 3 Chris King 2016-12-21 22:56:34 UTC
Marko, sorry to hear you're having this issue; thanks for reporting this. If you're still blocked by this issue would you be willing to provide a reduced reproduction on the latest version of XF? Issues with reduced reproductions are given priority during triage.

Warm regards,
XFT
Comment 4 David Ortinau [MSFT] 2017-06-17 01:49:43 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!