Whatsapp fail to open image

REPRODUCIBILITY (% or how often):
100%
BUILD ID = OS VERSION (Settings > About product):
4.1.0.24
HARDWARE (XA2, X10, X10 II, …):
Xperia XA2
UI LANGUAGE:
Français
REGRESSION: (compared to previous public release: Yes, No, ?):
Yes

DESCRIPTION:

I cannot open image in whatsapp, for reading (if too big> 100Ko) or for sending.
If i open camera to take a photo, camera close after 2-3s.
Bug present since last Whatsapp update.

STEPS TO REPRODUCE:

  1. Open whatsp
  2. open camera
  3. Or try to send image from Gallery

EXPECTED RESULT:

obvious

ACTUAL RESULT:

Whatsapp “reboot” or cancel the action (back to discussion)

ADDITIONAL INFORMATION:

(Please ALWAYS attach relevant data such as logs, screenshots, etc…)
I save Log when whatsapp fail/crash. It’s a very big Log. Some extract :
2021-09-13 20:58:01.234 LL_I W [2:main] statusdownload/cancel-all-status-downloads
2021-09-13 20:58:01.254 LL_I W [2:main] indivcount/count 94
2021-09-13 20:58:01.260 LL_W W [2:main] statusmsgstore/getlaststatusmessage/no status for status_me
2021-09-13 20:58:01.320 LL_I W [2:main] camera/CameraInterface/LiteCameraView/
2021-09-13 20:58:01.335 LL_I W [2:main] imageloader/cachesize:21845
2021-09-13 20:58:01.349 LL_D W [2:main] LiteCamera/resume
2021-09-13 20:58:01.493 LL_I W [2:main] imageloader/cachesize:21845
2021-09-13 20:58:01.582 LL_I W [2:main] mediagalleryfragmentbase/rebake unmounted:false scanning:false
2021-09-13 20:58:01.603 LL_D W [2:main] CameraUI/onBindViewHolder: /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images/IMG-20210912-WA0006.jpg
2021-09-13 20:58:01.650 LL_D W [2:main] CameraUI/onBindViewHolder: /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images/IMG-20210912-WA0005.jpg
2021-09-13 20:58:01.652 LL_D W [2:main] CameraUI/onBindViewHolder: /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images/IMG-20210912-WA0004.jpg
2021-09-13 20:58:01.657 LL_D W [2:main] CameraUI/onBindViewHolder: /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images/IMG-20210912-WA0003.jpg
2021-09-13 20:58:01.657 LL_D W [2:main] CameraUI/onBindViewHolder: /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images/IMG-20210912-WA0002.jpg
2021-09-13 20:58:02.141 LL_D W [2:main] mediagalleryfragmentbase/reported incomplete buckets
2021-09-13 20:58:02.142 LL_D W [2:main] mediagalleryfragmentbase/added 3 incomplete buckets
2021-09-13 20:58:04.671 LL_I W [2:main] app/dt/clear dt=com.whatsapp.HomeActivity@e505f6a dialog_toast=com.whatsapp.HomeActivity@e505f6a
2021-09-13 20:58:04.671 LL_I W [2:main] app/dt/clear done
2021-09-13 20:58:04.675 LL_I W [2:main] com.whatsapp.HomeActivity.onPause
2021-09-13 20:58:04.683 2021-09-13 20:58:05.991 LL_I D [264:Logger (2.21.18.7(314649532))] ==== logfile level=4 tz=+0200 ====
2021-09-13 20:58:05.987 LL_I D [2:main] ==== logfile version=2.21.18.7 level=4====
… [etc.]
2021-09-13 20:58:06.759 LL_I W [2:main] app-init/async/device_info/OS_BUILD_NUMBER QP1A.190711.019 test-keys
2021-09-13 20:58:06.771 LL_I W [2:main] app-init/main/done
2021-09-13 20:58:06.773 LL_I W [283:WhatsApp Worker #1] gdrive-conditions-manager/is-access-possible Google Play services are missing and cannot be installed, status code: service-invalid
2021-09-13 20:58:06.774 LL_D W [2:main] ApplicationCreatePerfTracker/appCreationOnCreateEnd
2021-09-13 20:58:06.776 LL_I W [286:WhatsApp Worker #3] wambuffer/header/init: header=2 bufferCount=3 maxMetadataSize=65536 maxEventBufferSize=65536 currentEventBufferIndex=0 currentEventBufferIndex=0 currentBufferSequenceNumber=237 isEventBeaconingEnabled=false dayOfLastBeaconingDecision=18883 currentEventSequenceNumber=0
2021-09-13 20:58:06.777 LL_I W [2:main] abstractappshell/onCreate done
2021-09-13 20:58:06.779 LL_I W [286:WhatsApp Worker #3] wambuffer/header/init/eventBufferMetadata/0: size=0 timestamp=0 streamId=1 bufferSequenceNumber=0 checksum=1
2021-09-13 20:58:06.781 LL_I W [283:WhatsApp Worker #1] gdrive-conditions-manager/is-access-possible; exception=android.content.pm.PackageManager$NameNotFoundException: com.android.vending

begin stack trace 2.21.18.7(314649532)

android.content.pm.PackageManager$NameNotFoundException: com.android.vending
at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:190)
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:159)
at X.03R.A08(:27860)
at X.0WF.run(:122626)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at X.02B.run(:22517)
at java.lang.Thread.run(Thread.java:919)

end stack trace

2021-09-13 20:58:06.781 LL_I W [267:High Pri Worker #1] databasehelper/open-existing-db/version 1
2021-09-13 20:58:06.782 LL_I W [286:WhatsApp Worker #3] wambuffer/header/init/eventBufferMetadata/1: size=0 timestamp=0 streamId=1 bufferSequenceNumber=0 checksum=1
2021-09-13 20:58:06.782 LL_I W [267:High Pri Worker #1] databasehelper/canQueryDb
… [etc.]
2021-09-13 20:58:06.887 LL_I W [2:main] network/info
[type: MOBILE[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 0, subtype: 0
[type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 1, subtype: 0
[type: MOBILE_MMS[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 2, subtype: 0
[type: MOBILE_SUPL[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 3, subtype: 0
[type: MOBILE_DUN[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 4, subtype: 0
[type: MOBILE_HIPRI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 5, subtype: 0
[type: ETHERNET[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 9, subtype: 0
[type: MOBILE_FOTA[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 10, subtype: 0
[type: MOBILE_IMS[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 11, subtype: 0
[type: MOBILE_CBS[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 12, subtype: 0
[type: WIFI_P2P[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 13, subtype: 0
[type: MOBILE_IA[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 14, subtype: 0
[type: MOBILE_EMERGENCY[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 15, subtype: 0
[type: VPN[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 17, subtype: 0
2021-09-13 20:58:06.899 LL_D W [2:main] xmpp/handler/reconnect/not_ready

problem disappear with next version of whatsapp. Not a sailfish bug.

1 Like

Help i seem to have this problem in Xperia 10iii now

Did you transfer your WhatsApp folder from another phone? Then you should check ownership and permissions of the folder.

1 Like

Yes i did, wats the solution for such an issue

Good day sailor, does this permission needs to be 755 ? drwxrwx— on Android storage map or only the whatsapp folder?
And what if i cant get permission to change, acces denied?

Sorry just installed wa , not able to use cam , get camera failed, same with video, but can call and vc.
Ant help would be apriciated, or should i reinstall whatsapp?
Thanks in advance, pm me if needed.

Also there might be a bug in the audio. It seems like whenever a message comes in from whatsapp the audio switches to loudspeaker and the headphone is no longer recognised unless i try calling via the call app, can anyone help

If you found a new bug, please search if it exists otherwise open a new bug report.

Hi,
usually a new install is not needed (if the permissions are your problem). I use devel-su to adjust permissions of the whole folder to drwrwxr-x, and user as well as group to media_rw, respectively. In order to change the permission to the whole content, please use -R (for recursive), e.g.:

chown -R media_rw:media_rw WhatsApp
chmod -R +x WhatsApp

1 Like

Thnx,will give it a try after waiting for 12 h, removed wa, start fresh.
Hopefully all will work properly including cam and link to galary etc.
Will get back here with the results,thank u.

Will do, keep u updated ,thnx.

Result after changing permissions of whatsapp folder and subfolder , issue persist nothing changed .
Cant take a pic or make a video , also not able to load any pics or video , but can call and vc with contacts .
Have MicroG installed and running, is there a possibility to temp disable it to test wa cam etc?
Thanks in advance.