ChatSecureAndroid icon indicating copy to clipboard operation
ChatSecureAndroid copied to clipboard

First OTR setup works, then randomly ChatSecure forgets settings.

Open CarlVanHouten opened this issue 11 years ago • 1 comments
trafficstars

I set up ChatSecure on my smartphone (Nexus 4, CM11), everything okay. Then I add one user into my list and start OTR. I veryfied the fingerprint and on the other side it's the same.

Now I communicate with my contact, everything is encrypted, file transfer works, I close the conversation, I open it again and OTR runs, everything encrypted.

But later, maybe 30, 60, 120 minutes, I open ChatSecure and want to write and realize that OTR is not active. I tried to start it, but the circle, next to the lock, is just circling around and nothing happens. 5, 10 tries later, the same.

Then, maybe 1-3 hours later, I forgot about this and then I see that OTR is active again and everything is fine.

The problem is, that it isn't always working, but if it is, then it's working like a charm.

Btw.: I'm using my own xmpp server (OpenFire) on a VPS.

--- Edit:

No I have tried the following, after I wasn't able to activate OTR session:

Smartphone A -> reboot Smartphone B -> reboot

Smartphone A starts OTR --> Fingerprint verification nedded (again!) Smartphone B starts OTR --> Fingerprint verification nedded (again!)

OTR works again, both devices have "green" OTR activated.

I guess, if every contact (person) would restart its smartphone, it should work. But I cant ask everybody to do this. I will use my two devices and see when OTR won't work anymore. When this happens, I'll restart both. After 3,4,5 or 10 time, if that works, it could be (maybe) a routine that is startet only at first loading of ChatSecure. (?)

---Edit:

Some minutes, after I have rebooted my device, I tried to start OTR at a person that has OTR desabled, didn't work. But then my contact, where OTR activation was succesful, didn't work, too! Reboot: Everything fine.

My guess: I you try to activate OTR at somebody, that doesn't use OTR, nothing will work. (only the reboot) Until you only activate OTR, where you are 100% sure, that this contact uses OTR, it will work. Not 100% sure, but I'll keep on trying.

---Edit:

Now it is officially. All the day it was not possible to write to a collegue "encrypted" and then later, he was offline. Then I sent him an email and asked if ChatSecure is running. He said that his battery died. He recharged it and booted it. At this moment, when he was online again and I wanted to write him, the OTR session was active again!

--> If OTR is not working, then a reboot helps! So, what is happening at the start of ChatSecure? This should be repeated or put into the OTR routine.

I'm no developer, I'm trying just to tell what happened in simple words :-)

CarlVanHouten avatar May 24 '14 00:05 CarlVanHouten

I have seen the same behavior.

I'am in the phase to learn the code, so maybe I will be able to find this issue after the learn phase

git001 avatar May 29 '14 21:05 git001