vermule / gtalksms

Automatically exported from code.google.com/p/gtalksms
0 stars 0 forks source link

GTalkSMS Services fails to reconnect or just vanishes #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sadly since 1.5 or so, gtalksms fails to achieve a permanent xmpp connection. I 
am using a 2 Account Setup where both accounts are no gtalk but pure xmpp 
accounts on my server. Also I am usually letting gtalksms run all the time. 
Which has worked fine and stable a few versions ago.

There a 2 things which I can observe:
- the gtalksms service shows up in the android service list, but gtalksms fails 
to reestablish the xmpp connection, also pressing the start/stop button in the 
gtalksms menu fails to reestablish the connection. In this situation the memory 
footprint of the gtalksms service is around 12MB which is more than double as 
usual.
- the gtalksms service just vanishes (I am not using any automatic app/service 
killer)

I have attached the output of the new loging function. There is one particular 
line which came to my attention: "xmpp got an unexpected normal disconnection"
Looking at the source, it seems that this should not happen.

What version of the product are you using? On what operating system?
Using the donate 1.6.1 Version of GTalkSMS on a Samsung Galaxy S with 2.2.1 
(Samsung FW JPY)

Please provide any additional information below.
Version: 1.6.1
Kernel info: 2.6.32.9
root@SEP-51 )
#1 Mon Dec 20 15:55:57 KST 2010

--------- beginning of /dev/log/main
01-07 15:00:24.613 W/gtalksms(28399): xmpp got an unexpected normal 
disconnection
01-07 15:00:24.613 V/gtalksms(28399): broadcasting state transition from 2 to 0
01-07 15:00:24.625 D/gtalksms(28399): widget onReceive 
com.googlecode.gtalksms.XMPP_CONNECTION_CHANGED
--------- beginning of /dev/log/system
01-07 16:03:37.055 D/gtalksms(28399): Download begins
01-07 16:03:37.055 D/gtalksms(28399): Downloading 
url:http://gtalksms.googlecode.com/hg/AUTHORS
01-07 16:03:37.668 D/gtalksms(28399): downloaded in0 sec
01-07 16:03:37.668 D/gtalksms(28399): Download begins
01-07 16:03:37.668 D/gtalksms(28399): Downloading 
url:http://gtalksms.googlecode.com/hg/Donors
01-07 16:03:37.879 D/gtalksms(28399): downloaded in0 sec
01-07 16:03:37.883 D/gtalksms(28399): Download begins
01-07 16:03:37.883 D/gtalksms(28399): Downloading 
url:http://gtalksms.googlecode.com/hg/Changelog
01-07 16:03:38.188 D/gtalksms(28399): downloaded in0 sec

Original issue reported on code.google.com by fschm...@gmail.com on 7 Jan 2011 at 4:18

GoogleCodeExporter commented 9 years ago
It is a shame the logs *start* with that unexpected message, although it leads 
me to conclude the comment in the code is wrong - that the xmpp lib may call 
that function even when we didn't explicitly request a disconnect (ie, that if 
something in the code triggered an explicit disconnect request, I'd expect to 
see evidence of that in the logs too)  It probably just means we need to make 
that code identical to the "error disconnection" case and auto reconnect.

Original comment by skippy.hammond@gmail.com on 7 Jan 2011 at 11:50

GoogleCodeExporter commented 9 years ago
It's a normal disconnect that's not initiated by GTalkSMS (xmpp server side?).
Until now, this "error" was manage as a normal xmpp stop.
It's now managed as an error and reconnection process is started.

Original comment by Florent....@gmail.com on 8 Jan 2011 at 12:56

GoogleCodeExporter commented 9 years ago
Fixed in v1.7

Original comment by Florent....@gmail.com on 8 Jan 2011 at 11:33

GoogleCodeExporter commented 9 years ago

Original comment by fschm...@gmail.com on 25 Aug 2011 at 7:51