maui
maui copied to clipboard
Crash when using a ListView in a RelativeLayout
Description
The application crashes when loading a page (from AppShell) that has a ListView inside of a RelativeLayout (Compatibility). This happens every time.
Steps to Reproduce
- Create a blank MAUI project and add a new ContentPage
- In the new page add a reference to the compatibility namespace
xmlns:compatibility="clr-namespace:Microsoft.Maui.Controls.Compatibility;assembly=Microsoft.Maui.Controls" - Add the following code into the new page
<compatibility:RelativeLayout> <ListView> </ListView> </compatibility:RelativeLayout> - Add reference in AppShell.xaml to this new page
- Navigate to the new page
Version with bug
6.0.401-servicing.22414.1
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 and up
Did you find any workaround?
No workaround
Relevant log output
[] * Assertion: should not be reached at /__w/1/s/src/mono/mono/mini/mini-exceptions.c:456
[libc] Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6772 (ontus.maui.test), pid 6772 (ontus.maui.test)
Hey there, thanks for the report! Could you maybe also try to use the compatibility ListView? Does that make it better? If not, do you have any error messages or the stack trace from the exception that you see? Or can you add a reproduction so we can have a look?
Hi @ryanaw83. 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.
I don't see where there is a compatbility ListView... what namespace/library is it? This is easy to reproduce though: by simply creating a new MAUI project and adding the below code it crashes the app
<compatibility:RelativeLayout> <ListView></ListView> </compatibility:RelativeLayout>
Hi @ryanaw83. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
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 to reproduce the issue 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.