Skip to content
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

iOS app crashing on device at startup with .NET 8 preview 5 #15673

Closed
jmezach opened this issue Jun 15, 2023 · 11 comments
Closed

iOS app crashing on device at startup with .NET 8 preview 5 #15673

jmezach opened this issue Jun 15, 2023 · 11 comments
Labels
platform/iOS 🍎 s/needs-attention Issue has more information and needs another look t/bug Something isn't working

Comments

@jmezach
Copy link

jmezach commented Jun 15, 2023

Description

It seems that with .NET 8 preview 5 (and possibly earlier previews) a brand-new .NET MAUI iOS app crashes at startup on an iOS Device running iOS 12.5.5.

Steps to Reproduce

  1. Run dotnet new maui -o MauiApp1
  2. Run dotnet build -t:Run -f net8.0-ios -p:RuntimeIdentifier=ios-arm64 -p:_DeviceName=<device-id-of-ios-device-with-12.5.5>
  3. App crashes with the following error: error: * Assertion at /Users/runner/work/1/s/src/mono/mono/utils/mono-hwcap-arm64.c:28, condition `res == 0' not met

Link to public reproduction project repository

https://github.com/jmezach/MauiApp8CrashRepro

Version with bug

8.0.0-preview.5.8529

Last version that worked well

7.0.86

Affected platforms

iOS

Affected platform versions

iPhone OS 12.5.5

Did you find any workaround?

No response

Relevant log output

No response

@jmezach jmezach added the t/bug Something isn't working label Jun 15, 2023
@drasticactions
Copy link
Contributor

Did you try deploying a non-MAUI UI iOS app with that SDK to see what it does?

Try running

dotnet workload install ios
dotnet new ios

and run the resulting program.

@drasticactions drasticactions added the s/needs-info Issue needs more info from the author label Jun 16, 2023
@ghost
Copy link

ghost commented Jun 16, 2023

Hi @jmezach. 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.

@drasticactions
Copy link
Contributor

CC @rolfbjarne, have you seen this before?

@rolfbjarne
Copy link
Member

CC @rolfbjarne, have you seen this before?

Yes, I believe it'll be fixed by dotnet/runtime#87189.

I believe .NET 8.0.100-preview.6.23315.27 or later should have the fix.

@jmezach
Copy link
Author

jmezach commented Jun 16, 2023

@drasticactions I'll have to get back to you on that next week as I'm currently working from home and don't have the iOS device running this version with me, it is in the office.

@rolfbjarne That issue specifically talks about Mac Catalyst which is a different OS afaik than iOS.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Jun 16, 2023
@rolfbjarne
Copy link
Member

@rolfbjarne That issue specifically talks about Mac Catalyst which is a different OS afaik than iOS.

That's correct, but they're very similar, and that code is specific to ARM64, which applies to both iOS and Mac Catalyst.

It's also exactly the assert message I was getting on Mac Catalyst.

@jmezach
Copy link
Author

jmezach commented Jun 16, 2023

@rolfbjarne Thought so, just wanted to check. We'll give it another try when preview 6 ships to see if that fixes our issue and report back here. Thanks for the quick reply!

@gabsamples6
Copy link

@rolfbjarne @drasticactions Hi not sure if same issue but any new iOS app I run in preview 5 .net 8 attached to a physical device I get error. Just launch a brand new app from template in iOS attached to a physical device and I get
image

Is it me ? Can you run any iOS attached to a device?

@rolfbjarne
Copy link
Member

Hi not sure if same issue but any new iOS app I run in preview 5 .net 8 attached to a physical device I get error. Just launch a brand new app from template in iOS attached to a physical device and I get

That's a known issue in preview 5 that we unfortunately were not able to fix before it went out. It'll be fixed in preview 6.

@gabsamples6
Copy link

@rolfbjarne Thank you for your prompt reply - these days is very much appreciated

@jmezach
Copy link
Author

jmezach commented Jul 12, 2023

We just tried preview 6 and can confirm that this issue appears to be fixed. However we've found a new bug as described in #16097.

@jmezach jmezach closed this as completed Jul 12, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/iOS 🍎 s/needs-attention Issue has more information and needs another look t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants