Bug 307758 - "Connecting…" indicator keeps spinning forever on login
Summary: "Connecting…" indicator keeps spinning forever on login
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Unmaintained
Component: presence-applet (show other bugs)
Version: git-latest
Platform: unspecified Linux
: NOR normal
Target Milestone: 0.5.2
Assignee: Telepathy Bugs
URL:
Keywords:
: 312617 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-03 00:07 UTC by Elias Probst
Modified: 2013-01-04 20:10 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.5.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2012-10-03 00:07:39 UTC
When using the "Restore presence on login" option and KTP restores an "Online" state on login, the "Connecting…" indicator of the presence-applet keeps spinning forever, until one clicks on it to open the contact list.
Comment 1 David Edmundson 2012-10-03 00:08:59 UTC
Run this:

for account in `mc-tool list` ; do mc-tool show $account  | grep Presences -A 5; done
Comment 2 Elias Probst 2012-10-03 08:27:00 UTC
(In reply to comment #1)
> Run this:
> for account in `mc-tool list` ; do mc-tool show $account  | grep Presences
> -A 5; done

As long as I don't click on the presence-icon, this is the result:
Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: offline (1) ""
    Changing: no

Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: offline (1) ""
    Changing: no

Presences:
   Automatic: available (2) ""
     Current: available (2) ""
   Requested: available (2) ""
    Changing: yes


As soon as I click on the presences-applet icon (contact-list shows up), the result changes immediately to this:

Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: offline (1) ""
    Changing: no

Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: offline (1) ""
    Changing: no

Presences:
   Automatic: available (2) ""
     Current: available (2) ""
   Requested: available (2) ""
    Changing: no
Comment 3 David Edmundson 2012-10-03 09:51:39 UTC
And once you clicked and the contact list showed up, the indicator stopped spinning?
Comment 4 Elias Probst 2012-10-03 17:54:18 UTC
(In reply to comment #3)
> And once you clicked and the contact list showed up, the indicator stopped
> spinning?
Exactly!
Comment 5 Matthias Kretz 2012-11-09 16:30:10 UTC
I have a spinning indicator and it doesn't stop - no matter what. I can remove the applet and readd it. I can go away, offline, online, whatever. I can open / close the contact list. The indiciator is always spinning. I mean, it's even spinning when I'm completely offline. It shows the offline icon and on top the spinner.
Comment 6 Elias Probst 2012-11-09 16:39:29 UTC
(In reply to comment #5)
> I have a spinning indicator and it doesn't stop - no matter what. I can
> remove the applet and readd it. I can go away, offline, online, whatever. I
> can open / close the contact list. The indiciator is always spinning. I
> mean, it's even spinning when I'm completely offline. It shows the offline
> icon and on top the spinner.

Matthias Kretz: What's your result for comment#1?
Comment 7 Matthias Kretz 2012-11-09 16:52:09 UTC
when I'm Available:
Presences:
   Automatic: available (2) ""
     Current: available (2) ""
   Requested: available (2) ""
    Changing: no

Presences:
   Automatic: available (2) ""
     Current: available (2) ""
   Requested: available (2) ""
    Changing: no

Presences:
   Automatic: available (2) ""
     Current:  (0) ""
   Requested: available (2) ""
    Changing: yes

when I'm Offline:
Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: offline (1) ""
    Changing: no

Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: offline (1) ""
    Changing: no

Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: offline (1) ""
    Changing: yes

That third one is "Service: sofiasip-sip".
Comment 8 Elias Probst 2012-11-09 17:39:14 UTC
It looks like the initial case described by me happens without SIP.
The one described by you happened here since I added SIP, too…
Comment 9 Nilesh Govindrajan 2012-12-05 17:17:12 UTC
Not sure if this is related, I'm on v0.5.1. The presence widget keeps spinning and changing status using the presence widget doesn't change the status. If it is changed through contact list, the presence widget icon changes, but the spinner doesn't stop.
Comment 10 David Edmundson 2012-12-06 01:48:56 UTC
Found the cause.

ContactList follows "connectionStatus" from GlobalPresence presence applet follows "isChangingPresence". Hence different.

The contact list was changed for this exact reason.
Comment 11 Andreas Sturmlechner 2012-12-08 08:44:47 UTC
I am just using XMPP on 0.5.1 and seeing all of the described phenomenons. Most of the time, the spinning stops once I click at the presence widget. Sometimes it seems to only stop when I change the presence in the upcoming contacts window. Right now it just spins and spins and will never connect no matter what I do.
Comment 12 Andreas Sturmlechner 2012-12-08 10:38:20 UTC
Trying to change the password in the Accounts KCM to provoke anything out of ktp didn't do nothing, not even kwallet came up. Instead, ktp is running in an endless loop, pestering the network with constantly trying to connect to the XMPP account. Which also drains battery time...

If there is a fix, could you point me to it?
Comment 13 Andreas Sturmlechner 2012-12-09 17:30:24 UTC
OK, sorry for the noise. Yesterday's trouble was caused by an unavailable jabber server. Now what remains is the spinning widget and a suboptimal notification message when the server is not available.
Comment 14 David Edmundson 2012-12-11 20:48:44 UTC
Git commit 45873f012b32c68f6968d788b113582a968baa68 by David Edmundson.
Committed on 09/12/2012 at 22:58.
Pushed by davidedmundson into branch 'kde-telepathy-0.5'.

Show status as "busy" only when connecting and not when changing presence

This makes it consistent with the contact list and AccountsKCM
REVIEW: 107653

M  +15   -3    src/presenceapplet.cpp
M  +1    -0    src/presenceapplet.h

http://commits.kde.org/telepathy-presence-applet/45873f012b32c68f6968d788b113582a968baa68
Comment 15 Martin Klapetek 2013-01-04 20:10:34 UTC
*** Bug 312617 has been marked as a duplicate of this bug. ***