Bug 25525 - StackOverflowException OnBackButtonPressed on Android and WP
Summary: StackOverflowException OnBackButtonPressed on Android and WP
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-12-19 05:38 UTC by Sergio Paganoni
Modified: 2014-12-19 10:59 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:
VERIFIED FIXED

Description Sergio Paganoni 2014-12-19 05:38:37 UTC
As described by Dan Steck and confirmed by Jason Smith in the Xamarin forum: http://forums.xamarin.com/discussion/29405/xamarin-forms-1-3-0-pre-release-3/p1

"I was having a stack overflow exception with the "OnBackButtonPressed()" method on a Tabbed page returning to another tabbed page. I just upgraded to 1.3.0 pre3 from 1.2.3. It was happening on both Android and Windows Phone."

Workaround suggested:
        protected override bool OnBackButtonPressed()
        {
            Navigation.PopAsync();
            return true;
        }
Comment 1 Ram Chandra 2014-12-19 09:57:50 UTC
I have checked this issue but I am unable to reproduce this behavior.

When I use the "OnBackButtonPressed()" method on a Tabbed page returning to another tabbed page. I observed that I am not getting any exception or error.

Could you please provide sample application and build info? So that we can reproduce this issue at our end.

You can provide build info from here:

Visual Studio => Help => About Microsoft Visual Studio => Copy Info

Environment Info:

Xamarin.Forms:  1.3.0.6286 pre-4

Windows 8
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.50938
Installed Version: Professional
Xamarin   3.8.150.0 (10cfd178d55287f09c85f5a1e604dfe20889a40f)
Xamarin.Android   4.20.0.28 (ba9bbbdd44cfdc4bf485e8885bd2ad24fba525f7)
Xamarin.iOS   8.4.0.0 (840a925103a0bf4a856507f13d5eaee3c1579c2f)
Comment 2 Sergio Paganoni 2014-12-19 10:52:31 UTC
Starting with pre-4 the issue seems to be solved, I just upgraded and everything worked again

I now closed the issue
Comment 3 Ram Chandra 2014-12-19 10:59:50 UTC
As per comment 2, this issue has been resolved for user. Hence I am closing this issue .