Bug 271445 - Crash when adding photo to contact list
Summary: Crash when adding photo to contact list
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: contactlist (show other bugs)
Version: git-latest
Platform: unspecified Linux
: NOR crash
Target Milestone: 0.4.0
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-21 21:14 UTC by Vavelin Kevin
Modified: 2012-07-06 12:47 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 Vavelin Kevin 2011-04-21 21:14:09 UTC
Application: telepathy-kde-contactlist (0.1)
KDE Platform Version: 4.6.00 (4.6.0) "release 6"
Qt Version: 4.7.1
Operating System: Linux 2.6.37.1-1.2-default i686
Distribution: "openSUSE 11.4 (i586)"

-- Information about the crash:
Just click in your avatar at the left of pseudo and see the application crashes.

I just clone the git repo and don't touch anything (i know we have not all function working good so i post a bug for getting a bug to fix ;)

The crash can be reproduced every time.

-- Backtrace:
Application: Telepathy KDE Contact List (telepathy-kde-contactlist), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4c92710 (LWP 7411))]

Thread 2 (Thread 0xb26c9b70 (LWP 7423)):
#0  0xb52fbeb1 in clock_gettime () from /lib/librt.so.1
#1  0xb66b5ae5 in ?? () from /usr/lib/libQtCore.so.4
#2  0xb6788726 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb6786f6b in ?? () from /usr/lib/libQtCore.so.4
#4  0xb678700d in ?? () from /usr/lib/libQtCore.so.4
#5  0xb5246a70 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#6  0xb52478e2 in ?? () from /lib/libglib-2.0.so.0
#7  0xb5247fce in g_main_context_iteration () from /lib/libglib-2.0.so.0
#8  0xb67877b7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb67582bd in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb67584e9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb66597b9 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb673823d in ?? () from /usr/lib/libQtCore.so.4
#13 0xb665c3aa in ?? () from /usr/lib/libQtCore.so.4
#14 0xb65e1980 in start_thread () from /lib/libpthread.so.0
#15 0xb595a16e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4c92710 (LWP 7411)):
[KCrash Handler]
#6  MainWidget::onAvatarFetched (this=0x813e4c8, job=0x81686b8) at /home/kusa/Software/telepathy-contact-list/main-widget.cpp:847
#7  0x08070edb in MainWidget::qt_metacall (this=0x813e4c8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfc55d68) at /home/kusa/Software/telepathy-contact-list/build/main-widget.moc:152
#8  0xb675f8cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#9  0xb676fa2c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#10 0xb69b0535 in KJob::result (this=0x81686b8, _t1=0x81686b8) at /usr/src/debug/kdelibs-4.6.0/build/kdecore/kjob.moc:194
#11 0xb69b0588 in KJob::emitResult (this=0x81686b8) at /usr/src/debug/kdelibs-4.6.0/kdecore/jobs/kjob.cpp:312
#12 0x08075ba2 in FetchAvatarJob::qt_metacall (this=0x81686b8, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfc55e98) at /home/kusa/Software/telepathy-contact-list/build/fetch-avatar-job.moc:79
#13 0xb675f8cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#14 0xb676fa2c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#15 0xb69b0535 in KJob::result (this=0x826b450, _t1=0x826b450) at /usr/src/debug/kdelibs-4.6.0/build/kdecore/kjob.moc:194
#16 0xb69b0588 in KJob::emitResult (this=0x826b450) at /usr/src/debug/kdelibs-4.6.0/kdecore/jobs/kjob.cpp:312
#17 0xb6f63b8c in KIO::SimpleJob::slotFinished (this=0x826b450) at /usr/src/debug/kdelibs-4.6.0/kio/kio/job.cpp:525
#18 0xb6f640b5 in KIO::TransferJob::slotFinished (this=0x826b450) at /usr/src/debug/kdelibs-4.6.0/kio/kio/job.cpp:1118
#19 0xb6f43624 in KIO::TransferJob::qt_metacall (this=0x826b450, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfc5613c) at /usr/src/debug/kdelibs-4.6.0/build/kio/jobclasses.moc:367
#20 0xb675f8cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#21 0xb676fa2c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#22 0xb6e5cea5 in KIO::SlaveInterface::finished (this=0x8240ae0) at /usr/src/debug/kdelibs-4.6.0/build/kio/slaveinterface.moc:171
#23 0xb6f7e241 in KIO::SlaveInterface::dispatch (this=0x8240ae0, _cmd=104, rawdata=...) at /usr/src/debug/kdelibs-4.6.0/kio/kio/slaveinterface.cpp:173
#24 0xb6f164fa in KIO::SlaveInterface::dispatch (this=0x8240ae0) at /usr/src/debug/kdelibs-4.6.0/kio/kio/slaveinterface.cpp:89
#25 0xb6f154a8 in KIO::Slave::gotInput (this=0x8240ae0) at /usr/src/debug/kdelibs-4.6.0/kio/kio/slave.cpp:348
#26 0xb6f1ad0c in KIO::Slave::qt_metacall (this=0x8240ae0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfc5644c) at /usr/src/debug/kdelibs-4.6.0/build/kio/slave.moc:82
#27 0xb675f8cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#28 0xb676fa2c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#29 0xb6e3f765 in KIO::Connection::readyRead (this=0x817ec00) at /usr/src/debug/kdelibs-4.6.0/build/kio/connection.moc:92
#30 0xb6f1aa7a in KIO::ConnectionPrivate::dequeue (this=0x8277e68) at /usr/src/debug/kdelibs-4.6.0/kio/kio/connection.cpp:82
#31 0xb6f1ab4f in KIO::Connection::qt_metacall (this=0x817ec00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x8249818) at /usr/src/debug/kdelibs-4.6.0/build/kio/connection.moc:79
#32 0xb675f8cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#33 0xb676a3a5 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#34 0xb676e5af in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#35 0xb5c66414 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0xb5c6f0c7 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#37 0xb71621f1 in KApplication::notify (this=0xbfc56d44, receiver=0x817ec00, event=0x81b5c68) at /usr/src/debug/kdelibs-4.6.0/kdeui/kernel/kapplication.cpp:311
#38 0xb6758fde in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#39 0xb675cd6c in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#40 0xb675cebc in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#41 0xb67875e4 in ?? () from /usr/lib/libQtCore.so.4
#42 0xb5247509 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#43 0xb5247d10 in ?? () from /lib/libglib-2.0.so.0
#44 0xb5247fce in g_main_context_iteration () from /lib/libglib-2.0.so.0
#45 0xb678776b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#46 0xb5d1c55a in ?? () from /usr/lib/libQtGui.so.4
#47 0xb67582bd in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#48 0xb67584e9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#49 0xb675cf90 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#50 0xb5c64104 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#51 0x0806c0f7 in main (argc=) at /home/kusa/Software/telepathy-contact-list/main.cpp:88

Reported using DrKonqi
Comment 1 Martin Klapetek 2011-04-21 23:05:53 UTC
Git commit 3c16a2d67d2289ac8f608a95bb8e8611218e99da by Martin Klapetek.
Committed on 21/04/2011 at 23:12.
Pushed by mklapetek into branch 'master'.

Fix a crash when there is no account set and user tries to set avatar. Now it warns the user with KMessageBox and asks to open Accounts KCM
BUG: 271445
Reviewed by: David Edmundson

M  +54   -26   main-widget.cpp     

http://commits.kde.org/telepathy-contact-list/3c16a2d67d2289ac8f608a95bb8e8611218e99da