Bug 257341

Summary: Crash when adding or deleting gcal resource [QModelIndex, QSortFilterProxyModel::parent, QPersistentModelIndex::parent, ..., ResourceView::editResource]
Product: [Applications] kontact Reporter: Chris <crglasoe>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: 4.4.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Chris 2010-11-19 18:09:57 UTC
Application: kontact (4.4.5)
KDE Platform Version: 4.4.4 (KDE 4.4.4) "release 3"
Qt Version: 4.7.1
Operating System: Linux 2.6.34.7-0.5-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
Akondai crashes when adding or deleting gcal resources.  Does not sync with Kontact or Google.  This is happening repeatedly. 


The crash can be reproduced every time.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#5  QModelIndex (this=0x2176510, child=<value optimized out>) at ../../src/corelib/kernel/qabstractitemmodel.h:65
#6  QSortFilterProxyModel::parent (this=0x2176510, child=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1656
#7  0x00007f3d3dd0da83 in parent (this=<value optimized out>) at kernel/qabstractitemmodel.h:389
#8  QPersistentModelIndex::parent (this=<value optimized out>) at kernel/qabstractitemmodel.cpp:347
#9  0x00007f3d3d63e927 in parent (this=0x2085620, index=...) at itemviews/qitemselectionmodel.h:78
#10 contains (this=0x2085620, index=...) at itemviews/qitemselectionmodel.h:83
#11 QItemSelection::contains (this=0x2085620, index=...) at itemviews/qitemselectionmodel.cpp:423
#12 0x00007f3d3d63ee7b in QItemSelectionModel::isSelected (this=<value optimized out>, index=...) at itemviews/qitemselectionmodel.cpp:1200
#13 0x00007f3d3d60bd92 in QListView::paintEvent (this=0x2153600, e=<value optimized out>) at itemviews/qlistview.cpp:984
#14 0x00007f3d3d12b45a in QWidget::event (this=0x2153600, event=0x7fff3e76d3b0) at kernel/qwidget.cpp:8346
#15 0x00007f3d3d4d8006 in QFrame::event (this=0x2153600, e=0x7fff3e76d3b0) at widgets/qframe.cpp:557
#16 0x00007f3d3d5ea0d3 in QAbstractItemView::viewportEvent (this=0x2153600, event=0x7fff3e76d3b0) at itemviews/qabstractitemview.cpp:1619
#17 0x00007f3d3dd1bee7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x1de73c0, event=0x7fff3e76d3b0) at kernel/qcoreapplication.cpp:847
#18 0x00007f3d3d0d9ca1 in QApplicationPrivate::notify_helper (this=0x63c9f0, receiver=0x1de73c0, e=0x7fff3e76d3b0) at kernel/qapplication.cpp:4441
#19 0x00007f3d3d0e21ca in QApplication::notify (this=<value optimized out>, receiver=0x1de73c0, e=0x7fff3e76d3b0) at kernel/qapplication.cpp:4324
#20 0x00007f3d3e61bc06 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#21 0x00007f3d3dd1bd5c in QCoreApplication::notifyInternal (this=0x7fff3e76ffa0, receiver=0x1de73c0, event=0x7fff3e76d3b0) at kernel/qcoreapplication.cpp:732
#22 0x00007f3d3d128322 in sendSpontaneousEvent (this=0x20e1560, pdev=0x1edea88, rgn=..., offset=..., flags=68, sharedPainter=0x0, backingStore=0x146fa20)
    at ../../src/corelib/kernel/qcoreapplication.h:218
#23 QWidgetPrivate::drawWidget (this=0x20e1560, pdev=0x1edea88, rgn=..., offset=..., flags=68, sharedPainter=0x0, backingStore=0x146fa20) at kernel/qwidget.cpp:5433
#24 0x00007f3d3d2ed9d8 in QWidgetBackingStore::sync (this=0x146fa20) at painting/qbackingstore.cpp:1325
#25 0x00007f3d3d11d010 in QWidgetPrivate::syncBackingStore (this=0x1ffe9c0) at kernel/qwidget.cpp:1816
#26 0x00007f3d3d12b962 in QWidget::event (this=0x1ffe980, event=0x2441470) at kernel/qwidget.cpp:8493
#27 0x00007f3d3d0d9cd4 in QApplicationPrivate::notify_helper (this=0x63c9f0, receiver=0x1ffe980, e=0x2441470) at kernel/qapplication.cpp:4445
#28 0x00007f3d3d0e21ca in QApplication::notify (this=<value optimized out>, receiver=0x1ffe980, e=0x2441470) at kernel/qapplication.cpp:4324
#29 0x00007f3d3e61bc06 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#30 0x00007f3d3dd1bd5c in QCoreApplication::notifyInternal (this=0x7fff3e76ffa0, receiver=0x1ffe980, event=0x2441470) at kernel/qcoreapplication.cpp:732
#31 0x00007f3d3dd1f555 in sendEvent (receiver=0x0, event_type=0, data=0x60dc60) at kernel/qcoreapplication.h:215
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60dc60) at kernel/qcoreapplication.cpp:1373
#33 0x00007f3d3dd46813 in sendPostedEvents (s=0x648750) at kernel/qcoreapplication.h:220
#34 postEventSourceDispatch (s=0x648750) at kernel/qeventdispatcher_glib.cpp:277
#35 0x00007f3d358e4a93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#36 0x00007f3d358e5270 in ?? () from /usr/lib64/libglib-2.0.so.0
#37 0x00007f3d358e5510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#38 0x00007f3d3dd469af in QEventDispatcherGlib::processEvents (this=0x6132b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#39 0x00007f3d3d17eeae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007f3d3dd1b192 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007f3d3dd1b3a5 in QEventLoop::exec (this=0x7fff3e76e3f0, flags=...) at kernel/qeventloop.cpp:201
#42 0x00007f3d3d5949ae in QDialog::exec (this=0x2137950) at dialogs/qdialog.cpp:552
#43 0x00007f3d20823d88 in ResourceView::editResource (this=0x14738e0) at /usr/src/debug/kdepim-4.4.4/korganizer/resourceview.cpp:610
#44 0x00007f3d2082605b in ResourceView::qt_metacall (this=0x14738e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3e76e8e0)
    at /usr/src/debug/kdepim-4.4.4/build/korganizer/resourceview.moc:114
#45 0x00007f3d3dd30f1f in QMetaObject::activate (sender=0x1473330, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff3e76e8e0) at kernel/qobject.cpp:3272
#46 0x00007f3d3d750322 in QAbstractButton::clicked (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#47 0x00007f3d3d4954db in QAbstractButtonPrivate::emitClicked (this=0x1483700) at widgets/qabstractbutton.cpp:546
#48 0x00007f3d3d496aab in QAbstractButtonPrivate::click (this=0x1483700) at widgets/qabstractbutton.cpp:539
#49 0x00007f3d3d496d1c in QAbstractButton::mouseReleaseEvent (this=0x1473330, e=0x7fff3e76f270) at widgets/qabstractbutton.cpp:1121
#50 0x00007f3d3d55324a in QToolButton::mouseReleaseEvent (this=<value optimized out>, e=<value optimized out>) at widgets/qtoolbutton.cpp:721
#51 0x00007f3d3d12b4a8 in QWidget::event (this=0x1473330, event=0x7fff3e76f270) at kernel/qwidget.cpp:8200
#52 0x00007f3d3d0d9cd4 in QApplicationPrivate::notify_helper (this=0x63c9f0, receiver=0x1473330, e=0x7fff3e76f270) at kernel/qapplication.cpp:4445
#53 0x00007f3d3d0e2a4a in QApplication::notify (this=<value optimized out>, receiver=0x1473330, e=0x7fff3e76f270) at kernel/qapplication.cpp:4006
#54 0x00007f3d3e61bc06 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#55 0x00007f3d3dd1bd5c in QCoreApplication::notifyInternal (this=0x7fff3e76ffa0, receiver=0x1473330, event=0x7fff3e76f270) at kernel/qcoreapplication.cpp:732
#56 0x00007f3d3d0dacd5 in sendEvent (receiver=0x1473330, event=0x7fff3e76f270, alienWidget=0x1473330, nativeWidget=0x8485a0, buttonDown=0x7f3d3dbb5178, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:215
#57 QApplicationPrivate::sendMouseEvent (receiver=0x1473330, event=0x7fff3e76f270, alienWidget=0x1473330, nativeWidget=0x8485a0, buttonDown=0x7f3d3dbb5178, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:3105
#58 0x00007f3d3d158ef8 in QETWidget::translateMouseEvent (this=0x8485a0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4438
#59 0x00007f3d3d1575d9 in QApplication::x11ProcessEvent (this=0x7fff3e76ffa0, event=0x7fff3e76fbd0) at kernel/qapplication_x11.cpp:3564
#60 0x00007f3d3d17f212 in x11EventSourceDispatch (s=0x648960, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#61 0x00007f3d358e4a93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#62 0x00007f3d358e5270 in ?? () from /usr/lib64/libglib-2.0.so.0
#63 0x00007f3d358e5510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#64 0x00007f3d3dd469af in QEventDispatcherGlib::processEvents (this=0x6132b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#65 0x00007f3d3d17eeae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#66 0x00007f3d3dd1b192 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#67 0x00007f3d3dd1b3a5 in QEventLoop::exec (this=0x7fff3e76fef0, flags=...) at kernel/qeventloop.cpp:201
#68 0x00007f3d3dd1f80b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#69 0x000000000040417e in _start ()

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

Possible duplicates by query: bug 257336, bug 257334, bug 255994, bug 255893, bug 255406.

Reported using DrKonqi
Comment 1 Dario Andres 2010-11-19 21:59:59 UTC
[Comment from a bug triager]
From bug 257334:
-- Information about the crash:
Akonadi was not syncing with my gcal resource.  I keep getting a warning that
the password is invalid for the gcal  account.  When I delete the resource,
quit Kontact, re-start Kontact and try to add a new gcal resource Kontact
crashes.  When I go to Akonadi separately and add a gcal resource Kontact
crashes.
Comment 2 Dario Andres 2010-11-19 22:00:04 UTC
*** Bug 257334 has been marked as a duplicate of this bug. ***
Comment 3 Chris 2010-11-19 22:09:47 UTC
Dario,

Can you pass on on to whomever that in my particular case and in this error 
the fix was
Go to KDE Desktop Settings.  
Go to Network settings. 
Then choose Proxy.  Finally choose "Connect to Internet Directly".  

I am using OpenSuSE 11.3 and KDE 4.4.  There may still be a bug but making 
this change re-stored my Google Cal connections.

Thanks,

Chris 

On Friday 19 November 2010 3:00:00 pm Dario Andres wrote:
> https://bugs.kde.org/show_bug.cgi?id=257341
> 
> 
> Dario Andres <andresbajotierra@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
> - CC|                            |andresbajotierra@gmail.com Summary|crash
> when adding or        |Crash when adding or
> 
>                    |deleting gcal resource no   |deleting gcal resource
>                    |sync with goolge or kontact |[QModelIndex,
>                    |
>                    |                            |QSortFilterProxyModel::par
>                    |                            |e nt,
>                    |                            |QPersistentModelIndex::par
>                    |                            |e nt, ...,
>                    |                            |ResourceView::editResource
>                    |                            |]
> 
> --- Comment #1 from Dario Andres <andresbajotierra gmail com>  2010-11-19
> 21:59:59 --- [Comment from a bug triager]
> From bug 257334:
> -- Information about the crash:
> Akonadi was not syncing with my gcal resource.  I keep getting a warning
> that the password is invalid for the gcal  account.  When I delete the
> resource, quit Kontact, re-start Kontact and try to add a new gcal
> resource Kontact crashes.  When I go to Akonadi separately and add a gcal
> resource Kontact crashes.
Comment 4 Dario Andres 2010-11-19 22:12:54 UTC
[Comment from a bug triager]
Thanks for the information. I wonder if the faulty GCal situation was related to the crash at all. 
The crash may be related to bug 250138. (similar backtrace and also using Qt 4.7.x). Could you check if modifying the sidebar options (like changing the icons size or text-only features) of Kontact causes a crash or not ?
Thanks
Comment 5 Chris 2010-11-19 22:20:34 UTC
You are right.  I did as you suggested by changing the side bar icons size.  
Kontact crashed.    I DID NOT submit another bug report on this crash.  If you 
want me to let me know.

That behavior seems strange.  But then I have been away from programming for 
too long and the unix/linux world that I don't understand all the inter-
connectedness or moving parts.

On Friday 19 November 2010 3:12:55 pm Dario Andres wrote:
> https://bugs.kde.org/show_bug.cgi?id=257341
> 
> 
> 
> 
> 
> --- Comment #4 from Dario Andres <andresbajotierra gmail com>  2010-11-19
> 22:12:54 --- [Comment from a bug triager]
> Thanks for the information. I wonder if the faulty GCal situation was
> related to the crash at all.
> The crash may be related to bug 250138. (similar backtrace and also using
> Qt 4.7.x). Could you check if modifying the sidebar options (like changing
> the icons size or text-only features) of Kontact causes a crash or not ?
> Thanks
Comment 6 Dario Andres 2010-11-19 22:24:31 UTC
[Comment from a bug triager]
Thanks for checking it. Merging with bug 250138. Thanks

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