Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signal takes up 2x space after Android Transfer #12106

Closed
4 tasks done
skickar opened this issue Mar 31, 2022 · 2 comments
Closed
4 tasks done

Signal takes up 2x space after Android Transfer #12106

skickar opened this issue Mar 31, 2022 · 2 comments

Comments

@skickar
Copy link

skickar commented Mar 31, 2022


Bug description

When transferring an account via Android Account transfer from an old phone with a a 65gb signal database, the Signal install on new phone takes up double that space (130 gb). Signal also appears to only see 65 gb internally, while the new phone sees Signal taking up 130 gb.

Steps to reproduce

  • Transfer large signal database via Android account transfer to new phone
  • Make sure backups are disabled so it does not create a new backup
  • Complete setup on new phone and observe storage used reported inside Signal app
  • Observe storage taken up by the whole app and note it's twice what Signal reports internally

Actual result: When transferring an account to a new Android phone, the Signal installation on the new phone takes up twice as much space as on the old phone, even with no backups enabled.
Expected result: When transferring an account to a new Android phone, the Signal installation on the new phone should be roughly the same size.

Screenshots

Alt text

Signal seeing storage internally

Device info

Device: Google Pixel 6 pro
Android version: 12
Signal version: 5.31.5

Link to debug log

Wasn't able to grab one right after the install, didn't notice till later

@greyson-signal
Copy link
Contributor

So I have a theory that I'm relatively sure is correct. When you forward messages to multiple chats or just send the same exact attachment to multiple people in general, we will de-duplicate those attachments on disk. Unfortunately, this de-duplication is lost during the backup process because our current backup format doesn't really support it.

So if you send the same media to multiple chats somewhat often (or with large items, like videos), then I could definitely see it happening where the backup is much larger than your normal signal install (and thus your restore will be larger too).

We have some ideas to help with this, but they're larger projects that will require some thought.

@greyson-signal
Copy link
Contributor

Closing as a duplicate of #11509. We'll track it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants