Bug 129366 - Connection to ICQ server fails every few secounds
Summary: Connection to ICQ server fails every few secounds
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: ICQ and AIM Plugins (show other bugs)
Version: 0.12
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 129336 129811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-18 16:21 UTC by Siegmar Alber
Modified: 2006-07-12 15:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
log of oscar login and automatic logout after 2sec (27.65 KB, text/plain)
2006-07-08 15:44 UTC, Daniel Frein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Siegmar Alber 2006-06-18 16:21:07 UTC
Version:           0.12 (using KDE KDE 3.5.0)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.3 
OS:                Linux

Kopete connects to the server, it shows me on- and offline status of my contacts, than after a few secounds it disconnects. After that it tryes to reconnect and all beginns again. 

With 0.12Beta2 everything is ok. This strange behaviour is only with the final 0.12.

Started from the console I get these messages shortly before the disconnect:

kopete (oscar - raw protocol): [void KNetworkByteStream::slotError(int)] Socket error 17
kopete (oscar - raw protocol): [void KNetworkConnector::slotError(int)] Error detected: 17
kopete (oscar - raw protocol): [void ClientStream::cr_error()]
kopete (oscar - raw protocol): [void KNetworkByteStream::slotConnectionClosed()] Socket has been closed.
kopete (oscar - raw protocol): ..by ourselves!
kopete (oscar - raw protocol): socket error is Die Gegenstelle hat die Verbindung beendet
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar): [void OscarAccount::logOff(Kopete::Account::DisconnectReason)] accountId='198317807'
kopete (oscar - raw protocol): [void ConnectionHandler::clear()] Clearing all connections
kopete (oscar - raw protocol): [void SSIManager::clear()] Clearing the SSI list
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete: statistics - status change for VN5gbDFYq8 : 10
kopete: statistics - status change for 0HvAhGXy6E : 10
kopete: statistics - status change for BmlJPKQY3t : 10
kopete: statistics - status change for dZ47mc4m11 : 10
kopete: statistics - status change for 79WxLoN9MO : 40
kopete: statistics - status change for VzyCwm581R : 10
kopete: statistics - status change for ICQProtocol:198317807:228790429 : 10
kopete: statistics - status change for E1ev76kJgo : 10
kopete: statistics - status change for ICQProtocol:198317807:289535617 : 10
kopete: statistics - status change for ICQProtocol:198317807:316832231 : 10
kopete: statistics - status change for q4bVElklFd : 50
kopete: statistics - status change for ICQProtocol:198317807:343229176 : 50
kopete: statistics - status change for ZP2tqte2w5 : 40
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete (oscar/icq): [virtual void ICQAccount::disconnected(Kopete::Account::DisconnectReason)] Attempting to set status offline
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete (oscar - raw protocol): [void ConnectionHandler::remove(Connection*)] Removing connection 0x83b1f00
kopete (oscar - raw protocol): [void Client::nextICQAwayMessageRequest()] request queue count 1
kopete (oscar - raw protocol): [void KNetworkByteStream::slotConnectionClosed()] Socket has been closed.
kopete (oscar - raw protocol): ..by ourselves!
kopete (oscar - raw protocol): socket error is Kein Fehler feststellbar
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]


Hope you can find the bug ;-)

PS: Kopete, as KDE itself, is great!
Comment 1 Olivier Goffart 2006-06-20 14:48:11 UTC
*** Bug 129336 has been marked as a duplicate of this bug. ***
Comment 2 Benson Tsai 2006-06-29 15:21:31 UTC
I am getting this bug now and it only happens to one of my 4 account on icq/aim. I am using Kopete 0.12.

kopete (oscar - raw protocol): [void KNetworkByteStream::slotError(int)] Socket error 14
kopete (oscar - raw protocol): [void KNetworkConnector::slotError(int)] Error detected: 14
kopete (oscar - raw protocol): [void ClientStream::cr_error()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar): [void OscarAccount::logOff(Kopete::Account::DisconnectReason)] accountId='VRWarper'
kopete (oscar - raw protocol): [void ConnectionHandler::clear()] Clearing all connections
kopete (oscar - raw protocol): [void SSIManager::clear()] Clearing the SSI list
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete (oscar/aim): [virtual void AIMAccount::disconnected(Kopete::Account::DisconnectReason)] Attempting to set status offline
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete (oscar - raw protocol): [void ConnectionHandler::remove(Connection*)] Removing connection 0x89574d0
kopete (oscar - raw protocol): [void KNetworkByteStream::slotConnectionClosed()] Socket has been closed.
kopete (oscar - raw protocol): ..by ourselves!
kopete (oscar - raw protocol): socket error is no error
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [void KNetworkByteStream::slotConnectionClosed()] Socket has been closed.
kopete (oscar - raw protocol): ..by ourselves!
kopete (oscar - raw protocol): socket error is no error
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [void CoreProtocol::addIncomingData(const QByteArray&)] Received 35 bytes.
kopete (oscar - raw protocol): [virtual Transfer* SnacProtocol::parse(const QByteArray&, uint&)] family: 3 subtype: 12 flags: 0 id: 3141514777
Comment 3 Daniel Frein 2006-07-04 07:49:15 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Tanim Islam 2006-07-04 12:39:51 UTC
Seems to work now for some reason, or at least it has for ~ 2 weeks now. Perhaps something with AOL's servers initially changed and then changed back? Strangely enough, GAIM seemed to work fine through this period when kopete didn't work with AIM or ICQ.
Comment 5 Daniel Frein 2006-07-04 13:41:03 UTC
well, for me it's still broken. today I did a fresh build of 0.12 and tried it again. switching back to kopete from KDE 3.5.3 solves my problems, but with 0.12, I am only able to stay connected via ICQ; the same account does not work with AIM.  about a second after kopete has sucessfully conneted to AIM, it gets (reproducable) disconnected--just as described above :-(
Comment 6 Jon Cochran 2006-07-07 01:56:54 UTC
I am having the same problem with Kopete .12 on Kubuntu 6.06.

AIM will disconnect randomly after being online for a minute or so.  GAIM doesn't seem to exhibit this behaviour.

Comment 7 Roman Jarosz 2006-07-08 14:35:41 UTC
Can someone who is still experiencing this problem send full log or at least couple lines before KNetworkByteStream::slotError(int). Thanks.
Comment 8 Daniel Frein 2006-07-08 15:44:21 UTC
Created attachment 16923 [details]
log of oscar login and automatic logout after 2sec

please find attached the requested log of kopete. kopete 0.12 was build with
--enable-debug=full using the provided debian scripts. a small patch was added
to fix Bug 127749 (kopeteaway.cpp). just ask if you require more information.
Daniel
Comment 9 Roman Jarosz 2006-07-09 19:09:32 UTC
Daniel Frein was using ICQ account as an AIM account. He fixed his problem by changing accounts in kopete.

So I still need full log.
Thanks
Comment 10 Danil 2006-07-10 20:56:43 UTC
Dear Daniel,

The following messages arise after all contacts are received from a server:

--------cut--------------
kopete (oscar/icq): [virtual void ICQContact::userInfoUpdated(const QString&, const UserDetails&)] extendedStatus is xxxxxxxx
kopete (oscar - raw protocol): [void Client::addICQAwayMessageRequest(const QString&, Client::ICQStatus)] adding away message request for 21943113 to queue
kopete (oscar - raw protocol): [void Client::removeICQAwayMessageRequest(const QString&)] removing away message request for 21943113 from queue
kopete (oscar - raw protocol): [virtual Transfer* SnacProtocol::parse(const QByteArray&, uint&)] family: 3 subtype: 11 flags: 0 id: xxxxxxxxxxxx
kopete (oscar - raw protocol): [void UserDetails::fill(Buffer*)] Got user info for 157553751
kopete (oscar - raw protocol): [Oscar::DWORD Oscar::parseCapabilities(Buffer&, QString&)] CAPS: CAP_TYPING CAP_ICQSERVERRELAY CAP_UTF8 CAP_XTRAZ CAP_ISICQ
kopete (oscar/icq): [virtual void ICQContact::userInfoUpdated(const QString&, const UserDetails&)] extendedStatus is xxxxxxxxxxxxx
kopete (oscar - raw protocol): [void Client::removeICQAwayMessageRequest(const QString&)] removing away message request for xxxxxxxx from queue
kopete (oscar - raw protocol): [void KNetworkByteStream::slotError(int)] Socket error 10
kopete (oscar - raw protocol): [void KNetworkConnector::slotError(int)] Error detected: 10
kopete (oscar - raw protocol): [void ClientStream::cr_error()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar): [void OscarAccount::logOff(Kopete::Account::DisconnectReason)] accountId='xxxxxxxx'
kopete (oscar - raw protocol): [void ConnectionHandler::clear()] Clearing all connections
kopete (oscar - raw protocol): [void SSIManager::clear()] Clearing the SSI list
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete (oscar/icq): [virtual void ICQAccount::disconnected(Kopete::Account::DisconnectReason)] Attempting to set status offline
kopete: [void KopeteWindow::slotAccountStatusIconChanged(Kopete::Contact*)] [variant:  toString=]
kopete (oscar - raw protocol): [void ConnectionHandler::remove(Connection*)] Removing connection 0x82923d0
kopete (oscar - raw protocol): [void KNetworkByteStream::slotConnectionClosed()] Socket has been closed.
kopete (oscar - raw protocol): ..by ourselves!
kopete (oscar - raw protocol): socket error is no error
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete (oscar - raw protocol): [virtual void KNetworkConnector::done()]
kopete: [virtual void KopeteWindow::closeEvent(QCloseEvent*)] just closing because we have a system tray icon
kopete (oscar - raw protocol): [void Client::nextICQAwayMessageRequest()] request queue count 30
kopete: [void KopeteApplication::quitKopete()]
--------cut--------------


PS.
Full log contains confidential information. :-)  I can't provide you with one. Sorry.
Comment 11 Danil 2006-07-10 21:01:10 UTC
I am sorry. I was mistaken, having addressed only to Daniel. 
Comment 12 Roman Jarosz 2006-07-10 22:49:31 UTC
SVN commit 560658 by rjarosz:

Fix bug 129366 Connection to ICQ server fails every few secounds.
I broke it when was fixing another bug, I'm sorry.

BUG: 129366



 M  +1 -1      client.cpp  


--- branches/kopete/0.12/kopete/protocols/oscar/liboscar/client.cpp #560657:560658
@@ -1212,7 +1212,7 @@
         return;
 
 	if ( c->isSupported( 0x0002 ) ||
-	     c->supportedFamilies().count() == 0 ) //emit on login
+	     d->stage == ClientPrivate::StageOne ) //emit on login
 	{
 		emit socketError( code, string );
 	}
Comment 13 Matt Rogers 2006-07-10 23:01:10 UTC
can somebody with this problem test the fix that was committed to subversion and confirm that it works?
Comment 14 Danil 2006-07-12 08:05:49 UTC
I've applied this patch and now I get the following message trying to set online status:
The ICQ server thinks the client you are using is to old. 
Comment 15 Roman Jarosz 2006-07-12 08:57:10 UTC
Danil The ICQ server thinks the client you are using is to old, is diffrend bug 130630 that came up yesterday. Please apply patch from bug 130630 or update to current svn.

Thanks
Comment 16 Danil 2006-07-12 09:12:06 UTC
Dear Roman, 

The problem is solved!

Thank you!


Comment 17 Roman Jarosz 2006-07-12 09:24:02 UTC
Danil cool, and thaks.

Please all with this problem check your firewalls because this bug was caused by Kopete when it could not connect to icq buddy icon server.

It could be your firewall or they server was/is down.
If it's your firewalls you won't get icq pictures of your contacts.
Comment 18 Roman Jarosz 2006-07-12 15:24:37 UTC
*** Bug 129811 has been marked as a duplicate of this bug. ***