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

4.16.9 Can't "see full conversation"

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

Hi!

  • I just upgraded to Signal 4.16.9 via Google Play Store.
  • When I launched it, the database went through the migration, and I was able to access my conversations.
  • However, "See full conversation" seems to do nothing. After a few minutes, the app becomes unstable and crashes.

I don't see anything relevant in the logs before the restart:

03-06 13:24:25.758  1525  7967 W MmsSmsDatabase: Executing query: SELECT _id, unique_row_id, body, type, thread_id, address, address_device_id, subject, date_sent, date_received, m_type, msg_box, status, part_count, ct_l, tr_id, m_size, exp, st, delivery_receipt_count, read_receipt_count, mismatched_identities, network_failures, subscription_id, expires_in, expire_started, notified, transport_type, attachment_id, unique_id, mid, data_size, file_name, _data, thumbnail, ct, cl, digest, fast_preflight_id, voice_note, cd, name, pending_push FROM (SELECT DISTINCT date_sent AS date_sent, date AS date_received, _id, 'SMS::' || _id || '::' || date_sent AS unique_row_id, NULL AS attachment_id, body, read, thread_id, type, address, address_device_id, subject, NULL AS m_type, NULL AS msg_box, status, NULL AS part_count, NULL AS ct_l, NULL AS tr_id, NULL AS m_size, NULL AS exp, NULL AS st, delivery_receipt_count, read_receipt_count, mismatched_identities, subscription_id, expires_in, expire_started, notified, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS file_name, NULL AS _data, NULL AS thumbnail, NULL AS ct, NULL AS cl, NULL AS digest, NULL AS fast_preflight_id, NULL AS voice_note, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (read = 0 AND notified = 0) UNION ALL SELECT DISTINCT date AS date_sent, date_received AS date_received, mms._id AS _id, 'MMS::' || mms._id || '::' || date AS unique_row_id, part._id AS attachment_id, body, read, thread_id, NULL AS type, address, address_device_id, NULL AS subject, m_type, msg_box, NULL AS status, part_count, ct_l, tr_id, m_size, exp, st, delivery_receipt_count, read_receipt_count, mismatched_identities, subscription_id, expires_in, expire_started, notified, network_failures, 'mms' AS transport_type, unique_id, mid, data_size, file_name, _data, thumbnail, ct, cl, digest, fast_preflight_id, voice_note, cd, name, pending_push FROM mms LEFT OUTER JOIN part ON part._id =  (SELECT part._id FROM part WHERE part.mid = mms._id LIMIT 1) WHERE (read = 0 AND notified = 0) ORDER BY date_received ASC)
03-06 13:24:25.758  1525  1611 W MmsSmsDatabase: Executing query: SELECT _id, unique_row_id, body, type, thread_id, address, , subject, date_sent, date_received, m_type, msg_box, status, part_count, ct_l, tr_id, m_size, exp, st, delivery_receipt_count, read_receipt_count, mismatched_identities, network_failures, subscription_id, expires_in, expire_started, notified, transport_type, attachment_id, unique_id, mid, data_size, file_name, _data, thumbnail, ct, cl, digest, fast_preflight_id, voice_note, cd, name, pending_push FROM (SELECT DISTINCT date_sent AS date_sent, date AS date_received, _id, 'SMS::' || _id || '::' || date_sent AS unique_row_id, NULL AS attachment_id, body, read, thread_id, type, address, address_device_id, subject, NULL AS m_type, NULL AS msg_box, status, NULL AS part_count, NULL AS ct_l, NULL AS tr_id, NULL AS m_size, NULL AS exp, NULL AS st, delivery_receipt_count, read_receipt_count, mismatched_identities, subscription_id, expires_in, expire_started, notified, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS file_name, NULL AS _data, NULL AS thumbnail, NULL AS ct, NULL AS cl, NULL AS digest, NULL AS fast_preflight_id, NULL AS voice_note, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (thread_id = 4) UNION ALL SELECT DISTINCT date AS date_sent, date_received AS date_received, mms._id AS _id, 'MMS::' || mms._id || '::' || date AS unique_row_id, part._id AS attachment_id, body, read, thread_id, NULL AS type, address, address_device_id, NULL AS subject, m_type, msg_box, NULL AS status, part_count, ct_l, tr_id, m_size, exp, st, delivery_receipt_count, read_receipt_count, mismatched_identities, subscription_id, expires_in, expire_started, notified, network_failures, 'mms' AS transport_type, unique_id, mid, data_size, file_name, _data, thumbnail, ct, cl, digest, fast_preflight_id, voice_note, cd, name, pending_push FROM mms LEFT OUTER JOIN part ON part._id =  (SELECT part._id FROM part WHERE part.mid = mms._id LIMIT 1) WHERE (thread_id = 4) ORDER BY date_received DESC)
03-06 13:24:25.759  1525  6104 W MmsSmsDatabase: Executing query: SELECT _id, unique_row_id, body, type, thread_id, address, address_device_id, subject, date_sent, date_received, m_type, msg_box, status, part_count, ct_l, tr_id, m_size, exp, st, delivery_receipt_count, read_receipt_count, mismatched_identities, network_failures, subscription_id, expires_in, expire_started, notified, transport_type, attachment_id, unique_id, mid, data_size, file_name, _data, thumbnail, ct, cl, digest, fast_preflight_id, voice_note, cd, name, pending_push FROM (SELECT DISTINCT date_sent AS date_sent, date AS date_received, _id, 'SMS::' || _id || '::' || date_sent AS unique_row_id, NULL AS attachment_id, body, read, thread_id, type, address, address_device_id, subject, NULL AS m_type, NULL AS msg_box, status, NULL AS part_count, NULL AS ct_l, NULL AS tr_id, NULL AS m_size, NULL AS exp, NULL AS st, delivery_receipt_count, read_receipt_count, mismatched_identities, subscription_id, expires_in, expire_started, notified, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS file_name, NULL AS _data, NULL AS thumbnail, NULL AS ct, NULL AS cl, NULL AS digest, NULL AS fast_preflight_id, NULL AS voice_note, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (thread_id = 4) UNION ALL SELECT DISTINCT date AS date_sent, date_received AS date_received, mms._id AS _id, 'MMS::' || mms._id || '::' || date AS unique_row_id, part._id AS attachment_id, body, read, thread_id, NULL AS type, address, address_device_id, NULL AS subject, m_type, msg_box, NULL AS status, part_count, ct_l, tr_id, m_size, exp, st, delivery_receipt_count, read_receipt_count, mismatched_identities, subscription_id, expires_in, expire_started, notified, network_failures, 'mms' AS transport_type, unique_id, mid, data_size, file_name, _data, thumbnail, ct, cl, digest, fast_preflight_id, voice_note, cd, name, pending_push FROM mms LEFT OUTER JOIN part ON part._id =  (SELECT part._id FROM part WHERE part.mid = mms._id LIMIT 1) WHERE (thread_id = 4) ORDER BY date_received DESC)
--------- beginning of system

Device info

Device: Galaxy S6 Android version: 7.0 Signal version: 4.16.9

Could you help me?

neurolit avatar Mar 06 '18 12:03 neurolit

Could you please capture a full debug log right after Signal crashes and post it here?

haffenloher avatar Mar 06 '18 12:03 haffenloher

Here we are: https://hastebin.com/edokeqebiy

Thanks!

neurolit avatar Mar 06 '18 13:03 neurolit

(just crashed a few seconds before)

neurolit avatar Mar 06 '18 13:03 neurolit

There is no crash in this log. I also don't understand your description, what is "see full conversation?"

moxie0 avatar Mar 06 '18 15:03 moxie0

Thanks @moxie for you answer. When I go backwards in one conversation, on top of it there's a button "see full conversation", in order to display older messages.

neurolit avatar Mar 06 '18 15:03 neurolit

How many messages would you estimate are in the conversation? Nothing else has changed there, but it could be that sqlcipher can't handle the query for some reason.

Do you have more than one thread with more than 500 messages (the initial scroll limit) in it? If so, does this happen for all of them or just one?

moxie0 avatar Mar 06 '18 16:03 moxie0

There are 26000 messages in the conversation.

This is the only thread with more than 500 messages.

(it was working before the upgrade, as I used it last weekend)

neurolit avatar Mar 06 '18 16:03 neurolit

Have you tried waiting a while after clicking "load more?" Is your experience that the app immediately becomes unresponsive?

moxie0 avatar Mar 06 '18 19:03 moxie0

The app becomes unresponsive after two minutes. Then, Android OS proposes to kill it, because "Signal doesn't respond".

neurolit avatar Mar 06 '18 20:03 neurolit

So nothing happens, but remains responsive. Two minutes later you get an ANR. What if you tell Android to "wait?"

moxie0 avatar Mar 06 '18 20:03 moxie0

A few seconds later, I get another ANR. And so on.

neurolit avatar Mar 06 '18 20:03 neurolit

I can confirm this behaviour for large conversations (I don't know the exact number of messages, but could be similar to 20k or 30k). I have another conversation with > 500 messages (but less than the other one, probably something like 2k), where the "load more" is working. I am also quite sure that before the db migration it was working for the large conversation, too.

Device: Motorola Moto X 2014 (XT1092) Android 6.0

minnmann avatar Mar 07 '18 09:03 minnmann

Bummer, if anyone has time to put together a test case, it'd be nice to have something we can show the sqlcipher people.

moxie0 avatar Mar 07 '18 16:03 moxie0

Maybe something could be done on Signal side? For example, "see full conversation" could load 500 older messages only (and not all of them)?

neurolit avatar Mar 09 '18 10:03 neurolit

I have some conversations with more then 500 messages and all works well, BUT conversations are limited to max. 1k messages (in settings).

@neurolit and @minnmann can you estimate if you have "mostly" text messages or media messages (audio, pictures, videos,..) in those conversations? It is possible that not only the no. of messages is a problem.

ghost avatar Mar 09 '18 14:03 ghost

I mostly have text messages (maybe 300 photos, no video).

neurolit avatar Mar 10 '18 18:03 neurolit

I am experiencing a similar issue as @minnmann and @neurolit: before the upgrade "See Full Conversation" used to work for all my conversations; after the upgrade it only works for short ones and makes Signal unresponsive for long ones (with a mix of text and photos, no video). "All media" shows all the photos for the conversations that make Signal unresponsive upon choosing "See Full Conversation." Deleting a few messages loads a few from the past that are not currently shown, but choosing "See Full Conversation" still leads to the same unresponsiveness with no extra conversations shown.

0mid avatar Mar 12 '18 01:03 0mid

Exactly same behaviour here, I can't load old messages with button SEE FULL CONVERSATION. It does nothing and same time after I get an ANR

Signal version: 4.16.9 Device: Xiaomi Mi5s 3GB RAM

Tgue conversation have +20K messages

VTCop avatar Mar 15 '18 07:03 VTCop

I was having the same issue on my Samsung Galaxy S5 before migrating to a new phone. New phone will not restore from backups so I cannot confirm if it is present with more ram, but I can generate logs on the old phone if needed. Conversation was approximately 25,000 messages.

AVerm avatar Mar 21 '18 04:03 AVerm

I'm also seeing this issue. Android version: 7.1.2 Signal version: 4.17.5

PercussiveElbow avatar Apr 01 '18 23:04 PercussiveElbow