Bug 274503

Summary: Contact list crashes if avatar for account is not set
Product: [Unmaintained] telepathy Reporter: Francesco Nwokeka <francesco.nwokeka>
Component: contactlistAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: mklapetek
Priority: NOR    
Version: git-latest   
Target Milestone: 0.4.0   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Francesco Nwokeka 2011-05-30 10:18:04 UTC
Version:           git-latest (using KDE 4.6.3) 
OS:                Linux

When messing around with "setAvatar" for the presence plasmoid, I unset the avatar for an account. When I tried to load the contactlist with this account enabled, the contactlist kept on crashing.
Here is the backtrace

Application: Telepathy KDE Contact List (telepathy-kde-contactlist), signal: Segmentation fault
[KCrash Handler]
#6  selectAvatarFromAccount (this=0x2077300, accountUID=...) at /home/z3r0/GitProjects/KDE/Telepathy/telepathy-contact-list/main-widget.cpp:1029
#7  MainWidget::selectAvatarFromAccount (this=0x2077300, accountUID=...) at /home/z3r0/GitProjects/KDE/Telepathy/telepathy-contact-list/main-widget.cpp:1022
#8  0x0000000000431e35 in MainWidget::onNewAccountAdded (this=0x2077300, account=<value optimized out>) at /home/z3r0/GitProjects/KDE/Telepathy/telepathy-contact-list/main-widget.cpp:415
#9  0x00000000004321d5 in MainWidget::onAccountManagerReady (this=0x2077300, op=<value optimized out>) at /home/z3r0/GitProjects/KDE/Telepathy/telepathy-contact-list/main-widget.cpp:351
#10 0x00000000004356b7 in MainWidget::qt_metacall (this=0x2077300, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2f3e0d90) at /home/z3r0/GitProjects/KDE/Telepathy/telepathy-contact-list/build/main-widget.moc:160
#11 0x00007fc92446429a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#12 0x00007fc9265bdc8f in Tp::PendingOperation::finished(Tp::PendingOperation*) () from /usr/lib/libtelepathy-qt4.so.1
#13 0x00007fc9265bdd01 in ?? () from /usr/lib/libtelepathy-qt4.so.1
#14 0x00007fc9265be95c in Tp::PendingOperation::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libtelepathy-qt4.so.1
#15 0x00007fc9265bf410 in Tp::PendingReady::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libtelepathy-qt4.so.1
#16 0x00007fc924467e4a in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#17 0x00007fc923612174 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x00007fc923617001 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007fc925fcc9c6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#20 0x00007fc92445162c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#21 0x00007fc924454974 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#22 0x00007fc92447be23 in ?? () from /usr/lib/libQtCore.so.4
#23 0x00007fc91f16a6cd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007fc91f16aea8 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00007fc91f16b139 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007fc92447c27f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#27 0x00007fc9236b51fe in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007fc924450832 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x00007fc924450a2f in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0x00007fc924454c07 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#31 0x000000000041801e in main (argc=1, argv=0x7fff2f3e1a68) at /home/z3r0/GitProjects/KDE/Telepathy/telepathy-contact-list/main.cpp:60


Reproducible: Always
Comment 1 Francesco Nwokeka 2011-05-30 10:28:19 UTC
I also did an "rm" of all temp files stored by the contact list for the avatars before getting this crash