-
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
Crash on iOS when initializing a TabbedPage without children #22633
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
same problem here. quite a critical issue for us. |
this IS an issue and it is not the same as the ones your bot found - please reopen this issue! |
also getting this crash on iOS 8.0.40 |
Description
In our app we use a TabbedPage.
We have a NavigationService that dynamically adds pages to this TabbedPage.
We start with an empty TabbedPage, the Child pages are added asynchronously during startup.
This causes a crash on iOS in version 8.0.40.
On Android it does still work.
Steps to Reproduce
Create an empty TabbedPage like this:
Set this TestTabbedPage as the MainPage in app.xaml.cs:
When you run this now, on iOS this will cause a crash (Android will not crash and show an empty TabbedPage).
To simulate our NavigationService that will asynchronously add child pages to the TabbedPage, use this in the codebehind:
The app crashes on iOS, on Android it does work (showing a tabbedpage with the 2 child pages).
Link to public reproduction project repository
No response
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.21 SR4.1
Affected platforms
iOS
Affected platform versions
iOS 17.4.1
Did you find any workaround?
As a workaround, add a dummy child page and delete it when adding the pages from the NavigationService:
Relevant log output
The text was updated successfully, but these errors were encountered: