textsecure-qml icon indicating copy to clipboard operation
textsecure-qml copied to clipboard

textsecure crashes when connecting to server

Open MrSqueakySquirrel opened this issue 8 years ago • 18 comments

What is expected: TextSecure is started and connects with server. What happens instead: When TextSecure is started and a connection to the internet is available the application crashes when trying to connect to the server.

Here are the latest log entries. The websocket.Dialerror appears multiple times in todays logs, but not in previous logs.

[34mINFO[0m[2017/04/11 20:29:32] websocket.Dial wss://textsecure-service.whispersystems.org:443/v1/websocket/?login=%2B49{PHONE_NUMBER}&password={PASSWORD}: dial tcp: lookup textsecure-service.whispersystems.org: Temporary failure in name resolution [34mINFO[0m[0000] Setup completed
[37mDEBU[0m[2017/04/11 20:29:46] PUT /v1/directory/tokens 200

When TextSecure is started and no connection to the internet is available the application shows a warning and remains responsive, (expected behaviour)

MrSqueakySquirrel avatar Apr 11 '17 19:04 MrSqueakySquirrel

Since today (~ 8 hours ago), the app also crashes for me, however, I do receive new messages but the app intermediately quits after launch.

No errors get logged when there is a network connection:

INFO[0000] Setup completed                              
DEBU[2017/04/11 22:37:21] PUT /v1/directory/tokens 200
                

Following the advice in this report by launching the app in flight mode, does work: the app remains running. But then the following line (of course) shows up in the log:

INFO[0000] Setup completed                              
INFO[2017/04/11 22:38:34] websocket.Dial wss://textsecure-service.whispersystems.org:443/v1/websocket/?login=%2B{PHONE_NUMBER}&password={PASSWORD}: dial tcp: lookup textsecure-service.whispersystems.org: Temporary failure in name resolution 

timothymctim avatar Apr 11 '17 20:04 timothymctim

@janimo wrote here:

sorry I don't know off the top of my head what it could be, I haven't worked on the project in over a year and no longer have a working phone to test with.

Lots of sad news these days for ubuntuphone users :-(

kallekruse avatar Apr 14 '17 15:04 kallekruse

It seems that the application receives an empty message from the server an tries to extract the mac from a non-existing offset which causes a "panic: runtime error: slice bounds out of range". I could fix (?) this in the console version by adding:

if len(msg) == 0 {
    return nil
}

to the handleReceivedMessage (textsecure.go:460) function.

As far as I can see, there is nothing wrong with just ignoring those empty messages.

K14D avatar Apr 25 '17 14:04 K14D

Are you going to release a fixed version for ubuntu phone?

K14D avatar Apr 26 '17 11:04 K14D

Eventually I'll probably do so. I'll have to check my long unused build setup and ask others to test the click before uploading to the store.

janimo avatar Apr 26 '17 11:04 janimo

It'd be highly appreciated if you found time to do so. Just another +1.

luxpir avatar Apr 26 '17 12:04 luxpir

I really appreciate your effort. Let me know if I can help.

K14D avatar Apr 26 '17 13:04 K14D

I built a new click, could any of you test it, I don't have a phone anymore. BTW it's just running ./build.sh rel from the source dir, I'd be curious if that works for others as well. It pulls a few docker images and needs to have a local GOPATH with textsecure and textsecure-qml cloned. https://startx.ro/textsecure.jani_0.3.12_armhf.click

janimo avatar Apr 29 '17 17:04 janimo

In a short test your click runs fine on my Aquaris E4.5.

I tried to build the click myself, but the package github.com/ubuntu-core/snappy/helpers could not be found. So the build failed.

K14D avatar Apr 29 '17 19:04 K14D

It must have moved or gone away since I last built, I still have it in my local $GOPATH. I'll need to find its new location, thanks for the report.

janimo avatar Apr 29 '17 19:04 janimo

I am very happy to read that you are finally work on the project. On Pro5 runs fine too.

Thanks for all Jani (your Signal client library for Go works perfect on Sailfish OS, under Whisperfish).

Guillerm2 avatar May 03 '17 01:05 Guillerm2

Any plans to upload to the store? Otherwise, how do I manually install? Just a pkcon install-local textsecure.jani_0.3.12_armhf.click without needing to uninstall the current app first?

timothymctim avatar May 14 '17 21:05 timothymctim

Just a pkcon install-local textsecure.jani_0.3.12_armhf.click without needing to uninstall the current app first?

Yes. At least for me, this worked fine.

K14D avatar May 15 '17 10:05 K14D

Works like a charm, thanks everybody!

timothymctim avatar May 15 '17 19:05 timothymctim

Hi, everybody, the click package download link gives me a certificate warning, and trying to install it yields a 'signature verification error': $ pkcon install-local textsecure.jani_0.3.12_armhf.click ... Schwerwiegender Fehler: .../textsecure.jani_0.3.12_armhf.click failed to install. Cannot install .../textsecure.jani_0.3.12_armhf.click: Signature verification error: debsig: Origin Signature check failed. This deb might not be signed. I suppose this would work with the --allow-untrustedparameter? All those circumvented security barriers give me the creeps - any chance to upload the fixed version to the store (ideally the OpenStore), @janimo ?

kallekruse avatar May 20 '17 10:05 kallekruse

I have pushed the 0.3.12 click that others here have tested to the app store, thanks @K14D @timothymctim ! I haven't done this since February 2016, I hope I didn't botch anything. Cheers

janimo avatar May 20 '17 19:05 janimo

Works fine - thanks again, everybody!

kallekruse avatar May 22 '17 17:05 kallekruse

+1

AnneGilles avatar May 22 '17 18:05 AnneGilles