maui icon indicating copy to clipboard operation
maui copied to clipboard

Crash when using a ListView in a RelativeLayout

Open ryanaw83 opened this issue 3 years ago • 3 comments

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

  1. Create a blank MAUI project and add a new ContentPage
  2. In the new page add a reference to the compatibility namespace xmlns:compatibility="clr-namespace:Microsoft.Maui.Controls.Compatibility;assembly=Microsoft.Maui.Controls"
  3. Add the following code into the new page <compatibility:RelativeLayout> <ListView> </ListView> </compatibility:RelativeLayout>
  4. Add reference in AppShell.xaml to this new page
  5. 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)

ryanaw83 avatar Aug 22 '22 22:08 ryanaw83

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?

jfversluis avatar Aug 23 '22 18:08 jfversluis

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.

ghost avatar Aug 23 '22 18:08 ghost

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>

ryanaw83 avatar Aug 25 '22 18:08 ryanaw83

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.

ghost avatar Nov 18 '22 15:11 ghost

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.

ghost avatar Nov 22 '22 16:11 ghost