Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Startup crash

Open franziskuskiefer opened this issue 9 years ago • 57 comments

I have:

  • [x] searched open and closed issues for duplicates
  • [x] read https://github.com/WhisperSystems/Signal-Android/wiki/Submitting-useful-bug-reports

Bug description

Signal for Android crashes on startup-.

Steps to reproduce

  • install latest Signal for Android beta (Version 4.9.0 from the play store)
  • open Signal for Android

Actual result: Signal for Android crashes Expected result: Signal for Android should open

Screenshots

image

Device info

Device: Huawei Nexus 6P Android version: 7.1.2 Signal version: 4.9.0

Link to debug log

No adb handy right now, but log is in the screenshot above. Signal debug info isn't available because it's a startup crash.

franziskuskiefer avatar Aug 01 '17 07:08 franziskuskiefer

same here. Sent the error report. Edit: OnUpgrade() fails

McLoo avatar Aug 01 '17 07:08 McLoo

same here.... with no error. App closed.

bgoerner avatar Aug 01 '17 08:08 bgoerner

This is the stack trace

08-01 11:26:48.115 16733 16757 E AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
08-01 11:26:48.115 16733 16757 E AndroidRuntime: Process: org.thoughtcrime.securesms, PID: 16733
08-01 11:26:48.115 16733 16757 E AndroidRuntime: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: recipient_preferences.recipient_ids (code 2067)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:734)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:1579)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:1525)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at org.thoughtcrime.securesms.database.DatabaseFactory$DatabaseHelper.onUpgrade(DatabaseFactory.java:1000)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at org.thoughtcrime.securesms.database.SmsDatabase.getExpirationStartedMessages(SmsDatabase.java:654)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at org.thoughtcrime.securesms.service.ExpiringMessageManager$LoadTask.run(ExpiringMessageManager.java:57)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
08-01 11:26:48.115 16733 16757 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:761)

franziskuskiefer avatar Aug 01 '17 09:08 franziskuskiefer

Moto G4 with Nougat 7.0 here, I'm signing up on this crash. Can't post a log because well, I can't get that far into the app before it crashes

Dyras avatar Aug 01 '17 10:08 Dyras

Updated to latest beta 4.9 from Play Store and now Signal crashes for me too. The app shows'updating database and then crashes at startup

teutat3s avatar Aug 01 '17 12:08 teutat3s

Same problem with a Pixel on Android 7.1.2 with security patches from july. I've also sent a bug report.

gartenriese2 avatar Aug 01 '17 12:08 gartenriese2

4.9.0 crashes on my OPO3 with 7.1.1 on startup too. Tried to clear the app cache but this didn't work.

rhaist avatar Aug 01 '17 14:08 rhaist

Same problem in android marshmallow. Can't downgrade without uninstalling.

roth-a avatar Aug 01 '17 14:08 roth-a

Is this an issue that affects mostly German users? Or are there just more German beta users?

McLoo avatar Aug 01 '17 14:08 McLoo

The Americans are probably mostly still asleep. Those who wake up early and read this may want to wait for 4.9.1.

johanw666 avatar Aug 01 '17 14:08 johanw666

@franziskuskiefer Thanks for the stack trace.

Can anyone who's seeing this with the ability to capture ADB update to this debug APK: https://mega.nz/#!AplBBLrR!RtDYHMuDpMyQtAQOMriwRT7W3VOxhxdokwqrDc8kebk

...and post the log here? It will still crash, but should include more information to help me understand what is failing to fix it.

moxie0 avatar Aug 01 '17 15:08 moxie0

Upgraded to 4.9.0 today and it worked fine until I received an SMS. Now it crashes on start without any errors.

kpuljek avatar Aug 01 '17 16:08 kpuljek

@kpuljek Please post a debug log here for us to be able to determine the source of the crash.

moxie0 avatar Aug 01 '17 16:08 moxie0

@moxie0 not sure what's supposed to be in the debug log. But this is what I get when running the APK you provided. (I replaced the phone numbers with ******.) It looks like it's crashing while migrating the SMS/phone numbers.

08-01 18:18:56.991 32259 32264 I art     : Compiler allocated 4MB to compile void org.thoughtcrime.securesms.database.DatabaseFactory$DatabaseHelper.onUpgrade(android.database.sqlite.SQLiteDatabase, int, int)
08-01 18:18:57.012 32259 32259 W PassphraseRequiredActionBarActivity: onDestroy()
08-01 18:18:57.026 32259 32283 W DatabaseHelper: Migrating: 115 to: ******
08-01 18:18:57.027 32259 32283 W DatabaseHelper: Migrating: 116 to: ******
08-01 18:18:57.028 32259 32283 W DatabaseHelper: Migrating: 12 to: ******
08-01 18:18:57.028 32259 32283 W DatabaseHelper: Migrating: 121 to: ******
08-01 18:18:57.029 32259 32283 W DatabaseHelper: Migrating: 131 to: ******
08-01 18:18:57.030 32259 32283 W DatabaseHelper: Migrating: 133 to: ******
08-01 18:18:57.030 32259 32283 W DatabaseHelper: Migrating: 134 to: ******
08-01 18:18:57.031 32259 32283 W DatabaseHelper: Migrating: 147 to: ******
08-01 18:18:57.031 32259 32283 W DatabaseHelper: Migrating: 151 to: ******
08-01 18:18:57.032 32259 32283 W DatabaseHelper: Migrating: 166 to: ******
08-01 18:18:57.032 32259 32283 W DatabaseHelper: Migrating: 17 to: ******
08-01 18:18:57.033 32259 32283 W DatabaseHelper: Migrating: 170 to: ******
08-01 18:18:57.033 32259 32283 W DatabaseHelper: Migrating: 171 to: ******
08-01 18:18:57.033 32259 32283 W DatabaseHelper: Migrating: 172 to: ******
08-01 18:18:57.034 32259 32283 W DatabaseHelper: Migrating: 177 to: ******
08-01 18:18:57.034 32259 32283 W DatabaseHelper: Migrating: 179 to: ******
08-01 18:18:57.035 32259 32283 W DatabaseHelper: Migrating: 181 to: ******
08-01 18:18:57.036 32259 32283 W DatabaseHelper: Migrating: 183 to: ******
08-01 18:18:57.036 32259 32283 W DatabaseHelper: Migrating: 196 to: ******
08-01 18:18:57.037 32259 32283 W DatabaseHelper: Migrating: 208 to: ******
08-01 18:18:57.037 32259 32283 W DatabaseHelper: Migrating: 212 to: ******
08-01 18:18:57.038 32259 32283 W DatabaseHelper: Migrating: 214 to: ******
08-01 18:18:57.038 32259 32283 W DatabaseHelper: Migrating: 216 to: ******
08-01 18:18:57.039 32259 32283 W DatabaseHelper: Migrating: 219 to: ******
08-01 18:18:57.039 32259 32283 W DatabaseHelper: Migrating: 238 to: __textsecure_group__!******
08-01 18:18:57.039 32259 32283 W DatabaseHelper: Migrating: 248 to: ******
08-01 18:18:57.040 32259 32283 W DatabaseHelper: Migrating: 249 to: ******
08-01 18:18:57.041 32259 32283 W DatabaseHelper: Migrating: 252 to: ******
08-01 18:18:57.041 32259 32283 W DatabaseHelper: Migrating: 253 to: ******
08-01 18:18:57.042 14588 14588 I PBSessionCacheImpl: Deleted sessionId[74506928821596] from persistence.
08-01 18:18:57.042 32259 32283 W DatabaseHelper: Migrating: 260 to: ******
08-01 18:18:57.043 32259 32283 W DatabaseHelper: Migrating: 261 to: ******
08-01 18:18:57.043 32259 32283 W DatabaseHelper: Migrating: 263 to: ******
08-01 18:18:57.044 32259 32283 W DatabaseHelper: Migrating: 268 to: ******
08-01 18:18:57.044 32259 32283 W DatabaseHelper: Migrating: 269 to: ******
08-01 18:18:57.044 32259 32283 W DatabaseHelper: Migrating: 270 to: ******
08-01 18:18:57.045 32259 32283 W DatabaseHelper: Migrating: 278 to: ******
08-01 18:18:57.046 32259 32283 W DatabaseHelper: Migrating: 279 to: ******
08-01 18:18:57.046 32259 32283 W DatabaseHelper: Migrating: 285 to: ******
08-01 18:18:57.047 32259 32283 W DatabaseHelper: Migrating: 29 to: ******
08-01 18:18:57.047 32259 32283 I SQLiteConnectionPool: The connection pool for /data/user/0/org.thoughtcrime.securesms/databases/messages.db has been closed but there are still 1 connections in use.  They will be closed as they are released back to the pool.
--------- beginning of crash
08-01 18:18:57.049 32259 32283 E AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
08-01 18:18:57.049 32259 32283 E AndroidRuntime: Process: org.thoughtcrime.securesms, PID: 32259
08-01 18:18:57.049 32259 32283 E AndroidRuntime: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: recipient_preferences.recipient_ids (code 2067)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:734)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:1579)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:1525)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at org.thoughtcrime.securesms.database.DatabaseFactory$DatabaseHelper.onUpgrade(DatabaseFactory.java:1002)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at org.thoughtcrime.securesms.database.SmsDatabase.getExpirationStartedMessages(SmsDatabase.java:654)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at org.thoughtcrime.securesms.service.ExpiringMessageManager$LoadTask.run(ExpiringMessageManager.java:57)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
08-01 18:18:57.049 32259 32283 E AndroidRuntime:  at java.lang.Thread.run(Thread.java:761)
08-01 18:18:57.050  3751 29208 W ActivityManager:   Force finishing activity org.thoughtcrime.securesms/.PassphrasePromptActivity

franziskuskiefer avatar Aug 01 '17 16:08 franziskuskiefer

Hey! I ran adb logcat and used the .apk you provided and tried running it 5 times (all five crashed) and piped it into a txt file. I hope this can be of help. If I did it wrong, just let me know and I'll do it again. :) If there is any private information in the log (I couldn't find any, but it's huge), download it and please delete the post/attachment.

log.txt

kpuljek avatar Aug 01 '17 17:08 kpuljek

Thanks @franziskuskiefer, would you be comfortable emailing me ([email protected]) the full unredacted log? It's something to do with the numbers, so I'd need to see them in order to figure out why it's failing.

moxie0 avatar Aug 01 '17 17:08 moxie0

@kpuljek Thanks, that's helpful. Looks like you're experiencing something different from the other folks here, I've created another build with additional logging in the area where your crash is occurring: https://mega.nz/#!Y8tjDTqb!mr054EMpSLtKXDTYUNuNh0QMHf4X0rK_kc-Ji3XoD3Y

If you could get me the logcat output from that, it should help clarify what's going on with your crash. This log might include phone numbers, so feel free to email it to me if you'd prefer ([email protected]). Thanks!

moxie0 avatar Aug 01 '17 17:08 moxie0

Upraded, redid the logcat and I don't see any numbers in the log, so I'll post it here. I hope this helps, it looks the same as the first to me. log2.txt

kpuljek avatar Aug 01 '17 17:08 kpuljek

@kpuljek Thanks! Hah the problem is that there isn't a number in there =)

Here's another one with more debugging: https://mega.nz/#!t8c1jS4Z!vRPd8EgKcNkFnuv7G-e4fdY9x8o6c6B4EWKry48q2PA

moxie0 avatar Aug 01 '17 17:08 moxie0

Still no numbers log3.txt

kpuljek avatar Aug 01 '17 17:08 kpuljek