signalapp / Signal-Android

A private messenger for Android.
https://signal.org
GNU Affero General Public License v3.0
25.42k stars 6.09k forks source link

Signal Android does not save all media files #13250

Open vince-from-nice opened 10 months ago

vince-from-nice commented 10 months ago

Bug description

I want to save all my media files (915 Mb, 2262 files) in one shoot but sadly not all of the files are saved, only ~30% !

Steps to reproduce

Actual result:

A popup says the files are being saved to local storage. After many seconds, there's no more popup (and no error message). 692 pictures have been saved into Pictures directory and 17 videos into the Movies directory (I've cleaned these directories before the launch the backup).

Expected result:

I would expect to have all the media files saved and not ~30% only.

Device info

Device: Redmi Note 11 Android version: 13 Signal version: 6.39.1

vince-from-nice commented 10 months ago

Note that if I redo the backup I always have the same amount of saved files (692 pictures and 17 videos instead of 2262 files).

cody-signal commented 9 months ago

Wow...hrm. A debuglog would be helpful in seeing if the process fails for a particular reason.

vince-from-nice commented 9 months ago

Actually at the end of the process (~30s) there is a quickly displayed message saying an error has occurred. But strangely I don't see any error in the log file (at least no error message in the last hour) but maybe you can find something... Thanks, Vincent.

vince-from-nice commented 9 months ago

I have just updated to 6.40.5 and tried 2 times to save all my media files. It still fails (22+699 files saved instead of 2304) and here is the log file.

Note that error has occurred on both attempts so it could be the clue: SaveAttachmentTask: SaveAttachmentTask: Caused by: java.io.FileNotFoundException: /data/user/0/org.thoughtcrime.securesms/app_parts/part2511049236473473679.mms: open failed: ENOENT (No such file or directory)

Any idea ?

vince-from-nice commented 9 months ago

Would it be possible to NOT abort the whole backup process if some files are missing ? The user should be informed that some files are missing (and thus not saved) but at least all the existing files will be saved.

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

vince-from-nice commented 6 months ago

The issue is still present with a recent version of Signal for Android (6.42.3).

vince-from-nice commented 1 month ago

I tried another global backup with the latest release (7.11.3). I've selected all my media files (1912 elements) and the process has finished without any error.

But I can see that 1744 pictures and 137 videos has been saved => 1881 / 1912 = 98%, it's still not yet perfect but it's much better than before. I did another attempt and it gave me 1770 + 141 files saved.. it misses just one ! I'm very happy with that :)

vince-from-nice commented 1 month ago

A third attempt did the same result: 1911 files saved.