Bug 60961 - Unable to activate instance of type Xamarin.Forms.Platform.Android.FastRenderers.ImageRenderer from native handle
Summary: Unable to activate instance of type Xamarin.Forms.Platform.Android.FastRender...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.5.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-12-03 13:12 UTC by batmaci
Modified: 2018-05-11 07:27 UTC (History)
3 users (show)

Tags: needs_repro, image, fastrenderer
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 NOT_REPRODUCIBLE

Description batmaci 2017-12-03 13:12:35 UTC
When I use  Forms.SetFlags("FastRenderers_Experimental"); in mainactivity on xamarin forms 2.5.0.91635, I get exception below on base.OnDestroy when i click back button on mainpage. my OnDestroy function is quite simple as below. Is this already a known issue?            


Unhandled Exception:

System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.FastRenderers.ImageRenderer from native handle 0xbe81ea6c (key_handle 0x92860c1). occurred

protected override void OnDestroy()
        {
            try
            {
                base.OnDestroy();
            }
            catch (Exception ex)
            {
                ex.ToString();
            }
}
Comment 1 Paul DiPietro [MSFT] 2017-12-04 05:48:56 UTC
Can you attach a reproduction? When you say back button, do you mean in navigation or the OS back button?
Comment 2 batmaci 2017-12-13 16:08:59 UTC
It was caused by hadware back button but i cant reproduce the issue using XF 2.5.0.121934. it seems like that problem is solved. I am closing this first.
Comment 3 batmaci 2017-12-13 16:10:35 UTC
Cannot reproduce in XF 2.5.0.12.1934
Comment 4 batmaci 2017-12-13 16:11:06 UTC
Cannot reproduce in XF 2.5.0.121934
Comment 5 Masahiko Miyasaka 2018-05-11 07:27:55 UTC
I'm encountering this in XF 2.5.1.444934.