-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
NRE with Essentials Preferences on Windows #5951
Comments
As mentioned in your linked issue, it should definitely be possible to get the right exception shown that gives you a bit more to work with. It seems subsequently it throws a good old COM exception because the underlaying layer is WinUI. Either try to tweak your exception settings or run the same on maybe Android to see if it shows up there as well and it gives you a bit more information. Although I understand that you say this is in a big codebase and it's hard to get us a reproduction, that also makes it very hard to diagnose this and say with confidence that this is actually a bug in our codebase. That makes this issue very hard to make actionable. From the stack trace it seems to have something to do with the preferences that you're trying to save. Do you have any relevant code around that? Would you be able to take that code and put it in a separate project and see if you can reproduce it that way? |
Hi @david-maw. 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. |
Thanks, I'll go ahead and close this one on the assumption that #6034 is a reproducible test case of this same issue and it looks like the error is caused by something local. (exceptions configuration perhaps). |
Description
While testing a fairly large complex app in MAUI it faults navigating away from a page.
Steps to Reproduce
I can reproduce this but cannot provide a reproducible test case because I cannot figure out what exactly is triggering it and the failure I see is within a large body of code.
I've attached a stack trace that I think is immediately before the failure but I suspect the actual failure is in native code because I see this when it fails:
I'm not sure how to request debug of native code in VS2022 but it would be helpful if the .NET stack were visible after a failure like this rather than just exiting the program when the dialog above and the "select another debugger" dialogs are dismissed.
Version with bug
Preview 14 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows, I was not able test on other platforms
Affected platform versions
Windows 10
Did you find any workaround?
No.
Relevant log output
The text was updated successfully, but these errors were encountered: