Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime error #33

Closed
abarisani opened this issue Apr 25, 2017 · 3 comments
Closed

runtime error #33

abarisani opened this issue Apr 25, 2017 · 3 comments

Comments

@abarisani
Copy link
Contributor

Hello,

I am currently experiencing the following:

panic: runtime error: slice bounds out of range

goroutine 194 [running]:
github.com/janimo/textsecure.handleReceivedMessage(0x0, 0x0, 0x0, 0x555880, 0x10a78040)
.../go/src/github.com/janimo/textsecure/textsecure.go:462 +0xa2c
github.com/janimo/textsecure.StartListening(0x590c68, 0x5)
.../go/src/github.com/janimo/textsecure/websocket.go:204 +0x1e0

Could this be handled cleanly? Also I am not sure what's the cause at the moment, could be connectivity issues but I'm not sure.

@janimo
Copy link
Owner

janimo commented Apr 25, 2017

Hi,
it's probably the same as
janimo/textsecure-qml#47

I'll have to try the code against new version of the server and maybe newer clients. I'd guess new types of messages have been added which the old code does not handle well?

@abarisani
Copy link
Contributor Author

I applied the workaround listed in janimo/textsecure-qml#47 (comment) and I confirm that an empty message was received (I debugged the function byte array argument and it was empty).

Can the fix be applied?

Thanks!

@janimo
Copy link
Owner

janimo commented Apr 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants