Bug 76520 - Kopete logs into MSN, connects and pops up current contacts and mail, and then disconnects. It will not stay logged in.
Summary: Kopete logs into MSN, connects and pops up current contacts and mail, and the...
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: MSN Plugin (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 76621 76714 77072 79067 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-01 19:02 UTC by Slaine Fullerton
Modified: 2004-05-12 23:52 UTC (History)
5 users (show)

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


Attachments
RTF document containing buggy characters in kopete MSN plugin display name (1.75 KB, text/rtf)
2004-05-11 00:58 UTC, Tom Simnett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slaine Fullerton 2004-03-01 19:02:16 UTC
Version:           unknown (using KDE 3.1.4)
Installed from:    SuSE
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-99-athlon

This is Running Kopete 0.8.0

I'd been running Kopete 0.7.4 when I was suddenly unable to connect to MSN for any sustained period of time.  It would connect, show my list of contacts an pop up a mail message, and then disconnect me.  I decided that I'd upgrade to Kopete 0.8.0 instead.  

This problem continues in v0.8.0, and is made worse by the application crashing about one in four times I run it.  I saved the backtrace from the last crash:

-----
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 3515)]

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...0x4197aa86 in waitpid ()
   from /lib/i686/libpthread.so.0
#0  0x4197aa86 in waitpid () from /lib/i686/libpthread.so.0
#1  0x40e6b010 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x4197996c in __pthread_sighandler () from /lib/i686/libpthread.so.0
#3  <signal handler called>
#4  0x412636e7 in QPtrVector<QConnectionList>::size() const ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#5  0x4264435d in MSNSocket::blockRead(QMemArray<char> const&) ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#6  0x4263fb95 in MSNSocket::pollReadBlock() ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#7  0x4263f5e7 in MSNSocket::readBlock(unsigned) ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#8  0x42650667 in MSNNotifySocket::parseCommand(QString const&, unsigned, QString const&) () from /opt/kde3/lib/libkopete_msn_shared.so.0
#9  0x42640334 in MSNSocket::parseLine(QString const&) ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#10 0x4263f419 in MSNSocket::slotReadLine() ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#11 0x4263d5f7 in MSNSocket::slotDataReceived() ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#12 0x42644653 in MSNSocket::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#13 0x4264651d in MSNAuthSocket::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#14 0x4265ade3 in MSNNotifySocket::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkopete_msn_shared.so.0
#15 0x4126269b in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x41262464 in QObject::activate_signal(int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40eba429 in KAsyncIO::readyRead() () from /opt/kde3/lib/libkdecore.so.4
#18 0x40e9de6f in KExtendedSocket::socketActivityRead() ()
   from /opt/kde3/lib/libkdecore.so.4
#19 0x40e9f6a8 in KExtendedSocket::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkdecore.so.4
#20 0x4126269b in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x412627da in QObject::activate_signal(int, int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x41591d90 in QSocketNotifier::activated(int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x4127f7f0 in QSocketNotifier::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x412006d6 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x411ff9fe in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x40df88c9 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#27 0x411ecdf5 in QEventLoop::activateSocketNotifiers() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x411a81f6 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x41214980 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x41214876 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x4120096f in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x08062e5c in ?? ()
#33 0xbffff1a0 in ?? ()
#34 0xbffff190 in ?? ()
-----

While Kopete doesn't crash EVERY time I start it, it does disconnect MSN each time.
Comment 1 Richard Smith 2004-03-02 17:12:17 UTC
I had this yesterday (apart from the crashes) but it's better again today. Possibly it was a server issue.
Comment 2 Lars Goldschlager 2004-03-02 19:10:14 UTC
I presenet and continue to present this bug as of this writting
Comment 3 Carsten Mueller 2004-03-02 19:22:43 UTC
i have the same problem since 2days.
(Kopete 0.8.0 KDE 3.2.0 SuSE 9.0 rpm´s)
Comment 4 Olivier Goffart 2004-03-02 22:38:57 UTC
About the disconnection:  It's a problem with the contactlist handling.
MSN sever suddenly decided to change every group number in the server list.

A simple solution could be to remove the contactlist.xml file.
If you don't want to loose data, you can repair it manualy, by removing every msn group information in it.  (i.e.  <plugin-data-field key="group"> AND <plugin-data-field key="xxx@msn.com id"> )
Comment 5 Carsten Mueller 2004-03-03 01:47:16 UTC
removing the contactlist.xml works fine.
thx :-)
Comment 6 Matt Rogers 2004-03-03 01:50:24 UTC
Do you think we should keep this bug open since the problem really lies in the 
MSN servers and they're going to mess everybody's contact list up anyways, or 
should we try to work around it? Personally, I vote for marking them as 
invalid because we shouldn't be putting hacks in our code because MSN decided 
to screw everybody's contact list up. :/

Comment 7 Jason Keirstead 2004-03-03 02:08:44 UTC
On March 2, 2004 08:50 pm, Matt Rogers wrote:
> should we try to work around it? Personally, I vote for marking them as 
> invalid because we shouldn't be putting hacks in our code because MSN decided 
> to screw everybody's contact list up. :/

To me, this is just another reason the often asked for option ( and too hastily dismissed )
to be able to tell Kopete to *NOT* sync the contact lists with the server.

In this case you could disable the sync, connect with MSN, move all your MSN contacts
to the root group, and reconnect, so you don't have MSN corrupting all your other data.

Comment 8 Richard Smith 2004-03-03 02:17:49 UTC
On Wednesday 03 March 2004 1:08 am, Jason Keirstead wrote:
> To me, this is just another reason the often asked for option ( and too
> hastily dismissed ) to be able to tell Kopete to *NOT* sync the contact
> lists with the server.

I agree. Here's what I think:

When a protocol finds something's different on the SSI to the local list, it 
tells libkopete, which then chooses either to update the contact list, ignore 
it, or ask the user, depending on something set in the preferences.

Richard

Comment 9 Jason Keirstead 2004-03-03 02:21:06 UTC
On March 2, 2004 09:17 pm, Richard Smith wrote:
> When a protocol finds something's different on the SSI to the local list, it 
> tells libkopete, which then chooses either to update the contact list, ignore 
> it, or ask the user, depending on something set in the preferences.

I have been pushing for a scheme like this for years it seems...

Comment 10 Martijn Klingens 2004-03-03 11:08:11 UTC
On Wednesday 03 March 2004 02:21, Jason Keirstead wrote:
> I have been pushing for a scheme like this for years it seems...

And we've been working towards an API in libkopete that supports this without 
code duplication in all plugins for years too.

I think we all want that, but the current framework doesn't allow it without 
considerable effort. For the longer term I'm all for it, but IMNSHO *all* the 
syncing should be handled consistently and protocol-independent in libkopete. 
Until it's moved there I object to ugly hacks to accomplish this.

Comment 11 Olivier Goffart 2004-03-03 12:47:47 UTC
*** Bug 76621 has been marked as a duplicate of this bug. ***
Comment 12 Olivier Goffart 2004-03-03 12:56:53 UTC
CVS commit by ogoffart: 

Fix the crahs of the bug 76520
CCMAIL: 76520-done@bugs.kde.org

This crash shound't happen anymore in KDE 3.2.1, i fixed another thing that make the
group being not renamed, so no crash.

Also, i would like to know if it's possible to commit in both two branch on the same commit


  M +1 -1      kdenetwork/kopete/protocols/msn/msnaccount.cpp   1.61.2.4


--- kdenetwork/kopete/protocols/msn/msnaccount.cpp  #1.61.2.3:1.61.2.4
@@ -645,5 +645,5 @@ void MSNAccount::addGroup( const QString
 void MSNAccount::slotKopeteGroupRenamed( KopeteGroup *g )
 {
-        if ( g->type() == KopeteGroup::Normal )
+        if ( notifySocket() && g->type() == KopeteGroup::Normal )
         {
                 if ( !g->pluginData( protocol(), accountId() + " id" ).isEmpty() &&


Comment 13 Olivier Goffart 2004-03-04 14:34:15 UTC
*** Bug 76714 has been marked as a duplicate of this bug. ***
Comment 14 Olivier Goffart 2004-03-09 13:52:47 UTC
*** Bug 77072 has been marked as a duplicate of this bug. ***
Comment 15 Dominique Devriese 2004-03-12 16:42:38 UTC
As can be seen in this debian bug report, apparently, it still occurs in kopete 3.2.1:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=237337
Or would this be a different bug ?

Should I reopen this bug ?
Comment 16 Olivier Goffart 2004-03-12 17:23:00 UTC
> Should I reopen this bug ?

The disconnection problem is fixed in HEAD,  not yet backported in BRANCH, i'm 
waiting to see if my fix has not side effect.

Will be probably in KDE 3.2.2

The actual solution to fix it is to remove the contactlist.xml

Comment 17 Olivier Goffart 2004-04-04 23:00:39 UTC
*** Bug 79067 has been marked as a duplicate of this bug. ***
Comment 18 Tom Simnett 2004-05-11 00:39:34 UTC
Removing contactlist.xml hasn't fixed this problem for me in KDE 3.2.2 with Kopete 0.8.2. It worked fine before, but now it has stopped. Could of course be fine by the morning, but if windows users can log in on the same network as me, then i would have thought I could too.
Comment 19 Tom Simnett 2004-05-11 00:58:25 UTC
Created attachment 5935 [details]
RTF document containing buggy characters in kopete MSN plugin display name

I found the problem - a contact on my list was using non standard characters in
their display name and kopete couldn't handle it. This is a bug and needs
reopening. I attach an rtf document to show the characters being used.
Comment 20 Andri Oskarsson 2004-05-11 12:36:01 UTC
That makes sense. I live in Iceland i have lots of people in my contact list that uses weird display names. However, removing the contact list, restarting kopete works for me.
Comment 21 Tom Simnett 2004-05-12 23:52:00 UTC
That, unfortunately did not work for me. The only way I can rectify the situation currently is to ask that user (who also uses Yahoo IM) to change their display name or log out, which for some reason they are reluctant to do either. Just very very embarrassing to have to do that.