stream-chat-android icon indicating copy to clipboard operation
stream-chat-android copied to clipboard

Crash on MediaGalleryPreviewActivity: Missing messageId necessary to load images.

Open matteinn opened this issue 1 year ago • 2 comments

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

Screenshot 2024-01-15 at 13 56 58

matteinn avatar Jan 15 '24 12:01 matteinn

Hey @matteinn,

Could you please check if it still replicates for you on v6.5.0?

kanat avatar Sep 25 '24 15:09 kanat

Hello! I confirm this is still happening at scale with 6.5.0, I can't reproduce on my own though

matteinn avatar Sep 25 '24 15:09 matteinn

Hi @matteinn , Can you please check if it's still reproducible with one of the latest releases? Thanks

andremion avatar Mar 11 '25 11:03 andremion

Hi @andremion , still happening on 6.10.0

matteinn avatar Mar 11 '25 14:03 matteinn

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,

andremion avatar Mar 13 '25 13:03 andremion

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)

matteinn avatar Mar 13 '25 13:03 matteinn

Do you know if those users have low-end devices?

andremion avatar Mar 13 '25 13:03 andremion

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.

matteinn avatar Mar 13 '25 14:03 matteinn

Can you confirm if those crashes come from actual users? Are they constantly happening?

andremion avatar Mar 31 '25 15:03 andremion

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.

matteinn avatar Mar 31 '25 15:03 matteinn

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,

andremion avatar Mar 31 '25 16:03 andremion