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

v4.9.4 crash at startup

Open globaluar opened this issue 9 years ago • 8 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

As another follow up to the issues #6846 and #6838 for me the crash on startup still persists. Before crashing during startup "Updating database" is displayed very quickly.

adb logcat shows the following:

--------- beginning of crash
08-03 06:39:53.102  8610  8635 E AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
08-03 06:39:53.102  8610  8635 E AndroidRuntime: Process: org.thoughtcrime.securesms, PID: 8610
08-03 06:39:53.102  8610  8635 E AndroidRuntime: java.lang.AssertionError: Unable to resolve: 
08-03 06:39:53.102  8610  8635 E AndroidRuntime: 	at  org.thoughtcrime.securesms.database.DatabaseFactory$DatabaseHelper.onUpgrade(DatabaseFactory.java:1001)
08-03 06:39:53.102  8610  8635 E AndroidRuntime: 	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256)
08-03 06:39:53.102  8610  8635 E AndroidRuntime: 	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
08-03 06:39:53.102  8610  8635 E AndroidRuntime: 	at org.thoughtcrime.securesms.database.SmsDatabase.getExpirationStartedMessages(SmsDatabase.java:654)
08-03 06:39:53.102  8610  8635 E AndroidRuntime: 	at org.thoughtcrime.securesms.service.ExpiringMessageManager$LoadTask.run(ExpiringMessageManager.java:57)
08-03 06:39:53.102  8610  8635 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
08-03 06:39:53.102  8610  8635 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
08-03 06:39:53.102  8610  8635 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:761)
08-03 06:39:53.431  1042  5998 I chatty  : uid=1000(system) Binder:1042_B expire 6 lines
08-03 06:39:53.474  1042  5961 I chatty  : uid=1000(system) Binder:1042_9 expire 19 lines
08-03 06:39:54.809  1042  6008 I chatty  : uid=1000(system) Binder:1042_D expire 11 lines
08-03 06:39:55.532  1042  1098 I chatty  : uid=1000(system) android.display expire 2 lines
08-03 06:39:59.460  8939  8986 E AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
08-03 06:39:59.460  8939  8986 E AndroidRuntime: Process: org.thoughtcrime.securesms, PID: 8939
08-03 06:39:59.460  8939  8986 E AndroidRuntime: java.lang.AssertionError: Unable to resolve: 
08-03 06:39:59.460  8939  8986 E AndroidRuntime: 	at org.thoughtcrime.securesms.database.DatabaseFactory$DatabaseHelper.onUpgrade(DatabaseFactory.java:1001)
08-03 06:39:59.460  8939  8986 E AndroidRuntime: 	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256)
08-03 06:39:59.460  8939  8986 E AndroidRuntime: 	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
08-03 06:39:59.460  8939  8986 E AndroidRuntime: 	at org.thoughtcrime.securesms.database.SmsDatabase.getExpirationStartedMessages(SmsDatabase.java:654)
08-03 06:39:59.460  8939  8986 E AndroidRuntime: 	at org.thoughtcrime.securesms.service.ExpiringMessageManager$LoadTask.run(ExpiringMessageManager.java:57)
08-03 06:39:59.460  8939  8986 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
08-03 06:39:59.460  8939  8986 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
08-03 06:39:59.460  8939  8986 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:761)

Steps to reproduce

  • upgrade to version between 4.9.1 and 4.9.4 and start Signal

Device info

Device: OnePlus 2 Android version: 7.1.2 (LineageOS) Signal version: 4.9.4

Link to debug log

globaluar avatar Aug 03 '17 12:08 globaluar

recipientIds appears to be empty. The current code would indeed give an assertion error in that case.

johanw666 avatar Aug 03 '17 14:08 johanw666

@globaluar Could you update to this APK and paste the ADB output from it? Should still crash, but will provide a little more info: https://mega.nz/#!QwMEzIgK!Gt9gRPysjJU4nyewyvf9MtqNiM4fjVjjHb-fNRl-jYc

moxie0 avatar Aug 03 '17 16:08 moxie0

I'm having an issue on startup. It loads up, shows me my inbox, and then instantly crashes. If I don't click on the "Close App" button, I see it syncing all my missed messages. Desktop still works during this.

adalan avatar Aug 03 '17 16:08 adalan

@Adalan I would need a debug log in order to help, please open a new issue with a log if it's different from what's above.

moxie0 avatar Aug 03 '17 16:08 moxie0

If I don't have access to adb or rooted, is there another way to get you the log? I've been sending feedback when the crash happens including the system log. Otherwise, I'll have to wait until sometime tonight.

adalan avatar Aug 03 '17 18:08 adalan

@Adalan Unfortunately adb logcat is probably the only way in a situation like this =(. I may eventually get the crash report through the play store, but it can take days

moxie0 avatar Aug 03 '17 18:08 moxie0

Ok, I've just wiped data and re-setup. When I get home tonight, if it's crashing again, I'll take a capture. Thanks!

adalan avatar Aug 03 '17 18:08 adalan

Sorry for the late reply, but unfortunatelly I wasn't able to make it earlier. The update 4.9.5 solved the issue for me Thanks for the fast reply

globaluar avatar Aug 04 '17 16:08 globaluar