signalapp / Signal-Android

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

Signal crashing after transfer/restore #13740

Open mheck-lm opened 1 week ago

mheck-lm commented 1 week ago

Guidelines

Bug description

After Transferring or Restoring from a backup the app asks for confirmation of the phone number but then crashes after confirming the PIN. Any attempts of opening the app after that crash lead to another crash. adb logcat outputs:

10-21 10:57:20.061  7440 13079 E AndroidRuntime: Process: org.thoughtcrime.securesms, PID: 7440
10-21 10:57:20.061  7440 13079 E AndroidRuntime: org.thoughtcrime.securesms.database.RecipientTable$MissingRecipientException: Failed to find recipient with ID: RecipientId::3245
10-21 10:57:20.061  7440 13079 E AndroidRuntime:        at org.thoughtcrime.securesms.database.RecipientTable.findRemappedIdRecord(RecipientTable.kt:759)
10-21 10:57:20.061  7440 13079 E AndroidRuntime:        at org.thoughtcrime.securesms.database.RecipientTable.getRecord(RecipientTable.kt:747)
10-21 10:57:20.061  7440 13079 E AndroidRuntime:        at org.thoughtcrime.securesms.recipients.LiveRecipient.fetchAndCacheRecipientFromDisk(LiveRecipient.java:192)
10-21 10:57:20.061  7440 13079 E AndroidRuntime:        at org.thoughtcrime.securesms.recipients.LiveRecipient.resolve(LiveRecipient.java:152)
10-21 10:57:20.061  7440 13079 E AndroidRuntime:        at org.thoughtcrime.securesms.recipients.Recipient$Companion.resolved(Recipient.kt:837)
10-21 10:57:20.061  7440 13079 E AndroidRuntime:        at org.thoughtcrime.securesms.recipients.Recipient$Companion.resolvedList(Recipient.kt:843)
10-21 10:57:20.061  7440 13079 E AndroidRuntime:        at org.thoughtcrime.securesms.recipients.Recipient.resolvedList(Recipient.kt:0)
10-21 10:57:20.061  7440 13079 E AndroidRuntime:        at org.thoughtcrime.securesms.conversationlist.ConversationListDataSource.load(ConversationListDataSource.java:103)

Screenshots

No response

Device

Samsung Galaxy A55

Android version

14

Signal version

7.19.2

Link to debug log

No response

mheck-lm commented 5 days ago

We found the following entries in the Debug log:

10-24 14:34:08.086 14901  9853 W RecipientTable: Missing recipient for RecipientId::3245, but found it in the remapped records as RecipientId::3256
10-24 14:34:08.086 14901  9851 W RecipientTable: Missing recipient for RecipientId::3245, but found it in the remapped records as RecipientId::3256

With further search we found two chats that contained "strange" contents:

  1. There was a "Message request" message displayed beneath a name, but within the chat was none visible only a few "safety number changed" messages
  2. Nothing was displayed beneath a name but in the chat was something around "updating the contact because it has changed"

⇒ After deleting both these chats we were able to migrate to the new phone successfully!