-
Notifications
You must be signed in to change notification settings - Fork 519
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
App Crash upon launch in microsoft.net.sdk.ios version 17.2.8078 #20910
Comments
Roll back has stopped the startup crash.
|
Do you have |
So I saw discussion around that on Discord and the other ticket, I don't have that but do use MTouchInterpreter to AOT everythig except a few Dlls...
The 'full' settings are here (this was ported from Xamarin and the project has been ongoing for years so this is a bit of a frankenstein list of settings....)
|
Ok, I just wanted to check if it is not possibly a duplicate of: dotnet/maui#23577 Would it be possible for you to provide a smaller repro project? On the other hand, regarding getting the crash reports and the
|
Just wanted to chime in here. The same happened to us for .Net Maui Blazor Hybrid app built with ABP Framework. We built a version on July 4 and everything was fine. We had to do another build on July 10 and then it started having these symptoms of startup crash. Thinking it was the latest changes, I went and tried to build the same code we built previously on the 4th to end up with a crashing app as well. After a few hours of digging and log pipeline analysis, we figured out the iOS workloads changed from It took a while but I did end up, after several hours again, to find the undocumented Gladly we didn't have to make a hotfix release at this time, otherwise, this would have been catastrophic. Launching on a USB Connected iPhone from Visual Studio 2022 was still working fine, it was only when building on Azure DevOps that the resulting build was crashing, if that can help in any way. |
We experienced a similar crash in our project after the merge of a big PR. Only in Release mode and it would also disappear if we used a rollback file to revert the workload back to 17.2.8022. @ivanpovazan gave the hint to try setting
To our defense: ListSortOption is a generic class ( Since that smelled, I introduced a new (stupid) Interface to ListSortOption:
Simplifying the previous property in our SortControl:
This now successfully runs with the latest workload version 17.2.8078 and does not crash anymore. To summarize:
UPDATE |
@DDHSchmidt thats a great finding! I am glad you managed to find what was causing the crash. Would you mind sharing the exact message in the logs regarding:
I would really like to try to create a smaller repro and identify where the issue is coming from, so we can look into how we can improve handling of such constructs and prevent this from happening again. |
Sorry for the late reply.
Incidentally: The last line was also the last line ever from my app process. All the following lines were about some internal iOS processes that output info about my app process being terminated. In hindsight: Our SortControl was not explicitly mentioned in these log lines. I remembered that wrong. |
To all of those experiencing this crash, and just to narrow down what's happing, does interpreting all assemblies make the crash go away? In other words, does this resolve the crash? <MtouchInterpreter>all</MtouchInterpreter> |
Hi @IainS1986. We have added the "need-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. |
I just noticed this from a previous comment:
So I believe this is a different variation of #20848, where disabling code deduplication with AOT ended up causing crashes. AOT code deduplication will be re-enabled again in the next service release, so it's possible this crash will be fixed then. However, AOT code deduplication is an optimization, which means disabling it shouldn't cause a crash. Thus I believe there's still an underlying issue here, even if the crash itself is gone after the next service release. Unfortunately these kind of AOT compiler issues can be really hard to reproduce without a complete test project (I talked to @ivanpovazan and he wasn't able to create a test case with the information given so far), so that's what I'm asking for: a complete project/solution we can use to reproduce the crash (this can be your full project (sent to us privately if that's preferrable) it doesn't have to be a minimized test project). |
Hi @IainS1986. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you. |
This being raised as I saw someone mention similar in this ticket #20848 and I believe we are seeing the same behavior.
Builds on Dev ops on the 5th July were working fine, a build then on 12th july onwards (including building the exact same commit point) crash on launch.
At first I assumed it was an apple certificate issue (something expiring) and was even about to go commit by commit doing builds but then saw someone mention in the issue above that they too are now seeing crashes on startup.
The build that worked fine had the following workloads....
The build that now crash on startup...
Also just to note with regards to the Slow/Large builds in the ticket above (#20848) we've been experiencing this since we ported to .net around March time. Our ipa went up about 50% in size and our builds regularly take an hour. I noticed the person in that ticket was on a very old version, so the longer build times i'm not convinced were intorduced in 8078.
I'm trying to get crash logs from the device to see why the app is actually dying at startup - but I can't actually see any crash logs on the device - the app seems to be dying without a crash log being created. I've tried attaching the console and getting output - but its not easy to see what might be relevant - theres nothing obvious but theres a lot of noise.
The text was updated successfully, but these errors were encountered: