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

Black or wrong image thumbnails

Open McLoo opened this issue 11 years ago • 41 comments

#4612 and #4599 Spin-off

Just opened a convo with last message = outgoing text+ image message Preview thumb in convo list showed up fine In-convo the (attached from attachment drawer) image thumb is black Reproduced two times now, on 2 tries opening the said convo

https://gist.github.com/9d319c95ba0757c7cebb

McLoo avatar Nov 27 '15 08:11 McLoo

More info

  • group message
  • thumb was fine after sending (which I'm pretty sure of, but not 100% :disappointed: )
  • image MediaPreviewActivity ~~shows the image correctly~~ EDIT: no more true! Now the image shown is one I sent in some other thread!

McLoo avatar Nov 27 '15 09:11 McLoo

  • AND after forwarding that message to the same convo, the CORRECT draft preview shows up :confused: (Log and screenshot with update)
  • sending that draft brings the correct preview thumb up along with the correct MediaPrievewActivity view
  • The first preview thumb is still black, but now shows the correct image in MediePreview :confused: :confused:

logs and shots follow in next comment

Play store version, stock ROM (but rooted and Xposed, NO XPrivacy!)

McLoo avatar Nov 27 '15 10:11 McLoo

After forwarding the black thumbnail message to the same convo (upper message has the black thumb) https://gist.github.com/213dcdf55c520767c789 screenshot_2015-11-27-11-03-16

After sending that forward https://gist.github.com/f3038db900a5a629726b screenshot_2015-11-27-11-08-10

McLoo avatar Nov 27 '15 10:11 McLoo

potentially fixed by https://github.com/WhisperSystems/Signal-Android/pull/4737

mcginty avatar Nov 28 '15 00:11 mcginty

A bit confused with these seemingly related issues so I'm just gonna leave this here.

I received a screen shot in a 1:1 conversation. I did not go to the conversation on my phone until more messages had come through and the said image was scrolled out of the view. So when I finally wanted to see the image I opened the conversation, scrolled up to get to the image and the thumbnail showed black. (Notice the cut out corners?) black thumb

The image itself shows without any problems. But the thumbnail is still black.

Picture dimensions 720 x 1280. It's a png screen shot taken with Moto G (2nd gen) running Lollipop and Signal 3.5.2.

The receiving device (mine) is Nexus 4, 5.1.1, Signal 3.5.2.

2-4601 avatar Nov 28 '15 00:11 2-4601

I don't have the issue with the thumbnail above any more after updating to 3.6.0. :+1:

2-4601 avatar Nov 28 '15 03:11 2-4601

:fireworks:

mcginty avatar Nov 28 '15 04:11 mcginty

I am running Signal 3.6.1 and experiencing the problem right now. Please reopen.

merkste avatar Dec 05 '15 14:12 merkste

~~Additional info: Restarting the device did the trick to make the thumbnail reappear.~~ (temporarily) It appears to happen only to shared messages. As far as I can tell, only last shared message thumbnails gets displayed and all previous thumbnails turn black.

merkste avatar Dec 05 '15 14:12 merkste

@merkste maybe you could upload a log after you created a black thumbnail. And after you reentered the conversation that holds that black thumb.

Is the image correctly shown, when you tap/open it? What is shown in the conversation list? Blackness or the correct thumb?

McLoo avatar Dec 05 '15 15:12 McLoo

Weird, even more thumbnails turned black now. It happens in older conversation, too.

@McLoo If I tab the thumbnail, the picture ist shown correctly. In the conversation list I did not yet see any black thumbnail. Logs are immediately after the action described.

  1. startup https://gist.github.com/anonymous/0b0ccaa42f0e7760c9a9
  2. opening a conversation. Last thumbnail is fine, older ones are black. https://gist.github.com/anonymous/7ae8345ebd97ac1fcbab
  3. composing a picture message: preview thumbnail black, thumbnail after send correct https://gist.github.com/anonymous/67e7dd18d7b8273fe878
  4. forwarding a picture message: preview thumbnail black, thumbnail after send correct (some messages received in between) https://gist.github.com/anonymous/edb50edc147ba51aacac

In steps 2 - 4 I had to reenter the suspicious conversations

merkste avatar Dec 05 '15 15:12 merkste

Will you reopened this issue or should I start a new one?

merkste avatar Dec 07 '15 08:12 merkste

3.7.0, Nexus 4, stock 5.1.1 I was scrolling an old conversation and encountered this again. But it seems this happens in every conversation I have: eventually at least one thumbnail will show as black if I just scroll back enough (I don't have to go past the 'See full conversation').

Log of one such case: https://gist.github.com/anonymous/3f795962df9fcaf4aa6b

...
W/MessageRetrievalService(15213): Network requirement: true, active activities: 1, push pending: 0
W/MessageRetrievalService(15213): Reading message...
W/MmsSmsDatabase(15213): 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, mismatched_identities, network_failures, transport_type, attachment_id, unique_id, mid, data_size, _data, ct, cl, 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, mismatched_identities, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS _data, NULL AS ct, NULL AS cl, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (thread_id = 1) 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, mismatched_identities, network_failures, 'mms' AS transport_type, unique_id, NULL AS mid, data_size, NULL AS _data, ct, cl, 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 = 1) ORDER BY date_received DESC LIMIT 1)
W/MmsSmsDatabase(15213): 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, mismatched_identities, network_failures, transport_type, attachment_id, unique_id, mid, data_size, _data, ct, cl, 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, mismatched_identities, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS _data, NULL AS ct, NULL AS cl, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (read = 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, mismatched_identities, network_failures, 'mms' AS transport_type, unique_id, NULL AS mid, data_size, NULL AS _data, ct, cl, 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) ORDER BY date_received ASC)
W/NotificationState(15213): Added thread: 1
W/NotificationState(15213): Pending array off intent length: 1
W/TAG     (15213): threadIds length: 1
W/MarkReadReceiver(15213): Marking as read: 1
W/MmsSmsDatabase(15213): 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, mismatched_identities, network_failures, transport_type, attachment_id, unique_id, mid, data_size, _data, ct, cl, 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, mismatched_identities, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS _data, NULL AS ct, NULL AS cl, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (read = 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, mismatched_identities, network_failures, 'mms' AS transport_type, unique_id, NULL AS mid, data_size, NULL AS _data, ct, cl, 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) ORDER BY date_received ASC)
W/PassphraseRequiredActionBarActivity(15213): onPause()
W/KeyCachingService(15213): onStartCommand, org.thoughtcrime.securesms.service.action.ACTIVITY_STOP_EVENT
W/KeyCachingService(15213): Decrementing activity count...
W/MessageRetrievalService(15213): Active Count: 0
W/PassphraseRequiredActionBarActivity(15213): onCreate(null)
W/ExperienceUpgradeActivity(15213): getExperienceUpgrade(157)
W/PassphraseRequiredActionBarActivity(15213): routeApplicationState(), state: 0
W/PassphraseRequiredActionBarActivity(15213): initializeClearKeyReceiver()
W/ConversationActivity(15213): onCreate()
W/QuickAttachmentDrawer(15213): updateControlsView()
W/PassphraseRequiredActionBarActivity(15213): onResume()
W/MmsSmsDatabase(15213): 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, mismatched_identities, network_failures, transport_type, attachment_id, unique_id, mid, data_size, _data, ct, cl, 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, mismatched_identities, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS _data, NULL AS ct, NULL AS cl, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (thread_id = 1) 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, mismatched_identities, network_failures, 'mms' AS transport_type, unique_id, NULL AS mid, data_size, NULL AS _data, ct, cl, 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 = 1) ORDER BY date_received DESC LIMIT 500)
W/KeyboardAwareLinearLayout(15213): rotation changed
W/KeyboardAwareLinearLayout(15213): onKeyboardClose()
W/CameraView(15213): skipping layout due to zero-width/height preview size
W/KeyCachingService(15213): onStartCommand, org.thoughtcrime.securesms.service.action.ACTIVITY_START_EVENT
W/KeyCachingService(15213): Incrementing activity count...
W/MessageRetrievalService(15213): Active Count: 1
W/MmsSmsDatabase(15213): 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, mismatched_identities, network_failures, transport_type, attachment_id, unique_id, mid, data_size, _data, ct, cl, 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, mismatched_identities, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS _data, NULL AS ct, NULL AS cl, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (read = 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, mismatched_identities, network_failures, 'mms' AS transport_type, unique_id, NULL AS mid, data_size, NULL AS _data, ct, cl, 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) ORDER BY date_received ASC)
W/ThumbnailView(15213): loading part with id content://org.thoughtcrime.securesms/part/1449293971525/658, progress 0
W/AttachmentDatabase(15213): getThumbnailStream((row id: 658, unique ID: 1449293971525))
W/ThumbnailView(15213): loading part with id content://org.thoughtcrime.securesms/part/1449287209170/655, progress 0
W/AttachmentDatabase(15213): getThumbnailStream((row id: 655, unique ID: 1449287209170))
W/ThumbnailView(15213): Not re-loading slide content://org.thoughtcrime.securesms/part/1449287209170/655
W/ThumbnailView(15213): loading part with id content://org.thoughtcrime.securesms/part/1449235833544/645, progress 0
W/AttachmentDatabase(15213): getThumbnailStream((row id: 645, unique ID: 1449235833544))
W/ThumbnailView(15213): loading part with id content://org.thoughtcrime.securesms/part/1449227720878/644, progress 0
W/AttachmentDatabase(15213): getThumbnailStream((row id: 644, unique ID: 1449227720878))
W/ThumbnailView(15213): loading part with id content://org.thoughtcrime.securesms/part/1449138269165/640, progress 0
W/AttachmentDatabase(15213): getThumbnailStream((row id: 640, unique ID: 1449138269165))
W/ThumbnailView(15213): loading part with id content://org.thoughtcrime.securesms/part/1449138269165/640, progress 0
W/PassphraseRequiredActionBarActivity(15213): onPause()
W/KeyCachingService(15213): onStartCommand, org.thoughtcrime.securesms.service.action.ACTIVITY_STOP_EVENT
W/KeyCachingService(15213): Decrementing activity count...
W/MessageRetrievalService(15213): Active Count: 0
W/PassphraseRequiredActionBarActivity(15213): onResume()
W/ResourcesManager(15213): Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.
W/KeyCachingService(15213): onStartCommand, org.thoughtcrime.securesms.service.action.ACTIVITY_START_EVENT
W/KeyCachingService(15213): Incrementing activity count...
W/MessageRetrievalService(15213): Active Count: 1
D/OpenGLRenderer(15213): endAllStagingAnimators on 0xb7a0b430 (RippleDrawable) with handle 0xb8e839c0
W/PassphraseRequiredActionBarActivity(15213): onDestroy()
W/MmsSmsDatabase(15213): 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, mismatched_identities, network_failures, transport_type, attachment_id, unique_id, mid, data_size, _data, ct, cl, 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, mismatched_identities, NULL AS network_failures, 'sms' AS transport_type, NULL AS unique_id, NULL AS mid, NULL AS data_size, NULL AS _data, NULL AS ct, NULL AS cl, NULL AS cd, NULL AS name, NULL AS pending_push FROM sms WHERE (thread_id = 1) 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, mismatched_identities, network_failures, 'mms' AS transport_type, unique_id, NULL AS mid, data_size, NULL AS _data, ct, cl, 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 = 1) ORDER BY date_received DESC LIMIT 1)
I/art     (15213): Background partial concurrent mark sweep GC freed 75044(3MB) AllocSpace objects, 13(710KB) LOS objects, 25% free, 47MB/63MB, paused 1.556ms total 118.846ms
W/PassphraseRequiredActionBarActivity(15213): onPause()
W/KeyCachingService(15213): onStartCommand, org.thoughtcrime.securesms.service.action.ACTIVITY_STOP_EVENT
W/KeyCachingService(15213): Decrementing activity count...
W/MessageRetrievalService(15213): Active Count: 0
W/PassphraseRequiredActionBarActivity(15213): onCreate(null)
W/ExperienceUpgradeActivity(15213): getExperienceUpgrade(157)
W/PassphraseRequiredActionBarActivity(15213): routeApplicationState(), state: 0
W/PassphraseRequiredActionBarActivity(15213): initializeClearKeyReceiver()
W/PassphraseRequiredActionBarActivity(15213): onResume()
W/ResourcesManager(15213): Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.
W/KeyCachingService(15213): onStartCommand, org.thoughtcrime.securesms.service.action.ACTIVITY_START_EVENT
W/KeyCachingService(15213): Incrementing activity count...
W/MessageRetrievalService(15213): Active Count: 1
W/PassphraseRequiredActionBarActivity(15213): onPause()
W/KeyCachingService(15213): onStartCommand, org.thoughtcrime.securesms.service.action.ACTIVITY_STOP_EVENT
W/KeyCachingService(15213): Decrementing activity count...
W/MessageRetrievalService(15213): Active Count: 0

This issue should be reopened.

2-4601 avatar Dec 07 '15 15:12 2-4601

@mcginty do we know what commit introduced this?

moxie0 avatar Dec 12 '15 06:12 moxie0

unfortunately no and still no repro on my install :/

mcginty avatar Dec 12 '15 06:12 mcginty

I noticed something that may be related: After browsing "All Images" in a Conversation (with lots of images), the a wrong thumbnail image is displayed for the latest post. Tapping on the post brings up the correct picture but the thumbnail remains wrong. And by wrong I mean a thumbnail belonging to an older picture posted in the conversation. It also happened to me that the thumbnail got totally black under similar circumstances.

Don't know if my log is helpful here but: https://gist.github.com/anonymous/ee23b39dc4a347732996

Wopfi avatar Dec 16 '15 14:12 Wopfi

  • select attachment -> camera -> take picture, send it -> black thumbnail.

https://gist.github.com/af1ae677033ffbdd2db0

peterpanondrugs avatar Dec 22 '15 17:12 peterpanondrugs

I'm also having this issue in 3.8.1. It seems to only happen with high resolution images.

kb100 avatar Dec 31 '15 17:12 kb100

It seems that there is something really messy going on in the database: Today this weird thing happened:

  1. receive image from A
  2. reply text to A
  3. send location to B
  4. exit Signal (not kill, just switch to another application)
  5. enter Sinal
  6. open B's conversation (the one with sent location) - everything looks good
  7. open A's conversation (the one with received image) - instead of received image thumbnail, location's thumbnail from B's conversation is shown.
  8. click the location thumb - correct (non-location's) image is show
  9. get back to the convo - the thumb is still incorrect one (location's).

At some point the issue disappeared (unfortunately, i don't have a log for that)

Then, trying to reproduce it by jumping from convo to convo, black thumbnails appeared instead of correct ones.... Here is the log for the black thumbs (not sure though if there is anything useful inside): https://gist.github.com/anonymous/f8efa5acc8e32bc43c6f

Signal 3.9.1, Android 5.1.1

scienmind avatar Jan 09 '16 09:01 scienmind

Same problem here, this is my debug log https://gist.github.com/7d6655a45cc85e6b74ea

edo0 avatar Jan 15 '16 17:01 edo0