Skip to content
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

Scrollview content becoming hidden and application crash #27158

Closed
Eskissimo opened this issue Jan 15, 2025 · 12 comments
Closed

Scrollview content becoming hidden and application crash #27158

Eskissimo opened this issue Jan 15, 2025 · 12 comments
Labels
area-controls-scrollview ScrollView platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Eskissimo
Copy link

Description

Hello,

On some phones (seems to be reproducible on android-arm phones), if I add an item to a BindableLayout in a scrollview items disappear and then they reappear and finally application crash.

Tested on: Samsung SM-A137F (Galaxy A13)
Similar issue: List View content becomes invisible In Window platform : #26842

Sample project: MauiAppBindable.zip
Android log: android log.zip
Video: https://github.com/user-attachments/assets/9a08625b-4b5c-4b78-a8cc-6d5de57752af

Regards.

Steps to Reproduce

Launch sample project and tap "Add one item" many times.

Link to public reproduction project repository

No response

Version with bug

9.0.30 SR3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.100 SR10

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

No

Relevant log output

@Eskissimo Eskissimo added the t/bug Something isn't working label Jan 15, 2025
@Ying-6
Copy link

Ying-6 commented Jan 16, 2025

This issue has been verified Visual Studio Code 1.96.3 (9.0.30 & 9.0.22) about 5 times. Can not repro this issue on Android-arm emulator and Samsung SM-S9010(Galaxy S22).
I want to confirm with you: Is your issue reproducible stably? Is it only repro on arm-android devices? Could you try it on an android emulator to see if it can be reproduced? Looking forward to your reply!

@Ying-6 Ying-6 added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version platform/android 🤖 labels Jan 16, 2025
@Eskissimo
Copy link
Author

Eskissimo commented Jan 17, 2025

Hello,

I want to confirm with you: Is your issue reproducible stably?

On my Samsung SM-A137F phone, I reproduce both issues every time like the video.
The application is used by thousands users, and some other phones have the issue like on Samsung SM-A325F (Galaxy A32)

@dotnet-policy-service dotnet-policy-service bot removed the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Jan 17, 2025
@Eskissimo
Copy link
Author

Eskissimo commented Jan 17, 2025

The application crash when I add the 228th item with this emulators settings:

Image

Image

Log: log-api21.txt

@Ying-6
Copy link

Ying-6 commented Jan 17, 2025

About the application crash, verified it using Visual Studio 17.13.0 Preview 2.1 (9.0.30 & 9.0.22). Can repro on Android API 21 emulator, but not repro on API-35 emulator.

@Ying-6 Ying-6 added the s/verified Verified / Reproducible Issue ready for Engineering Triage label Jan 17, 2025
@Eskissimo
Copy link
Author

Unfortunatly, despite many tries, I can't create an emulator to reproduce the problem of items disappearing. I'm on Windows so I couldn't test the configurations with ARM processors.

@Eskissimo
Copy link
Author

If it can help the issue can be reproduce on Samsung A336B (Galaxy A33)

@jsuarezruiz
Copy link
Contributor

If it can help the issue can be reproduce on Samsung A336B (Galaxy A33)

API Level?

@jsuarezruiz jsuarezruiz added the s/needs-info Issue needs more info from the author label Feb 3, 2025
@Eskissimo
Copy link
Author

If it can help the issue can be reproduce on Samsung A336B (Galaxy A33)

Android 13 (API level 33)

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Feb 3, 2025
@jsuarezruiz
Copy link
Contributor

01-15 17:58:45.556	Samsung SM-A137F	Error	11264	DEBUG	(Throwable with empty stack trace)
01-15 17:58:45.556	Samsung SM-A137F	Error	11264	DEBUG	Abort message: 'JNI DETECTED ERROR IN APPLICATION: JNI CallStaticBooleanMethodV called with pending exception java.lang.IllegalStateException: Unable to create layer for ContentViewGroup, size 1024x16384 max size 16383 color type 4 has context 1
01-15 17:58:45.556	Samsung SM-A137F	Error	11264	DEBUG	signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
01-15 17:58:45.556	Samsung SM-A137F	Error	11264	DEBUG	uid: 10595
01-15 17:58:45.556	Samsung SM-A137F	Error	11264	DEBUG	pid: 11198, tid: 11227, name: RenderThread  >>> com.companyname.mauiappbindable <<<
01-15 17:58:45.556	Samsung SM-A137F	Error	11264	DEBUG	Cmdline: com.companyname.mauiappbindable
01-15 17:58:45.556	Samsung SM-A137F	Error	11264	DEBUG	Process uptime: 25s
01-15 17:58:45.555	Samsung SM-A137F	Error	11264	DEBUG	Timestamp: 2025-01-15 17:58:44.459359090+0100
01-15 17:58:45.555	Samsung SM-A137F	Error	11264	DEBUG	Processor: '6'
01-15 17:58:45.555	Samsung SM-A137F	Error	11264	DEBUG	ABI: 'arm'
01-15 17:58:45.555	Samsung SM-A137F	Error	11264	DEBUG	Revision: '2'
01-15 17:58:45.555	Samsung SM-A137F	Error	11264	DEBUG	Build fingerprint: 'samsung/a13venseea/a13ve:14/UP1A.231005.007/A137FXXU8EXK1:user/release-keys'
01-15 17:58:45.555	Samsung SM-A137F	Error	11264	DEBUG	*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

@jsuarezruiz
Copy link
Contributor

@Eskissimo If you are going to use a BindableLayout with a large number of elements, I recommend switching to using CollectionView. Remember, the Layout does not use virtualization or recycling cells etc.

@jsuarezruiz jsuarezruiz added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Feb 4, 2025
@Eskissimo
Copy link
Author

@jsuarezruiz I understand for the crash, but the main issue is elements becomes hidden.

I know CollectionView is better, but I can't use it because i have an user interface which already have a parent scrollview (the real UI is more complex than the sample project).

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Feb 4, 2025
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Feb 7, 2025
@jsuarezruiz jsuarezruiz removed the s/needs-attention Issue has more information and needs another look label Feb 7, 2025
@Eskissimo
Copy link
Author

The issue is solved with the version 9.0.40 SR4.

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-scrollview ScrollView platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants