Bug 119467

Summary: meanwhile keeps going offline after about 1 minute
Product: [Unmaintained] kopete Reporter: Andy Petruski <petruski>
Component: Meanwhile pluginAssignee: Jeremy Kerr <jk>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: kopete-bugs-null
Priority: LO    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andy Petruski 2006-01-03 22:37:30 UTC
Version:           kopete 0.11 , meanwhile 0.4.2 (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.4 
OS:                Linux

About 1 minute after going online kopete/meanwhile always goes offline.  Messages are as follows:

meanwhile-Message: adding cipher RC2/40 Cipher
meanwhile-Message: session state: starting
meanwhile-Message: session state: handshake sent
meanwhile-Message: session state: handshake acknowledged
meanwhile-Message: session state: login sent
meanwhile-Message: session state: login acknowledged
meanwhile-Message: starting service Instant Messaging
meanwhile-Message: started service Instant Messaging
meanwhile-Message: starting service Presence Awareness
meanwhile-Message: channel 0x00000001 state: waiting
meanwhile-Message: channel 0x00000001 state: initializing
meanwhile-Message: channel 0x00000001 state: waiting
meanwhile-Message: session state: started
meanwhile-Message: channel 0x00000001 selected no cipher
meanwhile-Message: channel 0x00000001 state: open
meanwhile-Message: started service Presence Awareness
meanwhile-Message: session state: stopping
meanwhile-Message: stopping service Instant Messaging
meanwhile-Message: stopped service Instant Messaging
meanwhile-Message: stopping service Presence Awareness
meanwhile-Message: channel 0x00000001 state: closing
meanwhile-Message: stopped service Presence Awareness
meanwhile-Message: session state: stopped
Comment 1 Jeremy Kerr 2006-01-04 01:04:52 UTC
could you compile with --enable-debug? This should pin down the cause of the disconnects. At the moment it looks like the server is closing the connection (is this a publically-accessible server, or IBM internal?)

However, the dev-0.12 branch has lots of fixes to the meanwhile plugin - details are at http://ozlabs.org/~jk/projects/kopete-meanwhile if you'd like to try.
Comment 2 Andy Petruski 2006-01-04 16:56:14 UTC
It is an IBM internal server. I'll see if I can try the dev branch. 

Here are the debug messages:

kopete (meanwhile): [MeanwhileLibrary::MeanwhileLibrary(MeanwhileAccount*)] 
kopete (meanwhile): [bool MeanwhileLibrary::isConnected()] 
kopete (meanwhile): [void MeanwhileLibrary::login()] 
kopete (meanwhile): [KExtendedSocket* MeanwhileLibrary::getConnectedSocket()] 
kopete (meanwhile): [void MeanwhileLibrary::newSession()] 
meanwhile-Message: adding cipher RC2/40 Cipher
meanwhile-Message: session state: starting
kopete (meanwhile): [static void MeanwhileLibrary::_stateChange(mwSession*, mwSessionState, guint32)] 
kopete (meanwhile): Unhandled state change 0
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
meanwhile-Message: session state: handshake sent
kopete (meanwhile): [static void MeanwhileLibrary::_stateChange(mwSession*, mwSessionState, guint32)] 
kopete (meanwhile): Unhandled state change 1
kopete (meanwhile): [void MeanwhileLibrary::slotSocketReader()] 
meanwhile-Message: session state: handshake acknowledged
kopete (meanwhile): [static void MeanwhileLibrary::_stateChange(mwSession*, mwSessionState, guint32)] 
kopete (meanwhile): Unhandled state change 2
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
meanwhile-Message: session state: login sent
kopete (meanwhile): [static void MeanwhileLibrary::_stateChange(mwSession*, mwSessionState, guint32)] 
kopete (meanwhile): Unhandled state change 3
kopete (meanwhile): [void MeanwhileLibrary::slotSocketReader()] 
meanwhile-Message: session state: login acknowledged
kopete (meanwhile): [static void MeanwhileLibrary::_stateChange(mwSession*, mwSessionState, guint32)] 
kopete (meanwhile): [void MeanwhileLibrary::session_loginAck(mwSession*)] 
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
kopete (meanwhile): got login info. username: petruski@us.ibm.com - Andrew E Petruski/Austin/IBM, nickname: Andrew E Petruski
kopete (meanwhile): [void MeanwhileLibrary::setState(Kopete::OnlineStatus, QString)] 
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
kopete (meanwhile): [void MeanwhileLibrary::addContacts(const QDict<Kopete::Contact>&)] 
kopete (meanwhile): Adding contact: '<removed>'
.
.
.
meanwhile-Message: starting service Instant Messaging
meanwhile-Message: started service Instant Messaging
meanwhile-Message: starting service Presence Awareness
meanwhile-Message: channel 0x00000001 state: waiting
meanwhile-Message: channel 0x00000001 state: initializing
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
meanwhile-Message: channel 0x00000001 state: waiting
meanwhile-Message: session state: started
kopete (meanwhile): [static void MeanwhileLibrary::_stateChange(mwSession*, mwSessionState, guint32)] 
kopete (meanwhile): Unhandled state change 6
kopete (meanwhile): [void MeanwhileLibrary::slotSocketReader()] 
kopete (meanwhile): [void MeanwhileLibrary::slotSocketReader()] 
kopete (meanwhile): [void MeanwhileLibrary::slotSocketReader()] 
meanwhile-Message: channel 0x00000001 selected no cipher
meanwhile-Message: channel 0x00000001 state: open
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
meanwhile-Message: started service Presence Awareness
kopete (meanwhile): [void MeanwhileLibrary::slotSocketReader()] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [static void MeanwhileLibrary::_on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (meanwhile): [void MeanwhileLibrary::on_aware(mwAwareList*, mwAwareSnapshot*)] 
kopete (connectionstatus): [void ConnectionStatusPlugin::slotCheckStatus()] 
kopete (connectionstatus): [void ConnectionStatusPlugin::setConnectedStatus(bool)] Setting m_pluginConnected to true
kopete (meanwhile): [bool MeanwhileLibrary::isConnected()] 
kopete (connectionstatus): [void ConnectionStatusPlugin::setConnectedStatus(bool)] We're connected
kopete (connectionstatus): [void ConnectionStatusPlugin::setConnectedStatus(bool)] Setting m_pluginConnected to false
kopete (meanwhile): [bool MeanwhileLibrary::isConnected()] 
kopete (meanwhile): [void MeanwhileLibrary::logoff()] 
meanwhile-Message: session state: stopping
kopete (meanwhile): [static void MeanwhileLibrary::_stateChange(mwSession*, mwSessionState, guint32)] 
kopete (meanwhile): Unhandled state change 7
meanwhile-Message: stopping service Instant Messaging
meanwhile-Message: stopped service Instant Messaging
meanwhile-Message: stopping service Presence Awareness
meanwhile-Message: channel 0x00000001 state: closing
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
meanwhile-Message: stopped service Presence Awareness
kopete (meanwhile): [static int MeanwhileLibrary::_writeToSocket(mwSession*, const char*, gsize)] 
kopete (meanwhile): [int MeanwhileLibrary::writeToSocket(const char*, unsigned int)] 
kopete (meanwhile): [static void MeanwhileLibrary::_closeSocket(mwSession*)] 
kopete (meanwhile): [void MeanwhileLibrary::closeSocket()] 
meanwhile-Message: session state: stopped
kopete (meanwhile): [static void MeanwhileLibrary::_stateChange(mwSession*, mwSessionState, guint32)] 
kopete (meanwhile): [void MeanwhileLibrary::session_stop(mwSession*, unsigned int)] 
kopete (meanwhile): [virtual MeanwhileLibrary::~MeanwhileLibrary()] 
kopete (meanwhile): [static void MeanwhileLibrary::_handler_clear(mwSession*)] 
kopete (connectionstatus): [void ConnectionStatusPlugin::setConnectedStatus(bool)] We're offline
Comment 3 Jeremy Kerr 2006-01-04 17:08:51 UTC
Could you also try disabling the connection status plugin? Looks like this is telling the meanwhile plugin to disconnect.

Thanks!
Comment 4 Andy Petruski 2006-01-04 17:44:13 UTC
That did the trick.  Thanks!  
I'm happy with the workaround.  Is there anything you'd like me to do to help debug the root cause?
Comment 5 Jeremy Kerr 2006-01-05 03:58:37 UTC
Andy: I shouldn't need further help - however, if I can't replicate the problem, I'll get in touch.

Changing to lower priority as there is a simple workaround. 
Comment 6 Justin Zobel 2021-03-09 22:41:21 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 7 Christoph Cullmann 2024-09-18 18:28:25 UTC
Dear user, unfortunately Kopete is no longer maintained.

Please migrate to another solution, e.g. for Jabber a possibility is Kaidan, for Matrix a candidate is NeoChat.