1.5-pre2 (and prior) infinite loop

Something isn't working the way it should? Post it so we can fix it!
Forum rules
Do not post bugs if you compile KMess from the Git 'master' (kmess-unstable)! Only report bugs about the '2.0.x' (kmess-stable) versions!

Please, never post nor link to your KMess debugging logs into a topic: they usually contain very sensitive information, such as your account's email and password, the email addresses of all of your contacts, and the personal details they added to their MSN profiles.
Instead, you should attach it to either an email sent at bugs@kmess.org, or to a Private Message to Valerio, Sjors, fontknocker, Sjors or vdboor!
However, posting a crash backtrace is usually safe, as it doesn't contain any sensitive information but, at most, your user account name.


Remember to always check out the KMess FAQ before posting!

Thank you very much for your collaboration!

1.5-pre2 (and prior) infinite loop

Postby J » April 4th, 2007, 10:03 pm

KMess hangs using all CPU it can get when a chat window is opened or something like that. I believe the following code in kmess/network/msnnotificationconnection.cpp is responsible for the bug at hand:
Code: Select all
void MsnNotificationConnection::requestChat(QString handle)
{
  QPtrListIterator<ChatInformation> it(openChats_);
  while( it.current() != 0 )
  {
    if( it.current()->getContactHandle() == handle )
    {
#ifdef KMESSDEBUG_NOTIFICATION
      kdDebug() << "MsnNotificationConnection::requestChat: Already have a
chatconversation with '" << handle << "' pending." << endl;
#endif
      return;
    }
  }


The iterator "it" is not being incremented!!!

(Gentoo bug #172018)
J
 
Posts: 20
Joined: March 24th, 2007, 10:24 am

Postby vdboor » April 7th, 2007, 5:05 pm

Confirmed, and changed in my local copy too. I'll commit this once we've migrated to SVN. Thanks for reporting this, I didn't run into this bug yet!

FYI: this bug is trigged when you try to open/resume 2 chats at the same time (or still have one pending).

Weird to see what bug as WONTFIX btw.. :o
Diederik van der Boor
KMess blog: http://www.kmess.org/blogs/
Developer website: http://trac.kmess.org/
Like to help with KMess development or translating? Please contact!
User avatar
vdboor
Developer (*)
 
Posts: 1367
Joined: September 5th, 2003, 11:49 am
Location: The Netherlands

Postby vdboor » April 7th, 2007, 9:42 pm

The fix is in subversion, for KMess 1.5! 8)
Diederik van der Boor
KMess blog: http://www.kmess.org/blogs/
Developer website: http://trac.kmess.org/
Like to help with KMess development or translating? Please contact!
User avatar
vdboor
Developer (*)
 
Posts: 1367
Joined: September 5th, 2003, 11:49 am
Location: The Netherlands


Return to Bug reports



Who is online

Users browsing this forum: poqpcjapo and 0 guests

cron