wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.98k stars 1.32k forks source link

Trying to upload images crashes the app #19638

Open joashrajin opened 11 months ago

joashrajin commented 11 months ago

Expected behavior

The app should not be crashing and should allow you to upload/select images

Actual behavior

The app keeps crashing when you try to access the Media Library or select an image from your device.

Steps to reproduce the behavior

https://github.com/wordpress-mobile/WordPress-Android/assets/16253818/12e99fff-2605-43fb-b1c9-34533c2e00ab

  1. Create a new blog post
  2. Attempt to add an image block
  3. Try to select an image from your device or media library, it does not work
Tested on [Samsung Fold 4], Android [13], JPAndroid / WPAndroid [23.7-rc1]
peril-wordpress-mobile[bot] commented 11 months ago
Fails
:no_entry_sign: Please add a type label to this issue. e.g. '[Type] Enhancement'
:no_entry_sign: Please add a feature label to this issue. e.g. 'Stats'

Generated by :no_entry_sign: dangerJS

joashrajin commented 11 months ago

7277111-zd-a8c - crash is in sentry. Link in the ticket

irfano commented 11 months ago

Duplicate of https://github.com/wordpress-mobile/WordPress-Android/issues/19157

derekblank commented 11 months ago

Related issue and discussion:

irfano commented 11 months ago

@joashrajin, can you consistently reproduce this, even after a clean install? The crash logs show a memory-related crash, but I suspect it can be related to permissions, as it crashed before receiving the permission. I can't see a reason that the memory can be the issue without having permission to fetch medias.

joashrajin commented 11 months ago

@joashrajin, can you consistently reproduce this, even after a clean install? The crash logs show a memory-related crash, but I suspect it can be related to permissions, as it crashed before receiving the permission. I can't see a reason that the memory can be the issue without having permission to fetch medias.

Yep, I uninstalled and tried a clean install of v23.3.1 and it works fine. Clean installed 23.4 and the issue started. Updated to the latest beta and the issue persists.

I have tried giving all permissions to the app but that made no difference.

Something interesting is that the crash only occurs on my WP.com sites, not on my Pressable test sites.