Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

Regression - Android - Exception thrown during NavigationPage.Navigation.PopAsync #2837

@aquisio

Description

@aquisio

I am seeing an ArgumentOutOfRangeException when executing PopAsync after inserting a page into the navigation stack, which seems to be a regression of this issue and may be related to #2576 .

The issue can be reproduced by adding a single empty page to an empty template project and then including the following code in an async OnStart() implementation:

	var nav = (NavigationPage) MainPage;
	nav.Navigation.InsertPageBefore(new SecondPage(), nav.CurrentPage);
	await nav.Navigation.PopAsync(false);

This issue only affects Android projects using Material Design (FormsAppCompatActivity).

  • Version with issue: All Xamarin.Forms versions from v2.5.1.444934 onwards
  • Last known good version: v2.5.0.280555
  • IDE: VS2017 v15.7.1
  • Android Target Framework: 7.1, 8.0, 8.1
  • Android Support Library Version: v25.4.0.2 and v27.0.2

StackTrace.txt
BugRepro.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions