Signal crashes after apparently completing db import on new install
- [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
I've upgraded from a Pixel 2XL to a 4XL both fully up-to-date OS.
I tried to copy and restore my messages from the old phone. The database is about 128mb.
It crashes once it finishes running through the complete message count.
I have tried a few times with the same version and earlier versions of signal. On first attempt the version on my new phone was 4.49.18 and the old phone 4.49.17. I then tried with 18 on both. The result is the same.
I tried earlier versions on the new phone but the message was that the passphrase was incorrect.
Steps to reproduce
- save database on old phone, copying passphrase
- replace file in signal backup directory
- install signal accepting permissions
- choose option to import
- paste in passphrase
Actual result:
- watch counter tick to similar total seen on export
- signal vanishes
- on re-use app is at the import database step
Expected result: Successful import and completion of installation
Screenshots
Device info
Device: Pixel 4XL Android version: 10 Signal version: 4.49.18
Link to debug log
https://debuglogs.org/3ed9f06d71208b1c433154e25de1fbe9c94ef6c4795c2b0db4be32cfc868470f
Exactly the same happens to me, but I have 88000 messages and the backup database is 5GB, which I thought could have something to do with it, but reading your report, this may not be the case.
Both phones run 4.49.18 on android 10 Old phone: OnePlus 6 New phone: OnePlus 7 Pro I tried disabling battery optimisation and enabled and disabled 'RAM Boost' in my settings, but to no avail.
Tried a few more times, creating a new backup with another passphrase and disabling networks on both phones before proceding, but nothing worked. I got an Out Of Memory (OOM) error the last time when both phones were not connected to a network, but not the other times. The other times I got 'Caused by: java.lang.NegativeArraySizeException: -1951979156'
Some observations: The first 77000 messages backup fast (a few seconds) and restore fast (a few seconds), then it slows down significantly (minutes for the rest). It crashes when I see '88501' every time. Are the first 77000 messages text only and the others media?
Debug log: https://debuglogs.org/02f7f0456f2f5a779ac35f662f916f2f9c1d142049bed44539fccdc672e0e4d9
This issue could be a duplicate of https://github.com/signalapp/Signal-Android/issues/9154, but since I don't get an OOM error every time, I'll leave it here, especially because OP's database was only 128MB.
Closing as a duplicate of #9154