dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

[regression/8.0.3] MacCatalyst Second Window With BlazorWebView Crashes App #19207

Open mkehoe-Extron opened 11 months ago

mkehoe-Extron commented 11 months ago

Description

When running a blazor hybrid app with multiple window support on MacCatalyst, when the second window is launched, the application will stop responding.

This is not an issue in dotnet 7, only reproducible in dotnet 8. If the BlazorWebView xaml element is removed, there is no issue.

Steps to Reproduce

1) Create Blazor hybrid Maui project with dotnet 8.0. 2) Add multi-window support (add SceneDelegate.cs and update info.plist). 3) Run the application 4) From the App menu bar select File->New to launch a new window.

You will notice the application stops responding.

Link to public reproduction project repository

https://github.com/mkehoe-Extron/MauiMultiWindowBlazorIssue/tree/main

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.49

Affected platforms

macOS

Affected platform versions

MacOs 13.5

Did you find any workaround?

No response

Relevant log output

No response

mkehoe-Extron commented 8 months ago

Retested with 8.0.7, and it is still an issue. Is there any update on this? Seems like this should be a high severity and priority because it's a crash with a documented feature.

ninachen03 commented 7 months ago

I used the Repo project and reproduced the problem in 17.6.9 build(415) on MacCatalyst.