Bug 253363 - Crash when trying to change the Akregator backend settings if the module is not loaded.
Summary: Crash when trying to change the Akregator backend settings if the module is n...
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: akregator (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 265542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-06 09:01 UTC by Ron Katzir
Modified: 2011-02-05 21:17 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.81 KB, text/plain)
2010-10-28 02:08 UTC, sinozzuke
Details
New crash information added by DrKonqi (4.87 KB, text/plain)
2010-12-13 17:35 UTC, Bruno Friedmann
Details
New crash information added by DrKonqi (5.14 KB, text/plain)
2010-12-25 07:30 UTC, Dawid van Wyngaard
Details
New crash information added by DrKonqi (5.83 KB, text/plain)
2010-12-27 02:00 UTC, Josef
Details
New crash information added by DrKonqi (8.80 KB, text/plain)
2010-12-27 09:21 UTC, Bruno Friedmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Katzir 2010-10-06 09:01:21 UTC
Application: kontact (4.4.6)
KDE Platform Version: 4.5.2 (KDE 4.5.2) "release 5"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.3-default i686
Distribution: "openSUSE 11.3 (i586)"

-- Information about the crash:
Occured in openSUSE 11.3 with KDE 4.5.2 - was trying to change advanced archive settings for Akregator when Kontact crashed

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#7  Akregator::SettingsAdvanced::slotConfigureStorage (this=0x903feb0) at /usr/src/debug/kdepim-4.4.6/akregator/configuration/settings_advanced.cpp:83
#8  0xacec2d0e in Akregator::SettingsAdvanced::qt_metacall (this=0x903feb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfd817a8)
    at /usr/src/debug/kdepim-4.4.6/build/akregator/configuration/settings_advanced.moc:76
#9  0xb6bccefd in QMetaObject::metacall (object=0x903feb0, cl=QMetaObject::InvokeMetaMethod, idx=27, argv=0xbfd817a8) at kernel/qmetaobject.cpp:237
#10 0xb6bdbfe8 in QMetaObject::activate (sender=0x9041208, m=0xb6a5d844, local_signal_index=2, argv=0xbfd817a8) at kernel/qobject.cpp:3295
#11 0xb682321d in QAbstractButton::clicked (this=0x9041208, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#12 0xb6522c1d in QAbstractButtonPrivate::emitClicked (this=0x9041220) at widgets/qabstractbutton.cpp:546
#13 0xb65242db in QAbstractButtonPrivate::click (this=0x9041220) at widgets/qabstractbutton.cpp:539
#14 0xb6524596 in QAbstractButton::mouseReleaseEvent (this=0x9041208, e=0xbfd81eb4) at widgets/qabstractbutton.cpp:1121
#15 0xb6174f00 in QWidget::event (this=0x9041208, event=0xbfd81eb4) at kernel/qwidget.cpp:8044
#16 0xb65237d0 in QAbstractButton::event (this=0x9041208, e=0xbfd81eb4) at widgets/qabstractbutton.cpp:1080
#17 0xb65c32d8 in QPushButton::event (this=0x9041208, e=0xbfd81eb4) at widgets/qpushbutton.cpp:679
#18 0xb611bc64 in QApplicationPrivate::notify_helper (this=0x807d6b8, receiver=0x9041208, e=0xbfd81eb4) at kernel/qapplication.cpp:4302
#19 0xb6124750 in QApplication::notify (this=0xbfd81bcc, receiver=0x9041208, e=0xbfd81eb4) at kernel/qapplication.cpp:3867
#20 0xb70aa911 in KApplication::notify (this=0xbfd82724, receiver=0x9041208, event=0xbfd81eb4) at /usr/src/debug/kdelibs-4.5.2/kdeui/kernel/kapplication.cpp:310
#21 0xb6bc6e0e in QCoreApplication::notifyInternal (this=0xbfd82724, receiver=0x9041208, event=0xbfd81eb4) at kernel/qcoreapplication.cpp:726
#22 0xb611cc4c in sendSpontaneousEvent (receiver=0x9041208, event=0xbfd81eb4, alienWidget=0x9041208, nativeWidget=0x903b3f0, buttonDown=0xb6a66078, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:218
#23 QApplicationPrivate::sendMouseEvent (receiver=0x9041208, event=0xbfd81eb4, alienWidget=0x9041208, nativeWidget=0x903b3f0, buttonDown=0xb6a66078, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#24 0xb61a458c in QETWidget::translateMouseEvent (this=0x903b3f0, event=0xbfd823cc) at kernel/qapplication_x11.cpp:4380
#25 0xb61a373e in QApplication::x11ProcessEvent (this=0xbfd82724, event=0xbfd823cc) at kernel/qapplication_x11.cpp:3391
#26 0xb61cc570 in x11EventSourceDispatch (s=0x8079940, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#27 0xb3f91b49 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0xb3f92350 in ?? () from /usr/lib/libglib-2.0.so.0
#29 0xb3f9260e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0xb6bf2d4b in QEventDispatcherGlib::processEvents (this=0x8056b50, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#31 0xb61cc19a in QGuiEventDispatcherGlib::processEvents (this=0x8056b50, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#32 0xb6bc611d in QEventLoop::processEvents (this=0xbfd82684, flags=...) at kernel/qeventloop.cpp:149
#33 0xb6bc6319 in QEventLoop::exec (this=0xbfd82684, flags=...) at kernel/qeventloop.cpp:201
#34 0xb6bcac70 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#35 0xb6119164 in QApplication::exec () at kernel/qapplication.cpp:3581
#36 0x0804b813 in _start ()

This bug may be a duplicate of or related to bug 195482.

Possible duplicates by query: bug 248341.

Reported using DrKonqi
Comment 1 sinozzuke 2010-10-28 02:08:14 UTC
Created attachment 52926 [details]
New crash information added by DrKonqi

kontact (4.4.6) on KDE Platform 4.5.2 (KDE 4.5.2) using Qt 4.7.0

- What I was doing when the application crashed:
Kontact crashes when trying to change Akregator settings

-- Backtrace (Reduced):
#9  0x00007f0723ed00c2 in QAbstractButton::clicked (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#10 0x00007f0723c1484b in QAbstractButtonPrivate::emitClicked (this=<value optimized out>) at widgets/qabstractbutton.cpp:546
#11 0x00007f0723c15e1b in QAbstractButtonPrivate::click (this=0x142f050) at widgets/qabstractbutton.cpp:539
#12 0x00007f0723c1608c in QAbstractButton::mouseReleaseEvent (this=0x142d1b0, e=0x7fffb374b2a0) at widgets/qabstractbutton.cpp:1121
#13 0x00007f07238af678 in QWidget::event (this=0x142d1b0, event=0x7fffb374b2a0) at kernel/qwidget.cpp:8187
Comment 2 Bruno Friedmann 2010-12-13 17:35:54 UTC
Created attachment 54511 [details]
New crash information added by DrKonqi

kontact (4.6 beta2) on KDE Platform 4.5.85 (4.6 Beta2) using Qt 4.7.1

- What I was doing when the application crashed: try to change the archive engine in akregator with kontact configuration.
Happen on new build kde4.6b2

-- Backtrace (Reduced):
#6  Akregator::SettingsAdvanced::slotConfigureStorage (this=0x4df60e0) at /usr/src/debug/kdepim-4.5.85/akregator/configuration/settings_advanced.cpp:85
#7  0x00007f54d3245138 in Akregator::SettingsAdvanced::qt_metacall (this=0x4df60e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffc7ce6020) at /usr/src/debug/kdepim-4.5.85/build/akregator/configuration/settings_advanced.moc:76
[...]
#9  0x00007f54fa0db512 in QAbstractButton::clicked (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#10 0x00007f54f9e23adb in QAbstractButtonPrivate::emitClicked (this=0x4df73f0) at widgets/qabstractbutton.cpp:546
#11 0x00007f54f9e250ab in QAbstractButtonPrivate::click (this=0x4df73f0) at widgets/qabstractbutton.cpp:539
Comment 3 Dawid van Wyngaard 2010-12-25 07:30:55 UTC
Created attachment 55219 [details]
New crash information added by DrKonqi

kontact (4.4.6) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed: Chaning Archive settings in Feeds in Kontact

-- Backtrace (Reduced):
#6  Akregator::SettingsAdvanced::slotConfigureStorage (this=0x3b68460) at ../../../akregator/configuration/settings_advanced.cpp:83
#7  0x00007f6a5ac60018 in Akregator::SettingsAdvanced::qt_metacall (this=0x3b68460, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff0f9d1b30) at ./settings_advanced.moc:76
[...]
#9  0x00007f6a8e60c402 in QAbstractButton::clicked (this=0x0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#10 0x00007f6a8e306eeb in QAbstractButtonPrivate::emitClicked (this=0x308e090) at widgets/qabstractbutton.cpp:546
#11 0x00007f6a8e3085bb in QAbstractButtonPrivate::click (this=0x308e090) at widgets/qabstractbutton.cpp:539
Comment 4 Josef 2010-12-27 02:00:12 UTC
Created attachment 55276 [details]
New crash information added by DrKonqi

kontact (4.4.6) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:
Opened the advanced settings in akregator and pressed the "Configure..." button for Archive backend. No option was selected (or available) in the dropdown list. 
- Custom settings of the application:
This only happened when Akregator was newly installed, and before I had ever started it. After starting and downloading some feeds, the dropdown list is populated with Metakit, and the Settings... button is disabled when selecting Metakit or the No Archive option. In other words, this only seems to happen if accessing the settings through Kontact before running Akregator.

-- Backtrace (Reduced):
#6  Akregator::SettingsAdvanced::slotConfigureStorage (this=0x409f160) at ../../../akregator/configuration/settings_advanced.cpp:83
#7  0x00007fe097e6d018 in Akregator::SettingsAdvanced::qt_metacall (this=0x409f160, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe148bd20) at ./settings_advanced.moc:76
[...]
#9  0x00007fe0c5d5c402 in QAbstractButton::clicked (this=0x0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#10 0x00007fe0c5a56eeb in QAbstractButtonPrivate::emitClicked (this=0x40a5af0) at widgets/qabstractbutton.cpp:546
#11 0x00007fe0c5a585bb in QAbstractButtonPrivate::click (this=0x40a5af0) at widgets/qabstractbutton.cpp:539
Comment 5 Bruno Friedmann 2010-12-27 09:21:51 UTC
Created attachment 55279 [details]
New crash information added by DrKonqi

kontact (4.6 beta3) on KDE Platform 4.5.90 (4.6 RC1) using Qt 4.7.1

- What I was doing when the application crashed: To confirm, I've start kontact and use akregator shortcut. when all rss are shown, I open configure akregator, and it works.
After that, I put the résumé view, close kontact. Reopen it, and then click on configure akregator before it was launch, then I get the crash.

Even with lastest build available.

-- Backtrace (Reduced):
#6  size (this=0x18) at /usr/include/QtCore/qhash.h:291
#7  QHash<QString, MessageList::Core::Aggregation*>::values (this=0x18) at /usr/include/QtCore/qhash.h:694
#8  0x00007f014df1196e in MessageList::Utils::AggregationComboBoxPrivate::slotLoadAggregations (this=0x26fcc10) at /usr/src/debug/kdepim-4.5.90.git20101225/messagelist/utils/aggregationcombobox.cpp:114
#9  0x00007f014df11be9 in MessageList::Utils::AggregationComboBox::AggregationComboBox (this=0x43a3a20, parent=<value optimized out>) at /usr/src/debug/kdepim-4.5.90.git20101225/messagelist/utils/aggregationcombobox.cpp:35
#10 0x00007f014e409a04 in AppearancePageHeadersTab::AppearancePageHeadersTab (this=<value optimized out>, parent=<value optimized out>) at /usr/src/debug/kdepim-4.5.90.git20101225/kmail/configuredialog.cpp:1222
Comment 6 Christophe Marin 2011-01-15 14:39:31 UTC
(In reply to comment #5)
> Created an attachment (id=55279) [details]
> New crash information added by DrKonqi
> 
> kontact (4.6 beta3) on KDE Platform 4.5.90 (4.6 RC1) using Qt 4.7.1
> 
> - What I was doing when the application crashed: To confirm, I've start kontact
> and use akregator shortcut. when all rss are shown, I open configure akregator,
> and it works.
> After that, I put the résumé view, close kontact. Reopen it, and then click on
> configure akregator before it was launch, then I get the crash.
> 


Please don't mix the reports.
Comment 7 Christophe Marin 2011-01-15 15:08:25 UTC
commit 9107d12d0e1e7292c51867368afdedc2cf65fd78
branch master
Author: Christophe Giboudeaux <cgiboudeaux@gmail.com>
Date:   Sat Jan 15 15:06:37 2011 +0100

    Prevent Kontact from crashing when the backends list is not populated yet.
    BUG: 253363
    MERGE: 4.4

diff --git a/akregator/configuration/settings_advanced.cpp b/akregator/configuration/settings_advanced.cpp
index 7d58031..dda043a 100644
--- a/akregator/configuration/settings_advanced.cpp
+++ b/akregator/configuration/settings_advanced.cpp
@@ -80,9 +80,11 @@ void SettingsAdvanced::selectFactory( const QString& key )
 void SettingsAdvanced::slotConfigureStorage()
 {
     const QString key = cbBackend->itemData( cbBackend->currentIndex() ).toString();
-    Backend::StorageFactory* const factory = m_factories.value( key );
-    assert( factory );
-    factory->configure();
+    if( !key.isEmpty() ) {
+        Backend::StorageFactory* const factory = m_factories.value( key );
+        assert( factory );
+        factory->configure();
+    }
 }
 
 void SettingsAdvanced::slotFactorySelected( int pos )
Comment 8 Christophe Marin 2011-01-15 15:20:44 UTC
commit b5afbb67ffaed58557e42e62c045f735ba091ad6
branch 4.4
Author: Christophe Giboudeaux <cgiboudeaux@gmail.com>
Date:   Sat Jan 15 15:06:37 2011 +0100

    Prevent Kontact from crashing when the backends list is not populated yet.
    BUG: 253363
    MERGE: 4.4

diff --git a/akregator/configuration/settings_advanced.cpp b/akregator/configuration/settings_advanced.cpp
index 2eccd37..03d5922 100644
--- a/akregator/configuration/settings_advanced.cpp
+++ b/akregator/configuration/settings_advanced.cpp
@@ -78,9 +78,11 @@ void SettingsAdvanced::selectFactory( const QString& key )
 void SettingsAdvanced::slotConfigureStorage()
 {
     const QString key = cbBackend->itemData( cbBackend->currentIndex() ).toString();
-    Backend::StorageFactory* const factory = m_factories.value( key );
-    assert( factory );
-    factory->configure();
+    if( !key.isEmpty() ) {
+        Backend::StorageFactory* const factory = m_factories.value( key );
+        assert( factory );
+        factory->configure();
+    }
 }
 
 void SettingsAdvanced::slotFactorySelected( int pos )
Comment 9 Christophe Marin 2011-02-05 21:17:45 UTC
*** Bug 265542 has been marked as a duplicate of this bug. ***