Open BenDTU opened 2 months ago
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I can repro this issue at iOS platform on the latest 17.11.0 Preview 7.0 (8.0.80 & 8.0.0-rc.1.9171), but not repro at .NET 7.
@BenDTU looking at your sample it looks like you are just setting the MainPage
In order to do multi window you'll need to override createwindow to handle the multiple pages https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/windows?view=net-maui-8.0#create-a-window
@BenDTU looking at your sample it looks like you are just setting the
MainPage
In order to do multi window you'll need to override createwindow to handle the multiple pages https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/windows?view=net-maui-8.0#create-a-window
Overriding CreateWindow as the example there didn't seem to make any difference, the same crash occurs on closing the app.
Description
A Maui app that is using defined 'UISceneConfigurations' will crash with the error "System.InvalidOperationException: Window was already destroyed" when it is force-closed from the app-switcher. This occurs when running locally and is also reported as a crash in TestFlight.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/BenDTU/MauiUISceneConfigurationCrash
Version with bug
8.0.80 SR8
Is this a regression from previous behavior?
Yes - this crash does not occur on the latest .NET 7 Maui release
Last version that worked well
7.0.101
Affected platforms
iOS
Affected platform versions
Tested on latest iOS
Did you find any workaround?
No - I am unsure what I could do differently, this setup was used from a Maui CarPlay tutorial, but is reproducible without the CarPlay specific code
Relevant log output
No response