The page has not been pushed yet or has been removed already Error in Dialog
See original GitHub issue🐛 Bug Report
System.InvalidOperationException: The page has not been pushed yet or has been removed already
at Rg.Plugins.Popup.Services.PopupNavigationImpl.RemovePageAsync (Rg.Plugins.Popup.Pages.PopupPage page, System.Boolean animate) [0x00052] in C:\projects\rg-plugins-popup\src\Rg.Plugins.Popup\Services\PopupNavigationImpl.cs:128
at XF.Material.Forms.UI.Dialogs.BaseMaterialModalPage.DismissAsync () [0x00011] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\Dialogs\BaseMaterialModalPage.cs:55
at XF.Material.Forms.UI.Dialogs.BaseMaterialModalPage.ShowAsync () [0x0008f] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\Dialogs\BaseMaterialModalPage.cs:144
at XF.Material.Forms.UI.Dialogs.MaterialSimpleDialog.ShowAsync (System.String title, System.Collections.Generic.IEnumerable1[T] actions, XF.Material.Forms.UI.Dialogs.Configurations.MaterialSimpleDialogConfiguration configuration) [0 x0006e] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\Dialogs\MaterialSimpleDialog.xaml.cs:35 at XFMaterialSample.MainPage.MaterialButton_Clicked_1 (System.Object sender, System.EventArgs e) [0x001e1] in E:\Mobile apps samples\XFMaterialSample\XFMaterialSample\MainPage.xaml.cs:76 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021 at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/Foundation/NSAction.cs:178 at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xama rin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/UIKit/UIApplication.cs:86 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/UIKit/UIApplication.cs:65 at XFMaterialSample.iOS.Application.Main (System.String[] args) [0x00001] in E:\Mobile apps samples\XFMaterialSample\XFMaterialSample.iOS\Main.cs:17 2019-11-14 12:39:15.881 XFMaterialSample.iOS[881:366919] Unhandled managed exception: The page has not been pushed yet or has been removed already (System.InvalidOperationException) at Rg.Plugins.Popup.Services.PopupNavigationImpl.RemovePageAsync (Rg.Plugins.Popup.Pages.PopupPage page, System.Boolean animate) [0x00052] in C:\projects\rg-plugins-popup\src\Rg.Plugins.Popup\Services\PopupNavigationImpl.cs:128 at XF.Material.Forms.UI.Dialogs.BaseMaterialModalPage.DismissAsync () [0x00011] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\Dialogs\BaseMaterialModalPage.cs:55 at XF.Material.Forms.UI.Dialogs.BaseMaterialModalPage.ShowAsync () [0x0008f] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\Dialogs\BaseMaterialModalPage.cs:144 at XF.Material.Forms.UI.Dialogs.MaterialSimpleDialog.ShowAsync (System.String title, System.Collections.Generic.IEnumerable
1[T] actions, XF.Material.Forms.UI.Dialogs.Configurations.MaterialSimpleDialogConfiguration configura
tion) [0x0006e] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\Dialogs\MaterialSimpleDialog.xaml.cs:35
at XFMaterialSample.MainPage.MaterialButton_Clicked_1 (System.Object sender, System.EventArgs e) [0x001e1] in E:\Mobile apps samples\XFMaterialSample\XFMaterialSample\MainPage.xaml.cs:76
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021
at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/Foundation/NSAction.cs:178
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Framewo
rks/Xamarin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/UIKit/UIApplication.cs:65
Platform:
- 📱 iOS
- 🤖 Android
- 🏁 WPF
- 🌎 UWP
- 🍎 MacOS
- 📺 tvOS
- 🐒 Xamarin.Forms
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top GitHub Comments
To open the popup page Navigation.PushModalAsync instead of Navigation.PushPopupAsync use
Can you please add the steps to reproduce.