-
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
[regression/8.0.0-preview.3.8149] Crash when using NavigationPage.TitleView (Java.Lang.IllegalStateException: The specified child already has a parent) #16499
Comments
Hi @tranb3r. 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. |
Hi @tranb3r. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. 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. |
Here is a repro: https://github.com/tranb3r/Issues/tree/main/MauiAppDontKeepActivities Steps to reproduce:
This is happening when the MainPage sets the NavigationPage.TitleView. This is a regression in net8. |
Hi @tranb3r. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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. |
I've just tested my sample app with net8-pre7 and I can still reproduce the issue. |
Confirmed that this was a regression between 8.0.0-preview.2.7871...8.0.0-preview.3.8149. Not sure which PR is the culprit. #13879 is the most sus to me. |
Also, still repros in pre7. |
Any update? Thanks |
Still happening in RC1. |
Description
When using NavigationPage.TitleView, an app crashes when being launched again after it has been killed by the system.
Here is the exception:
Java.Lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
Steps to Reproduce
Link to public reproduction project repository
Repro
Version with bug
8.0.0-preview.3.8149
Last version that worked well
8.0.0-preview.2.7871
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: