-
Notifications
You must be signed in to change notification settings - Fork 4.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
Blazor WASM applications on net8.0 freeze on startup on iOS 18 RC (22A3354) when built with AOT #105893
Comments
Some more data, possibly related, but I'm not entirely sure:
I have sadly not managed to produce any self-contained examples of these issues, which is why I haven't created separate issues for them. The application in question is open source, so I can write reproduction instructions should it become relevant. I'd much rather trace the issue & provide a minimally reproducible example though, as the application is quite large. My gut tells me that all the iOS 18 / Safari TP bugs are related, but the iOS 16 SIMD bug is separate. This is just a hunch, though. |
Traced the SIMD issue, see link in the above comment. Also traced this issue to specifically affect iOS 18 beta 2 and newer, beta 1 appears to be unaffected. |
Since this may be an iOS bug, I filed a radar with Apple (FB14644808) containing a link to this issue. |
On iOS 18.0 beta 5 (22A5326f), this crash seems to only happen sometimes. As a simulator runtime for that build is not yet available, this is from testing on a physical device. When it does freeze/crash, the logs are the same as in the original issue. |
Beta 6 (22A5338b) has the same behavior as Beta 5. |
This is affecting our Blazor WASM application as well. Unfortunately there are additional compilation bugs with .net 9 that prevent us testing if it is fixed there. |
Beta 8 (22A5350a) has the same behavior as Beta 6. |
Still affects the RC (22A3354) |
There’s a solution dotnet/maui#23390 (comment) |
This seems to relate to MAUI, which we are not using. I'm getting quite concerned given that we're less than a week away from public release. |
I also just retested this with SDK 8.0.401 & runtime 8.0.8, same result. |
I'm using Blazor Wasm .Net8 I've added references to Maui WebView and works fine now! |
Hmm, I can't get it (the blazorwasm template project mentioned in the original issue description) to build with that dependency.
Adding another dependency for the Maui components package causes other breakages. |
I just tested our application on .NET 9.0 RC1 and while a simple page works fine, a more complex one causes the same crash. |
Interestingly, I can reproduce that crash on Safari TP Release 203 (Safari 18.0, WebKit 19620.1.6)
|
Oh hold on, this is the same result as I mentioned in the original post. So nothing has changed. |
We have the same problem. iOS 18 crashes with MONO_WASM: Exception marshalling result of JS promise to CS: (dotnet.runtime.8.0.7.e9r13h23hd.js, line 3) The dotnet/maui#23390 (comment) fix does not work with our Blazor WASM application. Many of our iOs users are reporting the problem to us. Would be nice if this problem could be fixed asap. |
Also getting the same issue, occurs on my personal blog website: https://mattparker.dev/. Source code is here: https://github.com/MattParkerDev/MattParkerDev.Blog Running iOS 18.0.1 on an iPhone 14 Pro. Refreshing the page over and over, it will fail ~4/5 times. |
I'm getting the same on our Blazor web app, .NET 8.0.10 SDK and nuget packages, phone on IOS 18.0.1 |
We are having the same Issue in our .Net8 blazor wasm hosted application, it has been in production for over a year and no major changes have been made.
[...] Basically every file with a '.wasm' is returning an Error. |
We have been seeing same thing with our application and only affects iOS18>, but it breaks in all browser types and not only Safari. It also breaks on latest MacOS in safari, but works in other browsers. |
That makes sense, all browsers on iOS use the same WebKit engine internally. |
@radekdoulik Is there any potential work arounds for this? I'm a bit concerned by the .NET 10 milestone for something quite so production critical. |
Any update on this? Having the same issue |
@pavelsavara any chance to get some attention regarding this problem, as it is starting to affect more and more end users as they update to newer versions of ios and MacOS. Tagging you due to area owner of browser. |
For now, we turned off AOT, and that seems to work at least, but we would like this to be fixed eventually. |
IOS 18.1 seems to have fixed it for me. |
I can indeed not reproduce the issue anymore on iOS 18.1 (22B83) 🎉 I did occasionally get the "A problem repeatedly occurred on [site]" message, but I think that's unrelated and happens with non-blazor sites as well, especially when reloading quickly and frequently. |
iOS 18.1 has also resolved for me. |
Description
The Blazor WASM example project, when built against net8.0 with RunAOTCompilation, freezes on startup on iOS 18 Beta 2/3/4 (22A5297f/22A5307f/22A5316j). The same issue does not occur when building against net9.0 (-preview6), or when using iOS 18.0 beta 1 (22A5282m), iOS 17.5 or 16.4. It also doesn't affect Safari Technology Preview for macOS. I've not been able to test it on macOS Beta, as I don't have access to a Mac running the beta.
Reproduction Steps
dotnet new blazorwasm
dotnet publish -p:RunAOTCompilation=true
python3 -m http.server 9000 -b 0.0.0.0 -d bin/Release/net8.0/publish/wwwroot
Expected behavior
The application starts normally
Actual behavior
The application freezes on startup, with the loading indicator stuck at 100%.
The following logs are printed to console:
Regression?
No response
Known Workarounds
No response
Configuration
Tested on the following configuration (net8.0), but the issue also occurs when building on Arch Linux, using SDK 8.0.107 with runtime 8.0.7. Appears to work fine when built against net9.0 using the same configuration.
Other information
No response
The text was updated successfully, but these errors were encountered: