Bug 219008

Summary: Kontact crashes when clicking "New" if the only active plugin (Akregator) is running as a standalone app [QList, KontactInterface::Plugin::newActions, Kontact::MainWindow::slotNewClicked]
Product: [Applications] kontact Reporter: Dario Andres <andresbajotierra>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: biasquez, crandrad, ernstw, lst_manage, peebhat
Priority: NOR    
Version: 4.4 pre   
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

Description Dario Andres 2009-12-17 02:54:04 UTC
Application: kontact (4.4 pre)
KDE Platform Version: 4.3.82 (KDE 4.3.82 (KDE 4.4 >= 20091211)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Qt: 4.6.0 (kde-qt master commit 784477685913781462c426e99605546a4beaf3a4
        Date:   Tue Dec 1 19:17:20 2009 +0100)
KDE Development Platform: 4.3.82 (KDE 4.3.82 (KDE 4.4 >= 20091211))
kdelibs svn rev. 1062703 / kdebase svn rev. 1062703
kdepim svn rev. 1060455
on ArchLinux i686 - Kernel 2.6.31.6

Steps to reproduce:
- Start Kontact
- Disable all the plugins (the only remaining one will be Akregator)
- Close Kontact
- Start Akregator as a standalone application
- Start Kontact
The "New" action in the toolbar now has a "unknown" icon. 
- Click the "New" toolbutton 
Kontact crashes

(note that Akregator is not accesible from Kontact if it is already running as a standalone application)


The crash can be reproduced everytime.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#6  QList (this=0x0) at /home/kde-devel/kde/src/qt/include/QtCore/../../src/corelib/tools/qlist.h:114
#7  KontactInterface::Plugin::newActions (this=0x0) at /home/kde-devel/kde/src/KDE/kdepimlibs/kontactinterface/plugin.cpp:236
#8  0xb70814b9 in Kontact::MainWindow::slotNewClicked (this=0x8c23cc0) at /home/kde-devel/kde/src/KDE/kdepim/kontact/src/mainwindow.cpp:723
#9  0xb708aed7 in Kontact::MainWindow::qt_metacall (this=0x8c23cc0, _c=QMetaObject::InvokeMetaMethod, _id=61, _a=0xbfa0ab18) at /home/kde-devel/kde/build/KDE/kdepim/kontact/src/mainwindow.moc:121
#10 0xb59e69c4 in QMetaObject::metacall (object=0x8c23cc0, cl=QMetaObject::InvokeMetaMethod, idx=61, argv=0xbfa0ab18) at kernel/qmetaobject.cpp:237
#11 0xb59faa85 in QMetaObject::activate (sender=0x8d34a58, m=0xb5659458, local_signal_index=1, argv=0xbfa0ab18) at kernel/qobject.cpp:3294
#12 0xb4b82a54 in QAction::triggered (this=0x8d34a58, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263
#13 0xb4b81f2b in QAction::activate (this=0x8d34a58, event=QAction::Trigger) at kernel/qaction.cpp:1245
#14 0xb4b83099 in QAction::trigger (this=0x8d34a58) at kernel/qaction.h:218
#15 0xb5122e79 in QToolButton::nextCheckState (this=0x8d17eb0) at widgets/qtoolbutton.cpp:1147
#16 0xb501cebf in QAbstractButtonPrivate::click (this=0x8d273f8) at widgets/qabstractbutton.cpp:528
#17 0xb501e5d2 in QAbstractButton::mouseReleaseEvent (this=0x8d17eb0, e=0xbfa0b3cc) at widgets/qabstractbutton.cpp:1118
#18 0xb5121776 in QToolButton::mouseReleaseEvent (this=0x8d17eb0, e=0xbfa0b3cc) at widgets/qtoolbutton.cpp:721
#19 0xb4bfd350 in QWidget::event (this=0x8d17eb0, event=0xbfa0b3cc) at kernel/qwidget.cpp:7974
#20 0xb501e46d in QAbstractButton::event (this=0x8d17eb0, e=0xbfa0b3cc) at widgets/qabstractbutton.cpp:1080
#21 0xb5122ee8 in QToolButton::event (this=0x8d17eb0, event=0xbfa0b3cc) at widgets/qtoolbutton.cpp:1163
#22 0xb4b92834 in QApplicationPrivate::notify_helper (this=0x8b172c8, receiver=0x8d17eb0, e=0xbfa0b3cc) at kernel/qapplication.cpp:4242
#23 0xb4b90b6e in QApplication::notify (this=0xbfa0bc74, receiver=0x8d17eb0, e=0xbfa0b3cc) at kernel/qapplication.cpp:3822
#24 0xb60b8faa in KApplication::notify (this=0xbfa0bc74, receiver=0x8d17eb0, event=0xbfa0b3cc) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#25 0xb59df411 in QCoreApplication::notifyInternal (this=0xbfa0bc74, receiver=0x8d17eb0, event=0xbfa0b3cc) at kernel/qcoreapplication.cpp:704
#26 0xb6bad85f in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) () from /home/kde-devel/kde/src/qt/lib/libQt3Support.so.4
#27 0xb4b8f19d in QApplicationPrivate::sendMouseEvent (receiver=0x8d17eb0, event=0xbfa0b3cc, alienWidget=0x8d17eb0, nativeWidget=0x8c23cc0, buttonDown=0xb567c260, lastMouseReceiver=..., 
    spontaneous=true) at kernel/qapplication.cpp:2954
#28 0xb4c3354a in QETWidget::translateMouseEvent (this=0x8c23cc0, event=0xbfa0b8f0) at kernel/qapplication_x11.cpp:4368
#29 0xb4c3018a in QApplication::x11ProcessEvent (this=0xbfa0bc74, event=0xbfa0b8f0) at kernel/qapplication_x11.cpp:3379
#30 0xb4c66729 in x11EventSourceDispatch (s=0x8b23d40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#31 0xb3880328 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb3883ba0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#33 0xb3883cd3 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#34 0xb5a16e48 in QEventDispatcherGlib::processEvents (this=0x8b16718, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#35 0xb4c66d50 in QGuiEventDispatcherGlib::processEvents (this=0x8b16718, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#36 0xb59dc81b in QEventLoop::processEvents (this=0xbfa0bbcc, flags=...) at kernel/qeventloop.cpp:149
#37 0xb59dc960 in QEventLoop::exec (this=0xbfa0bbcc, flags=...) at kernel/qeventloop.cpp:201
#38 0xb59dfaed in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#39 0xb4b8fe54 in QApplication::exec () at kernel/qapplication.cpp:3570
#40 0x0804b666 in main (argc=1, argv=0xbfa0be94) at /home/kde-devel/kde/src/KDE/kdepim/kontact/src/main.cpp:221

Reported using DrKonqi
Comment 1 Dario Andres 2010-02-17 16:54:01 UTC
According to bug 227300, this can also happen with KMail (if it is externally running)
Comment 2 Dario Andres 2010-02-17 16:54:05 UTC
*** Bug 227300 has been marked as a duplicate of this bug. ***
Comment 3 Christophe Marin 2010-03-26 11:21:42 UTC
*** Bug 230248 has been marked as a duplicate of this bug. ***
Comment 4 omega 2010-04-27 18:52:09 UTC
Created attachment 43062 [details]
New crash information added by DrKonqi

Kontact crashes when clicking "New" with kmail open.
Comment 5 Parameshwara Bhat 2010-05-09 20:50:59 UTC
Created attachment 43406 [details]
New crash information added by DrKonqi

I am not sure that the crash is exactly as the earllier bug reports report.But all the conditions match.I have both Akregator and Kmail and (Korganizer too) running as separate applications.
Comment 6 Christophe Marin 2010-06-07 12:41:43 UTC
*** Bug 241005 has been marked as a duplicate of this bug. ***
Comment 7 Denis Kurz 2016-09-24 19:24:29 UTC
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.
Comment 8 Denis Kurz 2017-01-07 22:45:25 UTC
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.