stream-chat-android
stream-chat-android copied to clipboard
Crash on MediaGalleryPreviewActivity: Missing messageId necessary to load images.
Describe the bug
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{REDACTED/io.getstream.chat.android.compose.ui.attachments.preview.MediaGalleryPreviewActivity}: java.lang.IllegalArgumentException: Missing messageId necessary to load images.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
SDK version
- 6.0.10
To Reproduce Steps to reproduce the behavior: unknown, but I have a feeling it happens when opening the media gallery
Expected behavior No crash happens
Device:
- Vendor and model: Google Nexus 5X only, apparently
- Android version: 8 and 11 only, apparently
Screenshots
Hey @matteinn,
Could you please check if it still replicates for you on v6.5.0?
Hello! I confirm this is still happening at scale with 6.5.0, I can't reproduce on my own though
Hi @matteinn , Can you please check if it's still reproducible with one of the latest releases? Thanks
Hi @andremion , still happening on 6.10.0
Hi @matteinn , Unfortunately, I am unable to reproduce the problem on my end. To help us investigate further, could you please provide all the necessary steps to reproduce it? Thanks,
No, sadly I can't reproduce either but it seems to happen at scale (not even large, we are talking about few thousands of monthly active users)
Do you know if those users have low-end devices?
Good call, apparently it's only happening on 22 different Google Nexus 5X on Android 13 and 8.1.0. Maybe this comes from the automated tests performed by the google play store when releasing new app versions, but I'm not sure.
Can you confirm if those crashes come from actual users? Are they constantly happening?
Can you confirm if those crashes come from actual users? Are they constantly happening?
I can't guarantee that, it's weird that it only appeared on 30 different Nexus 5X devices on Android 13 in the past 90 days.
OK. I will close this ticket for now since no one can reproduce it. Feel free to reopen it in case you find out how to reproduce it. Thanks,