Send action fails (error) when selecting an image from Gallery which has already been sent
- [x] I have searched open and closed issues for duplicates
- [x] I am submitting a bug report for existing functionality that does not work as intended
- [x] I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
- [x] This isn't a feature request or a discussion topic
Bug description
Sending error when selecting an image from Gallery which has already been sent
Steps to reproduce
- send an image to a contact (ok)
- send this image a second time to this contact, or a different contact or group: send action fails
Device info
Device: Huawei P smart 2019 Android version: 9 Signal version: 4.49.2
Link to debug log
Can you please post a debug log? I'm having trouble reproducing this.
This is the effect when I try to send an image from my gallery a second time. I does not matter whether the recipient is the same or a different one, it only matters if or if not the image is present in any communication.
- After deletion of all (of the specific) sent images, sending works, always only for the first send action.
- Effect is strictly reproducible.
- Please also notice the incomplete (partial) image -- I noticed this now and then before filing this issue; it may be a related problem, perhaps a memory corruption/NPE.

I guess I reproduced it: https://debuglogs.org/ff64644a64f707ebb8de67f8231e08547fc492d9ffd2fb76074fe7d6359374ff
I can also reproduce the same like Wikinaut.
- Only forwarding of an already sent image or images without adding additional pictures works
- Choosing already sent images with the image picker sending will fail
Could correlate with the new "improved storage efficiency".
Device info
Android version: 9 Signal version: 4.49.3
Link to debug log
https://debuglogs.org/d185cee5844b9103175bdb4dbcea15df6ac404743cbc692dba0b15a3c01c65f6
Still present in Signal 4.94.4 (should be fixed in that version, shouldn't it?).
@Wikinaut Is this happening with the same photo you already had problems with, or are you trying this with a fresh photo? If it's the same photo from before, it may be in a bad state from the previous bug (in which case I could push a migration in the next release). If it's a completely new photo you've never sent before, then, well... I didn't fix the original bug :) Either way, can you send me another debuglog?
I, for one, can't reproduce it anymore. The only thing I noticed, is, however, that the "All media" gallery contains images twice (shouldn't they get de-duped there, too?).
Can't reproduce it either with fresh photos. Thanks for the fast fix greyson.
@ all, yes, may be, it's "only" a problem with images which has been sent elsewhere. I have noticed - but for already a while - another problem with only the local view (at sender's site) of sent images - now and then the local "copy" is cropped in the lower half or lower quarter:
Please can someone let me know, if you have seen such an effect? I think, I have to file a new issue for this (older) problem:
(image is redacted in the upper part):

@Wikinaut I also see the glitch of the previews sometimes.
@greyson-signal I wanted to contact you and to send you a recent debug log after a recent "image glitch" - but your test signal number appears to be disconnected from Signal. Pls. advice.