Error Sending Messaged (Unsecured)
I'm having an issue where any unsecured message I send (via text or via the network) shows the red error symbol and says "error sending message". All my messages are going out, however. As soon as a friend of mine exchanged keys and we were encrypted, all appears to be fine.
I downloaded alogcat to see what is in the logs, and there isn't anything.
@Adalan aLogcat doesn't work on devices running JB+, you need to actually use the adb logcat command line. The next release should also have a feature to send your logcat to us.
02-26 10:03:25.186 30734 30734 W MmsSmsDatabase: Executing query: SELECT _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, transport_type FROM (SELECT DISTINCT date_sent * 1 AS date_sent, date * 1 AS date_received, _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, 'sms' AS transport_type FROM sms WHERE (thread_id = 32) UNION ALL SELECT DISTINCT date * 1000 AS date_sent, date_received * 1000 AS date_received, _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, 'mms' AS transport_type FROM mms WHERE (thread_id = 32) ORDER BY date_received DESC) LIMIT 1
02-26 10:03:25.376 30734 30734 W SMSSender: Got message id for new message: 4983
02-26 10:03:25.386 5557 12850 D ContactsProvider: Query URI:content://com.android.contacts/data/phones/filter/null
02-26 10:03:25.596 30734 30752 W SmsSender: Sending message: 4983
02-26 10:03:25.596 30734 30752 W MessageDatabase: Updating ID: 4983 to base type: 22
02-26 10:03:25.626 30734 30752 W MmsSmsDatabase: Executing query: SELECT _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, transport_type FROM (SELECT DISTINCT date_sent * 1 AS date_sent, date * 1 AS date_received, _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, 'sms' AS transport_type FROM sms WHERE (thread_id = 32) UNION ALL SELECT DISTINCT date * 1000 AS date_sent, date_received * 1000 AS date_received, _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, 'mms' AS transport_type FROM mms WHERE (thread_id = 32) ORDER BY date_received DESC) LIMIT 1
02-26 10:03:25.666 911 911 D SizeAdaptiveLayout: com.android.internal.widget.SizeAdaptiveLayout@42071380child view android.widget.FrameLayout@420c61a0 measured out of bounds at 95px clamped to 96px
02-26 10:03:25.866 30734 30752 W SmsTransportDetails: Padding message body out to: 60
02-26 10:03:25.896 30734 30752 W SmsTransportDetails: Encoded Message Length: 147
02-26 10:03:25.926 30734 30752 W org.thoughtcrime.securesms.sms.MultipartSmsTransportMessage: Complete fragment size: 152
02-26 10:03:25.926 30734 30752 W SmsTransport: Secure divide into message parts: 1
02-26 10:03:25.926 1058 11920 D VzwMoSmsSupportHelper: enter filterDestAddr. this=VzwMoSmsSupportHelper : { mPhoneType=2, mSimState=5, mSimOperator=xxxxxx, mNetworkOperator=xxxxxx, mNbpcdSupported=false, mCdmaHomeOperatorIsnan=true, mGsmRoutesUsSmsc=true; getNetworkType()=1}, destAddr="xxxxxxxxxx"
02-26 10:03:25.926 1058 11920 D VzwMoSmsSupportHelper: networkMcc="xxx", networkMnc="xxx"
02-26 10:03:25.926 1058 11920 D VzwMoSmsSupportHelper: begin to call SMSNumberHandler.formatNumber;
02-26 10:03:25.926 1058 11920 D SMSNumberHandler: Format Number: xxxxxxxxxx, Active MCC: xxx, Active MNC: xxx, NBPCD: false, NetworkType: 1
02-26 10:03:25.926 1058 11920 D SMSNumberHandler: NANP type: NP_NANP_AREA_LOCAL
02-26 10:03:25.926 1058 11920 D VzwMoSmsSupportHelper: leave filterDestAddr, new destAddr="xxxxxxxxxx"
02-26 10:03:25.926 700 1142 D PowerManagerService: acquireWakeLock flags=0x1 tag=RILJ
02-26 10:03:26.057 700 816 D StateMachine: handleMessage: E msg.what=131155
02-26 10:03:26.057 700 816 D StateMachine: processMsg: ConnectedState
02-26 10:03:26.057 700 816 D WifiStateMachine: ConnectedState{ what=131155 when=-3ms arg1=2144 }
02-26 10:03:26.057 700 816 D StateMachine: processMsg: L2ConnectedState
02-26 10:03:26.057 700 816 D WifiStateMachine: L2ConnectedState{ what=131155 when=-3ms arg1=2144 }
02-26 10:03:26.057 700 816 D wifi : doString: SIGNAL_POLL
02-26 10:03:26.057 11734 11734 D wpa_supplicant: wpa_s 0x40e62cc0 cmd SIGNAL_POLL
02-26 10:03:26.057 11734 11734 D wpa_supplicant: nl80211: survey data missing!
02-26 10:03:26.057 700 816 D StateMachine: handleMessage: X
02-26 10:03:26.487 700 1115 D PowerManagerService: releaseWakeLock flags=0x1 tag=RILJ
02-26 10:03:26.517 30734 30752 W SMSReceiverService: Intent resultcode: -1
02-26 10:03:26.517 30734 30752 W SMSReceiverService: Running sent callback: 4983
02-26 10:03:26.517 30734 30752 W MessageDatabase: Updating ID: 4983 to base type: 23
02-26 10:03:26.557 30734 30752 W MmsSmsDatabase: Executing query: SELECT _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, transport_type FROM (SELECT DISTINCT date_sent * 1 AS date_sent, date * 1 AS date_received, _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, 'sms' AS transport_type FROM sms WHERE (thread_id = 32) UNION ALL SELECT DISTINCT date * 1000 AS date_sent, date_received * 1000 AS date_received, _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, 'mms' AS transport_type FROM mms WHERE (thread_id = 32) ORDER BY date_received DESC) LIMIT 1
02-26 10:03:26.767 30734 30752 W MessageDatabase: Updating ID: 4983 to base type: 8388608
02-26 10:03:26.988 30734 30752 W MmsSmsDatabase: Executing query: SELECT _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, transport_type FROM (SELECT DISTINCT date_sent * 1 AS date_sent, date * 1 AS date_received, _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, 'sms' AS transport_type FROM sms WHERE (thread_id = 32) UNION ALL SELECT DISTINCT date * 1000 AS date_sent, date_received * 1000 AS date_received, _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, 'mms' AS transport_type FROM mms WHERE (thread_id = 32) ORDER BY date_received DESC) LIMIT 1
02-26 10:03:27.208 30734 30752 W SystemStateListener: java.lang.IllegalArgumentException: Receiver not registered: org.thoughtcrime.securesms.service.SystemStateListener$ConnectivityListener@42107500
02-26 10:03:27.208 30734 30752 W SystemStateListener: at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:656)
02-26 10:03:27.208 30734 30752 W SystemStateListener: at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1237)
02-26 10:03:27.208 30734 30752 W SystemStateListener: at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:378)
02-26 10:03:27.208 30734 30752 W SystemStateListener: at org.thoughtcrime.securesms.service.SystemStateListener.unregisterForConnectivityChange(SystemStateListener.java:46)
02-26 10:03:27.208 30734 30752 W SystemStateListener: at org.thoughtcrime.securesms.service.SmsSender.unregisterForRadioChanges(SmsSender.java:169)
02-26 10:03:27.208 30734 30752 W SystemStateListener: at org.thoughtcrime.securesms.service.SmsSender.handleSentMessage(SmsSender.java:134)
02-26 10:03:27.208 30734 30752 W SystemStateListener: at org.thoughtcrime.securesms.service.SmsSender.process(SmsSender.java:62)
02-26 10:03:27.208 30734 30752 W SystemStateListener: at org.thoughtcrime.securesms.service.SendReceiveService$SendReceiveWorkItem.run(SendReceiveService.java:247)
02-26 10:03:27.208 30734 30752 W SystemStateListener: at org.thoughtcrime.securesms.util.WorkerThread.run(WorkerThread.java:46)
@gklyber That message looks as if it was delivered successfully. Did it fail?
@Adalan The 2.0.2 release now has an option under TextSecure Settings -> Advanced -> Send Debug Log.
http://hastebin.com/quwuvefeka
This is a message I sent to my wife (who doesn't have TextSecure installed). She received the message even though the interface said it failed to send.
@moxie0 The message did send successfully. It shows as sent in the UI. After the other device receives the message, the status changes to ! Unsuccessful.
@Adalan Is this the same for you? It initially shows sent and then switches to failed?
Correct.
One thing to add, if the contact I'm sending to is setup with textsecure AND we've exchanged keys, it works perfectly. If we haven't exchanged keys (and therefore unsecured), it throws the "error sending messages".
Oh wow, it's the delivery report stuff then. Will be fixed in the next release.
Just another addition, it's only for SMS. The MMS I sent to my wife went through correctly and was flagged as a successful send.
Thanks @Adalan, this should be fixed in 2.0.3
Thanks @moxie0!