iOS Memory issue
Description
I migrated a Xamarin Forms project to .NET MAUI, now the app works fine in simulator but not in real iOS device. When navigate from homepage to a detail page, it will crash and logs a single line message (shown below). Try catch cannot catch anything, so i use profiling. my-dev-port2_20240104_133503.speedscope.zip
This crash cant reproduce and I couldnt provide any sample project.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
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
No response
Did you find any workaround?
No
Relevant log output
error: * Assertion at /Users/runner/work/1/s/src/mono/mono/utils/lock-free-alloc.c:145, condition `sb_header' not met, function:alloc_sb, Failed to allocate memory for the lock free allocator
Application terminated (with exit code '' and/or crashing signal '6).
Unless something jumps out at somone on the MAUI team as an issue looking at that speedtrace, I think we should need more information to diagnose this. I think you have a ListView on the page, so maybe a reproduction of what that view is? Or what your templated cell(s) are? Or what your view model does?
Having a reproducible sample would really help, though.
Hi @NXDMN. 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.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.