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.

[Bug] [iOS] [Shell] "Nav Stack consistency error" #8461

Closed
@dmariogatto

Description

@dmariogatto

Description

I am getting an exception report in AppCenter, "Nav Stack consistency error". Occurring in all versions of XForms (including nightly, was hoping #8135 might have helped but no effect).

Multiple versions of iOS (13, 12 & 11), affecting about ~5% of users. I have not been able to replicate and have no way to reach out to users to get retry steps.

IShellSectionController.SendPopping (Xamarin.Forms.Page page)
ShellSectionRenderer.SendPoppedOnCompletion (System.Threading.Tasks.Task popTask)
AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state)
NSAsyncSynchronizationContextDispatcher.Apply ()
(wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate)
UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
Application.Main (System.String[] args)

Steps to Reproduce

I have a TabBar setup in my AppShell. Three tabs with only a single content page as the child. In the Shell's constructor I also register some modal routes, which I navigate to using Shell.GoToAsync(). I do not trigger navigation in any other way, nor do I pop anything off the stack manually.

Expected Behavior

Obviously I could be at fault here, but it would be helpful if the exception contained some more information to aid in debugging. Possibly the name of the page it's trying to pop (when available) and the current state of the navigation stack.

Actual Behavior

Generic exception, which is difficult to debug/troubleshoot.

Basic Information

  • Version with issue: All (including nightly)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions