Bug 322058

Summary: ktp-c-l crashes if in focus/opened and one goes offline via tray icon
Product: [Unmaintained] telepathy Reporter: Hrvoje Senjan <hrvoje.senjan>
Component: contactlistAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: hrvoje.senjan, kde, mklapetek
Priority: NOR Keywords: drkonqi
Version: 0.6.2   
Target Milestone: Future   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Hrvoje Senjan 2013-07-07 02:33:38 UTC
Application: ktp-contactlist (0.6.2)
KDE Platform Version: 4.10.90 "release 9"
Qt Version: 4.8.5
Operating System: Linux 3.9.8-1.gf3348a8-desktop x86_64
Distribution: "openSUSE 13.1 Milestone 2 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

As summarized. Can reproduce 100%. Using master + libkpeople. 2 gabble (google) accounts.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Telepathy Contact List (ktp-contactlist), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff61b55b840 (LWP 22710))]

Thread 3 (Thread 0x7ff6035ea700 (LWP 22716)):
#0  0x00007ff617232fdd in read () from /lib64/libc.so.6
#1  0x00007ff613af309f in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff613ab3bbc in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff613ab3ff5 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007ff613ab4184 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007ff6035f1e9d in ?? () from /usr/lib64/gio/modules/libdconfsettings.so
#6  0x00007ff613ad85f5 in ?? () from /usr/lib64/libglib-2.0.so.0
#7  0x00007ff614ccde0b in start_thread () from /lib64/libpthread.so.0
#8  0x00007ff61724006d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff602de9700 (LWP 22717)):
#0  0x00007ff613af3cd0 in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00007ff613af3f29 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff613ab4042 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff613ab453a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#4  0x00007ff61358b8c6 in ?? () from /usr/lib64/libgio-2.0.so.0
#5  0x00007ff613ad85f5 in ?? () from /usr/lib64/libglib-2.0.so.0
#6  0x00007ff614ccde0b in start_thread () from /lib64/libpthread.so.0
#7  0x00007ff61724006d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff61b55b840 (LWP 22710)):
[KCrash Handler]
#5  0x00007ff618197097 in QStandardItem::emitDataChanged() () from /usr/lib64/libQtGui.so.4
#6  0x00007ff61af20751 in KTp::AbstractGroupingProxyModel::onDataChanged (this=0xe20c60, sourceTopLeft=..., sourceBottomRight=...) at /usr/src/debug/ktp-common-internals-0.5.60.git.1372845152/KTp/Models/abstract-grouping-proxy-model.cpp:313
#7  0x00007ff618fb705f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#8  0x00007ff619002567 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib64/libQtCore.so.4
#9  0x00007ff618123f68 in ?? () from /usr/lib64/libQtGui.so.4
#10 0x00007ff618fb705f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#11 0x00007ff619002567 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib64/libQtCore.so.4
#12 0x00007ff618123f68 in ?? () from /usr/lib64/libQtGui.so.4
#13 0x00007ff618fb705f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#14 0x00007ff619002567 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib64/libQtCore.so.4
#15 0x00007ff61994d375 in KPeople::PersonsModel::contactChanged (this=0xb0da50, uri=...) at /usr/src/debug/libkpeople-0.60.1373036217/src/personsmodel.cpp:313
#16 0x00007ff619948419 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/libkpeople-0.60.1373036217/build/src/moc_personsmodel.cpp:79
#17 KPeople::PersonsModel::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/libkpeople-0.60.1373036217/build/src/moc_personsmodel.cpp:68
#18 0x00007ff618fb705f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#19 0x00007ff619948312 in KPeople::DataSourceWatcher::contactChanged (this=<optimized out>, _t1=...) at /usr/src/debug/libkpeople-0.60.1373036217/build/src/moc_datasourcewatcher.cpp:104
#20 0x00007ff618fb705f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#21 0x00007ff619948222 in KPeople::BasePersonsDataSource::contactChanged (this=<optimized out>, _t1=...) at /usr/src/debug/libkpeople-0.60.1373036217/build/src/moc_basepersonsdatasource.cpp:99
#22 0x00007ff61b1891e2 in IMPersonsDataSource::onContactInvalidated (this=0xb3e5d0) at /usr/src/debug/ktp-common-internals-0.5.60.git.1372845152/KTp/im-persons-data-source.cpp:200
#23 0x00007ff618fb705f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#24 0x00007ff618fb705f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#25 0x00007ff6194fc2b9 in Tp::DBusProxy::invalidated(Tp::DBusProxy*, QString const&, QString const&) () from /usr/lib64/libtelepathy-qt4.so.2
#26 0x00007ff618fbc56e in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#27 0x00007ff617c0217c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#28 0x00007ff617c04aeb in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#29 0x00007ff61a8c2de6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#30 0x00007ff618fa2b5e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#31 0x00007ff618fa6171 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#32 0x00007ff618fd0f33 in ?? () from /usr/lib64/libQtCore.so.4
#33 0x00007ff613ab3d85 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#34 0x00007ff613ab40c8 in ?? () from /usr/lib64/libglib-2.0.so.0
#35 0x00007ff613ab4184 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#36 0x00007ff618fd10c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#37 0x00007ff617ca2d1e in ?? () from /usr/lib64/libQtGui.so.4
#38 0x00007ff618fa180f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#39 0x00007ff618fa1a98 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#40 0x00007ff618fa6d08 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#41 0x000000000041e953 in ?? ()
#42 0x00007ff617179a35 in __libc_start_main () from /lib64/libc.so.6
#43 0x000000000041ec55 in _start ()

Reported using DrKonqi
Comment 1 David Edmundson 2013-07-07 02:45:30 UTC
Thanks

I can't seem to reproduce it here. 
Can you check you have latest master of everything.

Do you have contacts grouped by "group name" or "account"?
Comment 2 Hrvoje Senjan 2013-07-07 02:50:50 UTC
(In reply to comment #1)
> I can't seem to reproduce it here. 
> Can you check you have latest master of everything.
I'll check and report back

> Do you have contacts grouped by "group name" or "account"?

Account
Comment 3 Martin Klapetek 2013-07-08 08:32:49 UTC
Can't reproduce here either
Comment 4 Hrvoje Senjan 2013-07-08 19:44:49 UTC
Created attachment 81012 [details]
New crash information added by DrKonqi

ktp-contactlist (0.6.2) on KDE Platform 4.10.90 "release 9" using Qt 4.8.5

- What I was doing when the application crashed:

Backtrace with *latest* master. Let me know what other info i can provide...

-- Backtrace (Reduced):
#6  0x00007f22b67538d7 in QStandardItem::emitDataChanged() () from /usr/lib64/libQtGui.so.4
#7  0x00007f22bb067d91 in changed (this=<optimized out>) at /home/hrvoje/Src/local/ktp/ktp-common-internals/KTp/Models/abstract-grouping-proxy-model.cpp:80
#8  KTp::AbstractGroupingProxyModel::onDataChanged (this=0x2806290, sourceTopLeft=..., sourceBottomRight=...) at /home/hrvoje/Src/local/ktp/ktp-common-internals/KTp/Models/abstract-grouping-proxy-model.cpp:313
[...]
#10 0x00007f22b8203fb7 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib64/libQtCore.so.4
[...]
#13 0x00007f22b8203fb7 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib64/libQtCore.so.4
Comment 5 Martin Klapetek 2013-07-09 05:18:10 UTC
Closing as duplicate of drdanz's bug as his has more complete backtrace

*** This bug has been marked as a duplicate of bug 322134 ***