Fake notification saying "Encrypted message"
Every time I start the app I get a fake notification from a contact that also has TS with the italic text "Encrypted mesaage" and a time stamp of the current time. If I click on it it takes me to the conversation with that contact, but there is no new message. This happens every single time I open up the app after clearing it from recent apps. I do not have encrypted storage enabled.
Edit: it seems that after doing this a few times it turned into a bad encrypted message. All messages I send to that contact show up as bad encrypted message. So do the ones I get from them.
If you receive a "Bad encrypted message...", klick the padlock and "End Secure Session"; a new session starts automatically the next time you send a message. Maybe this will happen automatically in a future release.
I experienced what I think is the same issue, although the message gets delivered later as "Bad encrypted message..."
Here are more details: I got a notification saying "Encrypted message..." but no message was shown when I selected it. However, about 6 hours later I get a "Bad encrypted message..." with a "Sent" time of exactly when I got the notification. The "Received" time of the new message differs by about 6 hours later.
Between those two events, several other messages have been sent/received without problems. The secure session was not restarted in between and is still working fine. I'm on version 2.0.3.
Can you check if this still occurs with 2.0.6 after you deregister from push and register again? Alternatively you can end the encrypted session with the one contact and start it again (if it's push it'll start automatically).
If this fixes the issue, would you be so kind and close this issue? Thanks
I'm having a very similar issue now for the second time.
My setup is as follows: Samsung Galaxy S Advance (I9070) Stock Android 4.1.2 System language set to German Textsecure 2.1.3 Push registered
both times it happened when messaging with my mom (she has exactly the same mobile than me, also same TS version).
After receiving a message nothing arrives.
When locking TS, I'm getting the following notification:

as soon as the Passphrase is entered the message disappears, but comes back immediately once TS is locked again.
the first time it happened, I was able to fix it by exporting an encrypted backup, wiping the data of the app, and restoring the backup.
then I received all messages an exemple is shown below:

with 2.1.3 this fix is no more possible, also deregistering from push and reregistering, updating the directory, as well as ending the secure session and removig/reenabling the passphrase didn't help.
now the most disturbing thing about it all... while those couple of messages are stuck, I can't send neither receive any encrypted messages (push/SMS) with ANY of my contacts, so basically I'm screwed.
the log is here: http://hastebin.com/wevugeyewe (push is at the moment disabled)
I will post my mom's log too, as soon as I get my hands on her phone.

Today I updated to 2.14
The problem persists...
Log is here: http://hastebin.com/eteyigelon
@moxie0, do you see a chance for a fix, or a workaround? Is it possible to pull off the db, reinstall the apk and push the db back manually, as encrypted backup is disabled?
I desperately need my TS back... with all my conversations and pictures...
@diego0815 I don't understand what you're asking or what the problem you're experiencing is.
@moxie0 my problem is that i can't send nor receive any message (push and encrypted sms).
This is the case since i received one message, that shows only in the notification area when TS is locked (as shown on first screenshot above).
Once I enter the passphrase the message is nowhere, but immediately reappears in the notification area, once i lock TS again.
I'm not at all worried about that stuck message. But all messages to all my contacts, incoming and outgoing wont go through. If someone sends a msg to me, it shows sent on their mobile (i.e. dark blue), but I never receive anything. If i send a msg it stays pending forever.
I had the same issue once ago, and i could fix it by exporting all messages, then deleting all TS data from the apps settings, then importing the encrypted backup.
This fixed the problems, all messages sent in the mean time arrived, the stuck messages,
@moxie0 sorry just had fingertroubles... part two below:
The stuck messages appeared as "message has been encrypted for a non existing conversation" (see second screenshot).
As the encrypted backup is no more available in newer ts versions, i cant imagine a way to recover from this.
I hope i could properly explain the issue, if you need more info im more than happy to provide you with whatever you need.
There is no incoming message, outgoing message, or activity at all in the debug log you provided. Can you reproduce a failed send and post a debug log of that?
On 08/05/2014 07:15 PM, diego0815 wrote:
@moxie0 https://github.com/moxie0 sorry just had fingertroubles... part two below:
The stuck messages appeared as "message has been encrypted for a non existing conversation" (see second screenshot).
As the encrypted backup is no more available in newer ts versions, i cant imagine a way to recover from this.
I hope i could properly explain the issue, if you need more info im more than happy to provide you with whatever you need.
— Reply to this email directly or view it on GitHub https://github.com/WhisperSystems/TextSecure/issues/814#issuecomment-51286224.
http://www.thoughtcrime.org
@moxie0 I fear you might be right about no activity in the log, as it seems to not even seriously try to send (I know sounds weird, as it's just a subjective feeling... ).
OK, so let's try more things and capture the logs:
1st - rebooted phone, opened TS via tap on the notification, created log: http://hastebin.com/imibefowob
2nd - sent a test msg (push) to one of my contacts, sent a secure SMS to someone else, sent an insecure SMS to a third person, took my other phone, with a working instance of TS, sent a push message to my main phone number, shows sent, nothing received after 40+ minutes. log after tests: http://hastebin.com/odosiwesel
I also have the Android SDK for Linux installed on my PC, if you need more info. lol or next time you are in CH I can bring my phone to you ;-)
In any case thanks for taking the time to trace this down!
If you delete the entire thread of messages this phantom message is from, then restart TextSecure does it work?
Deleted the thread, restarted the mobile - no change.
However an empty (no messages) thread of that contact comes back after locking and reopening TS.
Any further ideas for me to try?
I just tried deleting push and reregistering: http://hastebin.com/ukuzigojed.md
Number is redacted, next project for whispersys will be an encrypted pastebin ;-)
@moxie0 anything else i could try?
@moxie0 I deleted all messages and still had the issue. gradually more stuck messages started turning up, which all didn't deliver once the passphrase was entered.
So I went on and did a wipe of the app data, now it seems to work once again. still puzzled as to why it stopped working, and no way to fix it.
I took a logcat after it was back alive, don't know if this helps, but I saw a couple of GCM/Dalvik/GTalkService related log entries that also contained org.thoughtcrime.securesms.
couldn't make much sense out of it, but I'm pretty sure you can:
https://paste.ee/p/CVWJZ
related #2287, #2522, #2221
this issue is over a year old, all the debug logs 404, and related issues have all been marked as resolved. closing as resolved. If you're still experiencing this issue please check back in and comment here with a fresh debug log and I will reopen this issue.