-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App.UnhandledException on XamarinFormsNav.PopAsync(true) #18467
Comments
same ExceptionHelpers.g__Throw|39_0 (Int32 hr)System.Runtime.InteropServices.COMException
|
@bengiles I figured out a solution to my problem btw. I forgot to ever update my comment. My issue specifically happens when you get to a page by calling To solve this, we did _loadingPopup = new LoadingPopup(message ?? " ");
if (Application.Current != null)
{
if (Application.Current.MainPage != null)
{
Page mainPage = Application.Current.MainPage;
if (mainPage.Navigation.ModalStack.Count == 0)
{
mainPage.ShowPopup(_loadingPopup);
}
else
{
IReadOnlyList<Page> stack = mainPage.Navigation.ModalStack;
stack[stack.Count - 1].ShowPopup(_loadingPopup);
}
}
} My issue was specific to the Popups from the Maui community toolkit, but I'm guessing that doing most actions to |
I haven't looked through the Maui Community Toolkit's issues to see if this is reported, or known. If there isn't one, then I can create an issue with some reproducible steps related to the |
Hi @sjorsmiltenburg. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
I have a semi-reproducable blocking bug in my main app where, when I navigate back on certain views and I get a
UnhandledException with Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled.
Inner Exception Message = "Catastrophic failure (0x8000FFFF (E_UNEXPECTED))"
caught in the App.UnhandledExceptionEventHandler
However afterwards it also hits my catch block where I see the exception as a
"Error HRESULT E_FAIL has been returned from a call to a COM component" when calling XamarinFormsNav.PopAsync(true);
with the call stack mentioned below
If I swallow this exception there is still a view on the navstack, but visually I end up in an empty looking view (blank page with no controls)
Steps to Reproduce
I'm unable to pinpoint what exactly is causing this.
Link to public reproduction project repository
No response
Version with bug
8.0.0-rc.2.9373
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
no
Relevant log output
The text was updated successfully, but these errors were encountered: