Bug 139294 - Kopete crashes randomly when no Kopete windows have focus
Summary: Kopete crashes randomly when no Kopete windows have focus
Status: RESOLVED NOT A BUG
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: 0.12.3
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 141044 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-27 23:30 UTC by Kevin Dean
Modified: 2007-11-14 15:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Dean 2006-12-27 23:30:43 UTC
Version:           0.12.3 (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Using both the Kopete from Debian Etch and from SVN on 2006-12-22, I randomly get crashes of kopete (SIGABRT). I've noticed that these only seem to occur when I'm NOT activly using Kopete.

I have only the History plugin active, and I'm using AIM and MSN when these crashes occur.

As far as I can tell, these crashes are random. I've had one occur as quickly as 10 minutes, and I've gone entire workdays without this crash.


** Backtrace while connected to AIM/MSN **

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1240676672 (LWP 13947)]
[KCrash handler]
#5  0xb6124947 in raise () from /lib/tls/libc.so.6
#6  0xb61260c9 in abort () from /lib/tls/libc.so.6
#7  0xb6311944 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#8  0xb630f365 in std::set_unexpected () from /usr/lib/libstdc++.so.6
#9  0xb630f3a2 in std::terminate () from /usr/lib/libstdc++.so.6
#10 0xb630f4da in __cxa_throw () from /usr/lib/libstdc++.so.6
#11 0xb630f91b in operator new () from /usr/lib/libstdc++.so.6
#12 0xb630f9ed in operator new[] () from /usr/lib/libstdc++.so.6
#13 0xb6c1357b in QString::setLength (this=0xbff96640, newLen=1551636571)
    at tools/qstring.cpp:1703
#14 0xb6c1ad07 in operator>> (s=@0xbff96604, str=@0xbff96640)
    at tools/qstring.cpp:6863
#15 0xb6ffcb9a in startServiceInternal (function=@0xbff96704, 
    _name=@0xbff96768, URLs=@0xbff96764, error=0x0, dcopService=0x0, pid=0x0, 
    startup_id=@0xbff9675c, noWait=false)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdecore/kapplication.cpp:2644
#16 0xb6ffd256 in KApplication::startServiceByDesktopName (_name=@0xbff96768, 
    URLs=@0xbff96764, error=0x0, dcopService=0x0, pid=0x0, 
    startup_id=@0xbff9675c, noWait=false)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdecore/kapplication.cpp:2714
#17 0xb6ffd355 in KNotifyClient::startDaemon ()
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdecore/knotifyclient.cpp:231
#18 0xb6ffd5f0 in sendNotifyEvent (message=@0x810b0d8, text=@0xbff96b74, 
    present=64, level=-1, sound=@0xbff969ac, file=@0xbff969a8, winId=31459472)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdecore/knotifyclient.cpp:96
#19 0xb7e349fe in KNotification::userEvent () from /usr/lib/libkopete.so.1
#20 0xb7e34e15 in KNotification::event () from /usr/lib/libkopete.so.1
#21 0xb7e35644 in KNotification::event () from /usr/lib/libkopete.so.1
#22 0xb7eec583 in KopeteViewManager::messageAppended ()
   from /usr/lib/libkopete.so.1
#23 0xb7eecc94 in KopeteViewManager::qt_invoke () from /usr/lib/libkopete.so.1
#24 0xb68fbcb3 in QObject::activate_signal (this=0x818f0f8, clist=0x821b7a8, 
    o=0xbff96c30) at kernel/qobject.cpp:2356
#25 0xb7e5b231 in Kopete::ChatSessionManager::display ()
   from /usr/lib/libkopete.so.1
#26 0xb7e5b6f0 in Kopete::ChatSessionManager::qt_emit ()
   from /usr/lib/libkopete.so.1
#27 0xb68fbdb4 in QObject::activate_signal (this=0x863c1d8, clist=0x8667440, 
    o=0xbff96d00) at kernel/qobject.cpp:2378
#28 0xb7e56c1e in Kopete::ChatSession::messageAppended ()
   from /usr/lib/libkopete.so.1
#29 0xb7e5a8b5 in Kopete::TemporaryKMMCallbackAppendMessageHandler::handleMessage () from /usr/lib/libkopete.so.1
#30 0xb7eaed2c in Kopete::MessageHandler::handleMessageInternal ()
   from /usr/lib/libkopete.so.1
#31 0xb7eafd9e in Kopete::ProcessMessageTask::slotStart ()
   from /usr/lib/libkopete.so.1
#32 0xb7eafe08 in Kopete::ProcessMessageTask::qt_invoke ()
   from /usr/lib/libkopete.so.1
#33 0xb68fbcb3 in QObject::activate_signal (this=0x81a5628, clist=0x82a8fd8, 
    o=0xbff96e58) at kernel/qobject.cpp:2356
#34 0xb6c84cef in QSignal::signal (this=0x81a5628, t0=@0x81a5650)
    at .moc/debug-shared-mt/moc_qsignal.cpp:100
#35 0xb691b836 in QSignal::activate (this=0x81a5628) at kernel/qsignal.cpp:212
#36 0xb6923208 in QSingleShotTimer::event (this=0x81a5600)
    at kernel/qtimer.cpp:286
#37 0xb6893bd6 in QApplication::internalNotify (this=0xbff9746c, 
    receiver=0x81a5600, e=0xbff971c8) at kernel/qapplication.cpp:2635
#38 0xb68959f3 in QApplication::notify (this=0xbff9746c, receiver=0x81a5600, 
    e=0xbff971c8) at kernel/qapplication.cpp:2358
#39 0xb7044e0e in KApplication::notify (this=0xbff9746c, receiver=0x81a5600, 
    event=0xbff971c8)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdecore/kapplication.cpp:550
#40 0xb68273d1 in QApplication::sendEvent (receiver=0x81a5600, 
    event=0xbff971c8) at ../include/qapplication.h:520
#41 0xb68865d3 in QEventLoop::activateTimers (this=0x8146b20)
    at kernel/qeventloop_unix.cpp:556
#42 0xb683b71f in QEventLoop::processEvents (this=0x8146b20, flags=4)
    at kernel/qeventloop_x11.cpp:389
#43 0xb68ae129 in QEventLoop::enterLoop (this=0x8146b20)
    at kernel/qeventloop.cpp:198
#44 0xb68adf4a in QEventLoop::exec (this=0x8146b20)
    at kernel/qeventloop.cpp:145
#45 0xb689576f in QApplication::exec (this=0xbff9746c)
    at kernel/qapplication.cpp:2758
#46 0x0806df80 in main ()
Comment 1 Matt Rogers 2006-12-28 07:50:05 UTC
Kopete crashes when attempting to allocate memory. you'll need to run kopete from a terminal window and provide the last 100 lines or so of output from that terminal the next time kopete crashes. My gut tells me that this isn't a problem with kopete exactly. My initial guess would be that you're somehow running out of memory or some other sort of condition like that.
Comment 2 Kevin Dean 2006-12-28 19:20:13 UTC
Here is the terminal output.

***

kopete (oscar - raw protocol): [void MessageReceiverTask::handleType1Message()] Got features tlv. length: 1 data: [01 ]

kopete (oscar - raw protocol): [void MessageReceiverTask::handleType1Message()] Message charset: 3 message subcharset: 0

kopete (oscar - raw protocol): [void Client::receivedMessage(const Oscar::Message&)] Emitting receivedMessage

kopete (oscar/aim): [virtual void AIMAccount::messageReceived(const Oscar::Message&)]  Got a message, calling OscarAccount::messageReceived

kopete (oscar/aim): [virtual QString AIMAccount::sanitizedMessage(const QString&)] error from dom document conversion: unexpected character

kopete (oscar/aim): [virtual void AIMAccount::messageReceived(const Oscar::Message&)] Checking to see if I'm online..

kopete: [QString ChatMessagePart::formatStyleKeywords(const QString&, const Kopete::Message&)] 4062 has color mediumpurple

libkopete: [virtual Kopete::MessageEvent::~MessageEvent()] 

kopete (msn - raw protocol): [virtual void MSNSocket::slotReadyWrite()] Sending command: PNG

kopete (msn - raw protocol): [void MSNSocket::slotDataReceived()] QNG 50

kopete (msn): [virtual void MSNNotifySocket::parseCommand(const QString&, uint, const QString&)] timerTimeout=50sec

kopete (groupwise): [virtual void AIMContact::slotSendMsg(Kopete::Message&, Kopete::ChatSession*)] sending Short, sweet, to the point. 

kopete (oscar - raw protocol): [void SendMessageTask::addChannel1Data(Buffer*)] Sending outgoing message in per-contact encoding

kopete (oscar - raw protocol): [virtual void SendMessageTask::onGo()] SENDING: 



kopete (oscar - raw protocol): 

kopete: [QString ChatMessagePart::formatStyleKeywords(const QString&, const Kopete::Message&)] 2453 has color steelblue

libkopete: [virtual Kopete::MessageEvent::~MessageEvent()] 

kopete (oscar - raw protocol): [void CoreProtocol::addIncomingData(const QByteArray&)] Received 36 bytes. 

kopete (oscar - raw protocol): [virtual Transfer* SnacProtocol::parse(const QByteArray&, uint&)] family: 4 subtype: 12 flags: 0 id: 50505

kopete (oscar - raw protocol): [void Connection::distribute(Transfer*) const] root task refused transfer

kopete (groupwise): [virtual void AIMContact::slotSendMsg(Kopete::Message&, Kopete::ChatSession*)] sending I'd be a bit more rude. ;P

kopete (oscar - raw protocol): [void SendMessageTask::addChannel1Data(Buffer*)] Sending outgoing message in per-contact encoding

kopete (oscar - raw protocol): [virtual void SendMessageTask::onGo()] SENDING: 



kopete (oscar - raw protocol): 

kopete: [QString ChatMessagePart::formatStyleKeywords(const QString&, const Kopete::Message&)] 2453 has color steelblue

libkopete: [virtual Kopete::MessageEvent::~MessageEvent()] 

kopete (oscar - raw protocol): [void CoreProtocol::addIncomingData(const QByteArray&)] Received 36 bytes. 

kopete (oscar - raw protocol): [virtual Transfer* SnacProtocol::parse(const QByteArray&, uint&)] family: 4 subtype: 12 flags: 0 id: 50508

kopete (oscar - raw protocol): [void Connection::distribute(Transfer*) const] root task refused transfer

kopete (msn - raw protocol): [void MSNSocket::slotDataReceived()] UBX the.lovely.neira@hotmail.com 208


<Data><PSM></PSM><CurrentMedia>ITunes\0Music\01\0{0} - {1}\0Vindicated\0Dashboard Confessional\0Spider-Man 2 Soundtrack\0</CurrentMedia><MachineGuid>{F3CEA813-5972-4156-BDC2-CD3F21CF5AB9}</MachineGuid></Data>

kopete (msn): [void MSNNotifySocket::slotReadMessage(const QByteArray&)] Personnal Message received: 

kopete (msn): [void MSNNotifySocket::slotReadMessage(const QByteArray&)] XML CurrentMedia: ITunes\0Music\01\0{0} - {1}\0Vindicated\0Dashboard Confessional\0Spider-Man 2 Soundtrack\0

kopete: Current Media received: Now Listening: ♫ Vindicated - Dashboard Confessional ♫

libkopete: [void Kopete::ContactList::setSelectedItems(QPtrList<Kopete::MetaContact>, QPtrList<Kopete::Group>)] 1 metacontacts, 0 groups selected

kopete: [void ChatMessagePart::writeTemplate()] 

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

libkopete: [void Kopete::ContactList::setSelectedItems(QPtrList<Kopete::MetaContact>, QPtrList<Kopete::Group>)] 0 metacontacts, 0 groups selected

libkopete: [void Kopete::ContactList::setSelectedItems(QPtrList<Kopete::MetaContact>, QPtrList<Kopete::Group>)] 1 metacontacts, 0 groups selected

kopete: [void ChatMessagePart::writeTemplate()] 

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

libkopete: [void Kopete::ContactList::setSelectedItems(QPtrList<Kopete::MetaContact>, QPtrList<Kopete::Group>)] 0 metacontacts, 0 groups selected

libkopete: [void Kopete::ContactList::setSelectedItems(QPtrList<Kopete::MetaContact>, QPtrList<Kopete::Group>)] 1 metacontacts, 0 groups selected

kopete: [void ChatMessagePart::writeTemplate()] 

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

libkopete: [void Kopete::ContactList::setSelectedItems(QPtrList<Kopete::MetaContact>, QPtrList<Kopete::Group>)] 0 metacontacts, 0 groups selected

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

kopete: [virtual ChatMessagePart::~ChatMessagePart()] 

libkopete: [void Kopete::ChatSessionManager::removeSession(Kopete::ChatSession*)] 

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

kopete: [virtual ChatMessagePart::~ChatMessagePart()] 

libkopete: [void Kopete::ChatSessionManager::removeSession(Kopete::ChatSession*)] 

QFont::setPointSize: Point size <= 0 (-1)

QFont::setPointSize: Point size <= 0 (-1)

kopete: [virtual ChatMessagePart::~ChatMessagePart()] 

libkopete: [void Kopete::ChatSessionManager::removeSession(Kopete::ChatSession*)] 

kopete (oscar - raw protocol): [void CoreProtocol::addIncomingData(const QByteArray&)] Received 38 bytes. 

kopete (oscar - raw protocol): [virtual Transfer* SnacProtocol::parse(const QByteArray&, uint&)] family: 4 subtype: 20 flags: 0 id: 2554715649

kopete (oscar - raw protocol): [void TypingNotifyTask::handleNotification()] lkeskywkr has started typing

kopete (oscar - raw protocol): [void CoreProtocol::addIncomingData(const QByteArray&)] Received 264 bytes. 

kopete (oscar - raw protocol): [virtual Transfer* SnacProtocol::parse(const QByteArray&, uint&)] family: 4 subtype: 7 flags: 0 id: 2554716012

kopete (oscar - raw protocol): [virtual bool MessageReceiverTask::take(Transfer*)] icbm cookie is [ca 41 05 30 41 2b b5 67 ]

kopete (oscar - raw protocol): [virtual bool MessageReceiverTask::take(Transfer*)] channel is 1

kopete (oscar - raw protocol): [void UserDetails::fill(Buffer*)] Got user info for lkeskywkr

kopete (oscar - raw protocol): [void MessageReceiverTask::handleType1Message()] Got features tlv. length: 1 data: [01 ]

kopete (oscar - raw protocol): [void MessageReceiverTask::handleType1Message()] Message charset: 0 message subcharset: 0

kopete (oscar - raw protocol): [void Client::receivedMessage(const Oscar::Message&)] Emitting receivedMessage

kopete (oscar/aim): [virtual void AIMAccount::messageReceived(const Oscar::Message&)]  Got a message, calling OscarAccount::messageReceived

kopete (oscar/aim): [virtual QString AIMAccount::sanitizedMessage(const QString&)] error from dom document conversion: unexpected character

kopete (oscar/aim): [virtual void AIMAccount::messageReceived(const Oscar::Message&)] Checking to see if I'm online..

kopete: [QString ChatMessagePart::formatStyleKeywords(const QString&, const Kopete::Message&)] 4062 has color mediumpurple

libkopete: [virtual Kopete::MessageEvent::~MessageEvent()] 

kopete (msn - raw protocol): [virtual void MSNSocket::slotReadyWrite()] Sending command: PNG

kopete (msn - raw protocol): [void MSNSocket::slotDataReceived()] QNG 48

kopete (msn): [virtual void MSNNotifySocket::parseCommand(const QString&, uint, const QString&)] timerTimeout=48sec

kopete (oscar - raw protocol): [void CoreProtocol::addIncomingData(const QByteArray&)] Received 153 bytes. 

kopete (oscar - raw protocol): [virtual Transfer* SnacProtocol::parse(const QByteArray&, uint&)] family: 3 subtype: 11 flags: 0 id: 2554726372

kopete (oscar - raw protocol): [void UserDetails::fill(Buffer*)] Got user info for SageRaynn

kopete (oscar - raw protocol): [Oscar::DWORD Oscar::parseCapabilities(Buffer&, QString&)] CAPS: CAP_SENDFILE CAP_IMIMAGE CAP_BUDDYICON 

kopete (oscar): Buffer::getByte(): mBuffer empty

kopete (oscar): Buffer::getByte(): mBuffer empty

kopete (oscar - raw protocol): [void UserDetails::fill(Buffer*)] Unknown TLV, type=38, length=4 in userinfo

kopete (oscar - raw protocol): [virtual void AIMContact::userInfoUpdated(const QString&, const UserDetails&)] SageRaynn

kopete (oscar - raw protocol): [virtual void AIMContact::userInfoUpdated(const QString&, const UserDetails&)] Contact: SageRaynn is online.

terminate called after throwing an instance of 'std::bad_alloc'

  what():  St9bad_alloc

KCrash: Application 'kopete' crashing...
Comment 3 Bram Schoenmakers 2007-07-29 10:29:03 UTC
*** Bug 141044 has been marked as a duplicate of this bug. ***
Comment 4 A. Mosteo 2007-07-29 13:36:10 UTC
My random crashes have not been on conditions of exhausted memory. The system was acting normal and responsive at the time. I also use the system memory taskbar applet and swap was not filled up.
Comment 5 Matt Rogers 2007-09-12 05:17:43 UTC
To be honest, I'm not sure we can fix this. We have to be able to expect that we can allocate memory. Not to mention that it's crashing in a call to the Qt library, which is outside of Kopete's source code anyways. Looks like its crashing when trying to receive a message. Have newer versions of Kopete helped any at all?
Comment 6 Kevin Dean 2007-09-12 14:56:30 UTC
I can't really contribute too much more that's useful to this bug; I've since stopped using Kopete on a daily basis, and I've replaced the machine that this bug was a constant problem with.
Comment 7 Will Stephenson 2007-11-14 15:55:45 UTC
No way to reproduce, reopen if you can provide this.