-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Android] App crashes when changing tabs in Shell TabBar #17568
Comments
Here is a reproduction video: |
Hi @RandomMauiDev. 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. |
If you could create a small reproduction project, that will make it easier for anyone to debug and diagnose and make sure we're working on the same issue at hand. I know it can be a pain, but it really helps a lot to do. |
Here is the reproduction project: You can also see here that the ListView scrolling is really slow. It could be because of a lot of labels used, but using single label with FormattedString and Spans is even slower. When you scroll up and down and switch tabs fast it can also happen that the page completely disappears. I think it has something to do with page "resetting" or "reloading" when you change tabs. |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Verified this issue with Visual Studio 17.10.0 Preview 1. Can repro on Android platform with sample project. |
Description
App is using AppShell + TabBar with two tabs.
Inside one tab there is a button that opens up a new page in the tab.
On that page I have a ListView with around 50 items (any number that would cause ListView's scroll to be junky would do), and items are a bit complex, but not too much.
ViewCell visual tree is as follows:
Basically a shopping list item with a image, and name/price/discount etc. etc.
These labels could have been replaced by FormattedString and Span-s, but doing so makes the ListView scroll super slow.
Swapping tabs between this page with the ListView and some other tab, while also scrolling the ListView fast will cause the app to crash after doing so for 5-6 times (maybe more, depends).
Error on crash:
I also reported another issue regarding a page in a TabBar's tab:
#17566
I think they might be related, feels like the page in the tab gets "reset" somehow when swapping tabs.
This issue is a blocker for the app I am working on so any help or workaround would be appreciated.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/RandomMauiDev/MauiAndroidListViewBug
Version with bug
7.0.92
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: