-
Notifications
You must be signed in to change notification settings - Fork 281
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
ChannelsScreen crashes when isLoadingMore=true #5052
Comments
Thank you for reporting the issue. We are working on a fix and it should be available very soon. |
Any updates on when you release the fix? |
Sorry we thought it was fixed recently, but we still see |
Any news if there will be a fix? |
It seems like the alpha version of the compose foundation library caused the issue. I don't know if the SDK works with the current stable version 1.6.0 (can't update due to other issues). |
Describe the bug
Hi. I use
ChannelsScreen
composable on one of the application screens.I have 4 chats and when I open the channels screen I briefly see a loading indicator at the bottom of the channels list and then the app crashes with the error
IndexOutOfBoundsException
.I suspect it's related to
isLoadingMore
inio.getstream.chat.android.compose.ui.channels.list.Channels
.However, I don't think that it should try to load more channels because I have only 4 of them.
I tried to isolate the issue, moved the composable out of the navigation graph, and reverted to the previous compose version but it still crashed the app.
Please help me to identify the issue, I use lazy layouts in other places but the app crashes only when I open the channels list.
Versions of dependencies:
agp = "8.1.2"
kotlin = "1.9.10"
compose-bom = "2023.10.01"
SDK version
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No crash.
Device:
Screenshots
None.
The text was updated successfully, but these errors were encountered: