Crash when reading MMS from notification bar
http://hastebin.com/bilesucove
Got a group message from several people (mix of text secure, iphone, and other android users).
If I use the drop down notifications to click on the message, the app crashes and I have to enter my password again. If I open up the conversation list, and click on the unread message, everything works fine.
ATT galaxy s4 android 4.4.2
log keep alive 1st (fatal)
--------- beginning of /dev/log/main
D/AndroidRuntime(29697): Shutting down VM
W/dalvikvm(29697): threadid=1: thread exiting with uncaught exception (group=0x417a1da0)
--------- beginning of /dev/log/system
E/AndroidRuntime(29697): FATAL EXCEPTION: main
E/AndroidRuntime(29697): Process: org.thoughtcrime.securesms, PID: 29697
E/AndroidRuntime(29697): java.lang.RuntimeException: Unable to get provider org.thoughtcrime.securesms.providers.PartProvider: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@43733358 (pid=29697) when registering receiver android.content.IIntentReceiver$Stub$Proxy@43725278
E/AndroidRuntime(29697): at android.app.ActivityThread.installProvider(ActivityThread.java:5056)
E/AndroidRuntime(29697): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4648)
E/AndroidRuntime(29697): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4562)
E/AndroidRuntime(29697): at android.app.ActivityThread.access$1600(ActivityThread.java:161)
E/AndroidRuntime(29697): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1325)
E/AndroidRuntime(29697): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(29697): at android.os.Looper.loop(Looper.java:157)
E/AndroidRuntime(29697): at android.app.ActivityThread.main(ActivityThread.java:5356)
E/AndroidRuntime(29697): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(29697): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(29697): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
E/AndroidRuntime(29697): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
E/AndroidRuntime(29697): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(29697): Caused by: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@43733358 (pid=29697) when registering receiver android.content.IIntentReceiver$Stub$Proxy@43725278
E/AndroidRuntime(29697): at android.os.Parcel.readException(Parcel.java:1465)
E/AndroidRuntime(29697): at android.os.Parcel.readException(Parcel.java:1419)
E/AndroidRuntime(29697): at android.app.ActivityManagerProxy.registerReceiver(ActivityManagerNative.java:2543)
E/AndroidRuntime(29697): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1787)
E/AndroidRuntime(29697): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1755)
E/AndroidRuntime(29697): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:486)
E/AndroidRuntime(29697): at org.thoughtcrime.securesms.providers.PartProvider.initializeMasterSecret(PartProvider.java:145)
E/AndroidRuntime(29697): at org.thoughtcrime.securesms.providers.PartProvider.onCreate(PartProvider.java:62)
E/AndroidRuntime(29697): at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
E/AndroidRuntime(29697): at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
E/AndroidRuntime(29697): at android.app.ActivityThread.installProvider(ActivityThread.java:5053)
E/AndroidRuntime(29697): ... 12 more
I/Process (29697): Sending signal. PID: 29697 SIG: 9
2nd (common not registered)
W/MmsSender(29717): Sending MMS of length: 328
I/MmsCommunication(29717): Couldn't write APN settings, expected. msg: No permission to write APN settings: Neither user 10214 nor current process has android.permission.WRITE_APN_SETTINGS.
W/MmsCommunication(29717): Checking route to address: proxy.mobile.att.net , 172.26.39.1
W/MmsSender(29717): Sending MMS1 of length: 328
D/dalvikvm(29717): GC_FOR_ALLOC freed 2335K, 16% free 25798K/30468K, paused 47ms, total 47ms
D/AbsListView(29717): unregisterIRListener() is called
W/PduParser(29717): parse() called...
W/PduParser(29717): Message Type: 129
W/MmsSender(29717): Sent MMS part of content-type: text/plain
W/MmsTransport(29717): Comparing: 54 31 34 35 63 65 65 38 31 65 37 66
W/MmsTransport(29717): With: 54 31 34 35 63 65 65 38 31 65 37 66
W/MmsRadio(29717): MMS Radio Disconnect Called...
W/MmsRadio(29717): Reference count: 0
W/MmsRadio(29717): Turning off MMS radio...
W/MmsRadio(29717): Unregistering receiver...
W/SystemStateListener(29717): java.lang.IllegalArgumentException: Receiver not registered: org.thoughtcrime.securesms.service.SystemStateListener$ConnectivityListener@42fbbad8
W/SystemStateListener(29717): at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:671)
W/SystemStateListener(29717): at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1798)
W/SystemStateListener(29717): at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:501)
W/SystemStateListener(29717): at org.thoughtcrime.securesms.service.SystemStateListener.unregisterForConnectivityChange(SystemStateListener.java:46)
W/SystemStateListener(29717): at org.thoughtcrime.securesms.service.MmsSender.handleSendMms(MmsSender.java:87)
W/SystemStateListener(29717): at org.thoughtcrime.securesms.service.MmsSender.process(MmsSender.java:60)
W/SystemStateListener(29717): at org.thoughtcrime.securesms.service.SendReceiveService$SendReceiveWorkItem.run(SendReceiveService.java:275)
W/SystemStateListener(29717): at org.thoughtcrime.securesms.util.WorkerThread.run(WorkerThread.java:46)
D/AbsListView(29717): unregisterIRListener() is called
3rd (fatal)
W/MmsListener(29717): Got MMS broadcast...android.provider.Telephony.WAP_PUSH_DELIVER
W/MmsListener(29717): Relevant!
W/PduParser(29717): parse() called...
W/PduParser(29717): Message Type: 130
W/MmsDatabse(29717): Message received type: 130
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/MmsReceiver(29717): Inserted received MMS notification...
W/MmsDownloader(29717): Changing radio to MMS mode..
W/MmsRadio(29717): startUsingNetworkFeature status: 1
W/MmsListener(29717): Got MMS broadcast...android.provider.Telephony.WAP_PUSH_RECEIVED
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/MmsRadio(29717): Got connectivity change...
W/MmsRadio(29717): Got connectivity change...
W/MmsRadio(29717): Notifying connected...
W/MmsDownloader(29717): Downloading in MMS mode without proxy...
I/MmsCommunication(29717): Couldn't write APN settings, expected. msg: No permission to write APN settings: Neither user 10214 nor current process has android.permission.WRITE_APN_SETTINGS.
W/MmsCommunication(29717): Checking route to address: proxy.mobile.att.net , 172.26.39.1
W/PduParser(29717): parse() called...
W/PduParser(29717): Message Type: 132
W/PduParser(29717): Parsing parts...
W/PduParser(29717): config_mms_content_disposition_support ID: 0
W/PduParser(29717): Content Disposition supported: false
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/ApplicationPackageManager(29717): getCSCPackageItemText()
W/PartDatabase(29717): Writing part data from buffer
W/EncryptingPartDatabase(29717): Writing part to: /data/data/org.thoughtcrime.securesms/app_parts/part-1705119198.mms
W/PartDatabase(29717): Wrote part to file: /data/data/org.thoughtcrime.securesms/app_parts/part-1705119198.mms
W/PartDatabase(29717): Inserted part at ID: 90
W/MmsSmsDatabase(29717): 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 = 131) 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 = 131) ORDER BY date_received DESC) LIMIT 1
W/MmsSmsDatabase(29717): 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 = 131) 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 = 131) ORDER BY date_received DESC) LIMIT 1
W/MmsSmsDatabase(29717): 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 = 61) 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 = 61) ORDER BY date_received DESC) LIMIT 1
W/MmsSmsDatabase(29717): Executing query: SELECT _id, body, read, type, address, address_device_id, subject, thread_id, status, date_sent, date_received, m_type, msg_box, 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 (read = 0) 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 (read = 0) ORDER BY date_received ASC)
W/NotificationState(29717): Added thread: 131
W/NotificationState(29717): Pending array off intent length: 1
W/PduComposer(29717): Returning: 35 bytes...
W/MmsSender(29717): Sending MMS of length: 35
I/MmsCommunication(29717): Couldn't write APN settings, expected. msg: No permission to write APN settings: Neither user 10214 nor current process has android.permission.WRITE_APN_SETTINGS.
W/MmsCommunication(29717): Checking route to address: proxy.mobile.att.net , 172.26.39.1
W/MmsSender(29717): Sending MMS1 of length: 35
W/MmsRadio(29717): MMS Radio Disconnect Called...
W/MmsRadio(29717): Reference count: 0
W/MmsRadio(29717): Turning off MMS radio...
W/MmsRadio(29717): Unregistering receiver...
D/AndroidRuntime(31733): Shutting down VM
W/dalvikvm(31733): threadid=1: thread exiting with uncaught exception (group=0x417a1da0)
E/AndroidRuntime(31733): FATAL EXCEPTION: main
E/AndroidRuntime(31733): Process: org.thoughtcrime.securesms, PID: 31733
E/AndroidRuntime(31733): java.lang.RuntimeException: Unable to get provider org.thoughtcrime.securesms.providers.PartProvider: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@42d17648 (pid=31733) when registering receiver android.content.IIntentReceiver$Stub$Proxy@42cc66c8
E/AndroidRuntime(31733): at android.app.ActivityThread.installProvider(ActivityThread.java:5056)
E/AndroidRuntime(31733): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4648)
E/AndroidRuntime(31733): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4562)
E/AndroidRuntime(31733): at android.app.ActivityThread.access$1600(ActivityThread.java:161)
E/AndroidRuntime(31733): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1325)
E/AndroidRuntime(31733): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(31733): at android.os.Looper.loop(Looper.java:157)
E/AndroidRuntime(31733): at android.app.ActivityThread.main(ActivityThread.java:5356)
E/AndroidRuntime(31733): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(31733): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(31733): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
E/AndroidRuntime(31733): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
E/AndroidRuntime(31733): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(31733): Caused by: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@42d17648 (pid=31733) when registering receiver android.content.IIntentReceiver$Stub$Proxy@42cc66c8
E/AndroidRuntime(31733): at android.os.Parcel.readException(Parcel.java:1465)
E/AndroidRuntime(31733): at android.os.Parcel.readException(Parcel.java:1419)
E/AndroidRuntime(31733): at android.app.ActivityManagerProxy.registerReceiver(ActivityManagerNative.java:2543)
E/AndroidRuntime(31733): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1787)
E/AndroidRuntime(31733): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1755)
E/AndroidRuntime(31733): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:486)
E/AndroidRuntime(31733): at org.thoughtcrime.securesms.providers.PartProvider.initializeMasterSecret(PartProvider.java:145)
E/AndroidRuntime(31733): at org.thoughtcrime.securesms.providers.PartProvider.onCreate(PartProvider.java:62)
E/AndroidRuntime(31733): at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
E/AndroidRuntime(31733): at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
E/AndroidRuntime(31733): at android.app.ActivityThread.installProvider(ActivityThread.java:5053)
E/AndroidRuntime(31733): ... 12 more
I/Process (31733): Sending signal. PID: 31733 SIG: 9
W/SendReceiveService(31745): SendReceive service got master secret.
W/PartProvider(31745): Got master secret: null
W/ApplicationPackageManager(31745): getCSCPackageItemText()
W/KeyCachingService(31745): Incrementing activity count...
Seems related to https://github.com/WhisperSystems/TextSecure/issues/461 which was closed as fixed. It is apparently not, or different but in the same class of issue.
For what it's worth, I just had a group message with a different set of people (4 total this time, 7 the original time) and it worked fine.
The failed message members included textsecure, ios, android, and one person who is not in my contacts. The second included 4 people in my contacts. 2 ios, 2 textsecure.
I believe this was fixed in 2.0.3 as referenced by #461, please check back in if this is still an issue, thanks! :)