-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 crashes on release mode when performing a .Sum on a List of 20k+ items #97625
Comments
I checked out your project and I couldn't reproduce a crash on simulator nor device with Release mode. I also created a generic iOS project using your code and couldn't get it to crash there either. If there is a crash, in all likelihood, it would be a runtime issue rather than a MAUI UI issue, but seeing that in your app, CollectionView was causing the UI to perform very poorly and at a low framerate, my guess is that control might be causing more issues that could lead to whatever crash you're having. Could you try my repro project and see if that crashes on your device. @rolfbjarne Would you know of more ways to get more information about this crash this user is having? |
Hi @andyx48. 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. |
Either of these (preferrably both) could be useful: |
Hey @drasticactions, I tried with your repro project, and is also crashing for me in release mode using my physical device iPhone XS Max iOS Version 17.2. RPReplay_Final1706217849.MP4 |
Unfortunately the native stack trace isn't all that helpful, because native symbols were stripped:
Can you add the following to the csproj, try again and get an updated crash report? <PropertyGroup>
<NoSymbolStrip>true</NoSymbolStrip>
</PropertyGroup> That should make the stack trace better. BTW the device log didn't show anything useful, so there's no need to get an updated version of that. |
Hi @andyx48. 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. |
No problem, here the crash report with |
OK, that's a better crash report:
|
I can reproduce the crash, and this looks like something for dotnet/runtime. |
Crash in lldb:
|
FWIW I reproduced using @drasticactions's project: https://github.com/drasticactions/MauiRepros/tree/main/GenericCrash, and building it like this:
|
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger, @kotlarmilos Issue DetailsDescriptionOur production app is crashing without leaving any stacktrace when performing a .Sum or .Average on a List of ~20k items in release mode. When manually performing the operation in a foreach instead of using .Sum, works as expected. I have also tried to replicate the .Sum method on my code to see where the issue arises, and it seems that the use of Generics is what is making the app to crash, when changing the generics data types to defined data types, the app does not crash. I have attached a basic reproduction app. Steps to Reproduce
Expected result: Actual results: Link to public reproduction project repositoryhttps://github.com/andyx48/GenericsCrashRepro Version with bug8.0.3 Is this a regression from previous behavior?Yes, this used to work in Xamarin.Forms Last version that worked wellUnknown/Other Affected platformsiOS Affected platform versionsiOS 15 and up to the latest version Did you find any workaround?No Relevant log outputNo response
|
@vargaz can you please take a look? |
I can reproduce. |
FWIW, these were detected as failures on tvos-arm64 runs and relevant tests got disabled in #97511 As @charlesroddie suggested the tracking issue is: #97224 |
…ned_call (). Fixes dotnet#97625.
@vitek-karas since this was hit in .net 8, it would make sense to backport #97721. What do you think? |
I agree - especially since it was customer reported. It should be easy to make the case to get this to servicing. |
…ono_gsharedvt_constrained_call (). (dotnet#97721) Fixes dotnet#97625.
Description
Our production app is crashing without leaving any stacktrace when performing a .Sum or .Average on a List of ~20k items in release mode.
When manually performing the operation in a foreach instead of using .Sum, works as expected.
I have also tried to replicate the .Sum method on my code to see where the issue arises, and it seems that the use of Generics is what is making the app to crash, when changing the generics data types to defined data types, the app does not crash.
I have attached a basic reproduction app.
Steps to Reproduce
Expected result:
To perform the sum of the items.
Actual results:
The app crashes when attempting to perform the operation, but only on Release mode, works as expected when on Debug mode
Link to public reproduction project repository
https://github.com/andyx48/GenericsCrashRepro
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15 and up to the latest version
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: