Bug 37247 - Animated Android page crashes when app is relaunched after being closed via Back Button
Summary: Animated Android page crashes when app is relaunched after being closed via B...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-12-22 19:44 UTC by adrianknight89
Modified: 2016-09-11 20:20 UTC (History)
4 users (show)

Tags:
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 FIXED

Description adrianknight89 2015-12-22 19:44:53 UTC
Similar to https://bugzilla.xamarin.com/show_bug.cgi?id=32635

2.0.1.6492-pre1 / Galaxy S6 / Android 5.1.1

For repro, 

1) create a new solution and animate a PCL button with this method:

void AnimateButton (Button button)
{
     animation = new Animation ((double f) => button.Scale = f, button.Scale, 0.85, Easing.Linear, null);
     animation.Commit(button, "ScaleTo", 16, 1000, Easing.SpringIn,
	delegate(double f, bool a)
	{
	      button.Scale = 1.0;
	},
	() => button.IsVisible
	);
}

2) Hit Android back button to go back to the home screen
3) Relaunch app to crash

If you handle OnDisappearing to abort the animation, step 3) still crashes the app if you relaunch immediately after hitting the back button. If you wait for about 5 seconds, it'll work fine.
Comment 1 adrianknight89 2016-09-11 20:20:30 UTC
This seems to be fixed with the latest version of XF.