Summary: | Kontact crashes while startup in KDescendantsProxyModel | ||
---|---|---|---|
Product: | [Applications] kontact | Reporter: | Bjoern Ricks <bjoern.ricks> |
Component: | general | Assignee: | Stephen Kelly <steveire> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | crash | CC: | 1lukas1, alejandronova, ludwig.reiter, mail, marcello, sven.burmeister, vkrause |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Bjoern Ricks
2010-07-27 10:58:03 UTC
Created attachment 49728 [details]
New crash information added by DrKonqi
kontact (4.6 pre) on KDE Platform 4.5.62 (KDE 4.5.62 (KDE 4.6 >= 20100729)) "release 3" using Qt 4.6.3
- What I was doing when the application crashed:
Starting Kontact KDE 4.4.62
rpm -qa | grep akonadi
libakonadi4-4.5.62svn1156592-1.3.i586
libakonadiprotocolinternals1-1.4.50+svn1157568-1.1.i586
akonadi-runtime-1.4.50+svn1157568-1.1.i586
akonadi-4.5.62svn1156592-1.3.i586
libakonadi4-debuginfo-4.5.62svn1156592-1.3.i586
-- Backtrace (Reduced):
#7 QModelIndex (this=0x81b0ea0, sourceIndex=...) at /usr/include/QtCore/qabstractitemmodel.h:65
#8 KDescendantsProxyModel::mapFromSource (this=0x81b0ea0, sourceIndex=...) at /usr/src/debug/kdepimlibs-4.5.62svn1156592/akonadi/kdescendantsproxymodel2.cpp:458
#9 0xb4aee173 in KDescendantsProxyModelPrivate::processPendingParents (this=0x8392560) at /usr/src/debug/kdepimlibs-4.5.62svn1156592/akonadi/kdescendantsproxymodel2.cpp:151
#10 0xb4aef018 in scheduleProcessPendingParents (this=0x8392560, parent=..., start=0, end=0) at /usr/src/debug/kdepimlibs-4.5.62svn1156592/akonadi/kdescendantsproxymodel2.cpp:119
#11 KDescendantsProxyModelPrivate::sourceRowsInserted (this=0x8392560, parent=..., start=0, end=0) at /usr/src/debug/kdepimlibs-4.5.62svn1156592/akonadi/kdescendantsproxymodel2.cpp:589
Steve, is this still valid or fixed with KDPM2? The backtrace has version 2 in it already, so I guess this is valid with up to date sources. I can't reproduce though, so anyone who can should checkout, build and install the proxymodeltestsuite svn co $KDESVN/home/kde/trunk/KDE/kdelibs/kdeui/tests/proxymodeltestsuite cd proxymodeltestsuite cmake && make install. Then apply a patch to your kdepimlibs. Note that you will have to use the correct path to the library: diff --git a/akonadi/CMakeLists.txt b/akonadi/CMakeLists.txt index 01bf6b4..af79f65 100644 --- a/akonadi/CMakeLists.txt +++ b/akonadi/CMakeLists.txt @@ -188,7 +188,9 @@ kde4_add_library( akonadi-kde ${LIBRARY_TYPE} ${akonadikde_LIB_SRC} ) macro_ensure_version( "4.2.0" ${KDE_VERSION} KDE_IS_AT_LEAST_42 ) -target_link_libraries( akonadi-kde ${KDE4_SOLID_LIBS} ${QT_QTNETWORK_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTSQL_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${AKONADI_COMMON_LIBRARIES} ) +target_link_libraries( akonadi-kde ${KDE4_SOLID_LIBS} ${QT_QTNETWORK_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTSQL_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${AKONADI_COMMON_LIBRARIES} + /home/kde-devel/kde/lib/libproxymodeltestsuite.so + ) set( AKONADI_KDE_DEPS ${KDE4_KDEUI_LIBS} ${QT_QTDBUS_LIBRARY} ${QT_QTCORE_LIBRARY} ) if(KDE_IS_AT_LEAST_42) diff --git a/akonadi/collectioncombobox.cpp b/akonadi/collectioncombobox.cpp index 96b9cb5..f167282 100644 --- a/akonadi/collectioncombobox.cpp +++ b/akonadi/collectioncombobox.cpp @@ -32,6 +32,7 @@ #include "kdescendantsproxymodel_p.h" #include "collectionutils_p.h" +#include "modeleventlogger.h" #include <QtCore/QAbstractItemModel> @@ -58,6 +59,8 @@ class CollectionComboBox::Private baseModel = mModel; } + new ModelEventLogger( baseModel, parent ); + KDescendantsProxyModel *proxyModel = new KDescendantsProxyModel( parent ); proxyModel->setDisplayAncestorData( true ); proxyModel->setSourceModel( baseModel ); Then when the app crashes you will get output such as: Debug: Writing to "main.akonadi::entitymimetypefiltermodel.152015016.0.cpp" Num events: 1 Send me that cpp file, or all of them if there are more than one. Created attachment 50070 [details] New crash information added by DrKonqi kmail (2.0 beta1) on KDE Platform 4.5.00 (KDE 4.5.0) using Qt 4.6.3 - What I was doing when the application crashed: I can confirm this behaviour. I'm trying to launch the composer by running 'kmail someone@somewhere.local' from krunner. -- Backtrace (Reduced): #6 QModelIndex (this=<value optimized out>, sourceIndex=<value optimized out>) at /usr/include/qt4/QtCore/qabstractitemmodel.h:65 #7 KDescendantsProxyModel::mapFromSource (this=<value optimized out>, sourceIndex=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.5.0/work/kdepimlibs-4.5.0/akonadi/kdescendantsproxymodel.cpp:458 #8 0x00007f1c2a8c1603 in KDescendantsProxyModelPrivate::processPendingParents (this=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.5.0/work/kdepimlibs-4.5.0/akonadi/kdescendantsproxymodel.cpp:151 #9 0x00007f1c2a8c2182 in KDescendantsProxyModelPrivate::scheduleProcessPendingParents (this=<value optimized out>, parent=..., start=0, end=0) at /var/tmp/portage/kde-base/kdepimlibs-4.5.0/work/kdepimlibs-4.5.0/akonadi/kdescendantsproxymodel.cpp:119 #10 KDescendantsProxyModelPrivate::sourceRowsInserted (this=<value optimized out>, parent=..., start=0, end=0) at /var/tmp/portage/kde-base/kdepimlibs-4.5.0/work/kdepimlibs-4.5.0/akonadi/kdescendantsproxymodel.cpp:589 Created attachment 50086 [details]
New crash information added by DrKonqi
kmail (2.0.89) on KDE Platform 4.5.64 (KDE 4.5.64 (KDE 4.6 >= 20100811)) "release 2" using Qt 4.6.3
- What I was doing when the application crashed:
Starting Kmail crashes everytime with the .64 snapshot of KDE 4.6
-- Backtrace (Reduced):
#7 QModelIndex (this=0x820ab40, sourceIndex=...) at /usr/include/QtCore/qabstractitemmodel.h:65
#8 KDescendantsProxyModel::mapFromSource (this=0x820ab40, sourceIndex=...) at /usr/src/debug/kdepimlibs-4.5.64svn1162763/akonadi/kdescendantsproxymodel.cpp:458
#9 0xb55d63f3 in KDescendantsProxyModelPrivate::processPendingParents (this=0x82aa9c8) at /usr/src/debug/kdepimlibs-4.5.64svn1162763/akonadi/kdescendantsproxymodel.cpp:151
#10 0xb55d7298 in scheduleProcessPendingParents (this=0x82aa9c8, parent=..., start=0, end=0) at /usr/src/debug/kdepimlibs-4.5.64svn1162763/akonadi/kdescendantsproxymodel.cpp:119
#11 KDescendantsProxyModelPrivate::sourceRowsInserted (this=0x82aa9c8, parent=..., start=0, end=0) at /usr/src/debug/kdepimlibs-4.5.64svn1162763/akonadi/kdescendantsproxymodel.cpp:589
Could people affected by this bug retest? I have probably either fixed it or you might hit a new assert. Created attachment 50643 [details]
New crash information added by DrKonqi
kmail (2.0 beta1) on KDE Platform 4.5.00 (KDE 4.5.0) using Qt 4.7.0
- What I was doing when the application crashed:
The same thing as OP: trying to send mail.
- Custom settings of the application:
I tried to alter the maildir configuration. Nothing else.
-- Backtrace (Reduced):
#6 QModelIndex (this=0x2e2eb70, sourceIndex=...) at /usr/include/QtCore/qabstractitemmodel.h:65
#7 KDescendantsProxyModel::mapFromSource (this=0x2e2eb70, sourceIndex=...) at /usr/src/debug/kdepimlibs-4.5.0/akonadi/kdescendantsproxymodel.cpp:458
#8 0x00000033233017ab in KDescendantsProxyModelPrivate::processPendingParents (this=0x2fcf350) at /usr/src/debug/kdepimlibs-4.5.0/akonadi/kdescendantsproxymodel.cpp:151
#9 0x0000003323303104 in scheduleProcessPendingParents (this=<value optimized out>, parent=..., start=0, end=0) at /usr/src/debug/kdepimlibs-4.5.0/akonadi/kdescendantsproxymodel.cpp:119
#10 KDescendantsProxyModelPrivate::sourceRowsInserted (this=<value optimized out>, parent=..., start=0, end=0) at /usr/src/debug/kdepimlibs-4.5.0/akonadi/kdescendantsproxymodel.cpp:589
*** Bug 245886 has been marked as a duplicate of this bug. *** *** Bug 249399 has been marked as a duplicate of this bug. *** This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present? If noone confirms this bug for a Framework-based version of kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months. Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input. |