Bug 230488 - KSysguard crash on start after a small delay
Summary: KSysguard crash on start after a small delay
Status: RESOLVED FIXED
Alias: None
Product: ksysguard
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
: 234356 245599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-12 20:03 UTC by Christoph Feck
Modified: 2010-10-11 14:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Feck 2010-03-12 20:03:20 UTC
Application: ksysguard (4.4.67 (KDE 4.4.67 (KDE 4.5 >= 20100310)))
KDE Platform Version: 4.4.67 (KDE 4.4.67 (KDE 4.5 >= 20100310)) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.31.12-0.1-desktop i686
Distribution: "openSUSE 11.2 (i586)"

-- Information about the crash:
When starting KSysguard either directly, or via the KRunner system monitor, I get this crash after a short time, probably when the next list update should be done.

I switched to Qt 4.7 tp yesterday, and blamed a regression in Qt for the bug, but seeing there are duplicates even with Qt 4.5.x, I think the problem is in KSysguard, so before filing a bug to Nokia, I want to make sure where the bug is.

The crash can be reproduced every time.

 -- Backtrace:
Application: System Monitor (ksysguard), signal: Segmentation fault
[KCrash Handler]
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0x81d51a0, proxy_index=...) at /local/git/Qt/qt/src/gui/itemviews/qsortfilterproxymodel.cpp:336
#8  0xb6034903 in QSortFilterProxyModel::mapToSource (this=0x81fb70c, proxyIndex=...) at /local/git/Qt/qt/src/gui/itemviews/qsortfilterproxymodel.cpp:2457
#9  0xb602e007 in QSortFilterProxyModelPrivate::store_persistent_indexes (this=0x81d51a0) at /local/git/Qt/qt/src/gui/itemviews/qsortfilterproxymodel.cpp:962
#10 0xb602e29a in QSortFilterProxyModelPrivate::sort (this=0x81d51a0) at /local/git/Qt/qt/src/gui/itemviews/qsortfilterproxymodel.cpp:392
#11 0xb5fd63c8 in QTreeViewPrivate::_q_sortIndicatorChanged (this=0x8235010, column=1, order=AscendingOrder) at /local/git/Qt/qt/src/gui/itemviews/qtreeview.cpp:3867
#12 0xb5fe9f5b in QTreeView::qt_metacall (this=0x81d6650, _c=InvokeMetaMethod, _id=18, _a=0xbfffc784) at .moc/release-shared/moc_qtreeview.cpp:142
#13 0xb64e5f3a in QMetaObject::metacall (object=0x81d6650, cl=136139168, idx=87, argv=0xbfffc784) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#14 0xb64f596b in QMetaObject::activate (sender=0x81e5480, m=0xb63325d8, local_signal_index=10, argv=0xbfffc784) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:3302
#15 0xb5fa32c9 in QHeaderView::sortIndicatorChanged (this=0x81e5480, _t1=1, _t2=AscendingOrder) at .moc/release-shared/moc_qheaderview.cpp:281
#16 0xb5fad9bd in QHeaderView::setSortIndicator (this=0x81e5480, logicalIndex=1, order=AscendingOrder) at /local/git/Qt/qt/src/gui/itemviews/qheaderview.cpp:1291
#17 0xb5fd6dac in QTreeView::sortByColumn (this=0x81d6650, column=1, order=AscendingOrder) at /local/git/Qt/qt/src/gui/itemviews/qtreeview.cpp:2627
#18 0xb763acc1 in KSysGuardProcessList::updateList (this=0x81d9568) at /local/svn/kde/trunk/KDE/kdebase/workspace/libs/ksysguard/processui/ksysguardprocesslist.cpp:927
#19 0xb76b2530 in ProcessController::timerTick (this=0x81eb078) at /local/svn/kde/trunk/KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib/ProcessController.cc:129
#20 0xb768ba19 in KSGRD::SensorDisplay::qt_metacall (this=0x81eb078, _c=InvokeMetaMethod, _id=6, _a=0xbfffc98c) at /local/build/KDE/kdebase/workspace/ksysguard/gui/SensorDisplay.moc:94
#21 0xb76b1262 in ProcessController::qt_metacall (this=0x81eb078, _c=InvokeMetaMethod, _id=33, _a=0xbfffc98c) at /local/build/KDE/kdebase/workspace/ksysguard/gui/ProcessController.moc:75
#22 0xb64e5f3a in QMetaObject::metacall (object=0x81eb078, cl=136139168, idx=33, argv=0xbfffc98c) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#23 0xb64f596b in QMetaObject::activate (sender=0x81e696c, m=0xb65fc5a4, local_signal_index=0, argv=0x0) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:3302
#24 0xb654ae17 in QTimer::timeout (this=0x81e696c) at .moc/release-shared/moc_qtimer.cpp:134
#25 0xb64fe49e in QTimer::timerEvent (this=0x81e696c, e=0xbfffcec0) at /local/git/Qt/qt/src/corelib/kernel/qtimer.cpp:271
#26 0xb64f2954 in QObject::event (this=0x81e696c, e=0x0) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:1207
#27 0xb59ff7cc in QApplicationPrivate::notify_helper (this=0x806a690, receiver=0x81e696c, e=0xbfffcec0) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:4336
#28 0xb5a0740e in QApplication::notify (this=0x806a5f8, receiver=0x81e696c, e=0xbfffcec0) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3740
#29 0xb6b6450c in KApplication::notify (this=0x806a5f8, receiver=0x81e696c, event=0xbfffcec0) at /local/svn/kde/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#30 0xb64e027b in QCoreApplication::notifyInternal (this=0x806a5f8, receiver=0x81e696c, event=0xbfffcec0) at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:704
#31 0xb65119e6 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../include/QtCore/../../../../git/Qt/qt/src/corelib/kernel/qcoreapplication.h:215
#32 QTimerInfoList::activateTimers (event=<value optimized out>, receiver=<value optimized out>) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:603
#33 0xb650ea87 in timerSourceDispatch (source=0x806d4c0) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:184
#34 idleTimerSourceDispatch (source=0x806d4c0) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:231
#35 0xb3c824c2 in g_main_dispatch (context=<value optimized out>) at gmain.c:1960
#36 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#37 0xb3c85d98 in g_main_context_iterate (context=0x806ca98, block=<value optimized out>, dispatch=1, self=0x806a7f8) at gmain.c:2591
#38 0xb3c85ebe in IA__g_main_context_iteration (context=0x806ca98, may_block=1) at gmain.c:2654
#39 0xb650e745 in QEventDispatcherGlib::processEvents (this=0x806a650, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:412
#40 0xb5abedd5 in QGuiEventDispatcherGlib::processEvents (this=0x806a650, flags=...) at /local/git/Qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#41 0xb64ded59 in QEventLoop::processEvents (this=0xbfffd154, flags=) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:149
#42 0xb64df1aa in QEventLoop::exec (this=0xbfffd154, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:201
#43 0xb64e46af in QCoreApplication::exec () at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:981
#44 0xb59fe797 in QApplication::exec () at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3615
#45 0xb76d8528 in kdemain (argc=1, argv=0xbfffd3a4) at /local/svn/kde/trunk/KDE/kdebase/workspace/ksysguard/gui/ksysguard.cc:582
#46 0x08048769 in main (argc=1, argv=0xbfffd3a4) at /local/build/KDE/kdebase/workspace/ksysguard/gui/ksysguard_dummy.cpp:3

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

Possible duplicates by query: bug 229648, bug 225832, bug 218618, bug 218455, bug 216676.

Reported using DrKonqi
Comment 1 John Tapsell 2010-05-05 17:20:05 UTC
*** Bug 234356 has been marked as a duplicate of this bug. ***
Comment 2 John Tapsell 2010-05-05 19:05:10 UTC
SVN commit 1123228 by johnflux:

Fix crash - we could call endMoveRows when we hadn't called beginMoveRows

This was the result of many many bug reports.  I only found the reason because of more strict assertions in Qt 4.7.  Thank you Qt!

BUG:227475
BUG:230488

 M  +35 -0     ProcessModel.cc  
 M  +5 -0      ProcessModel_p.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1123228
Comment 3 John Tapsell 2010-05-05 19:13:27 UTC
SVN commit 1123232 by johnflux:

Fix crash - we could call endMoveRows when we hadn't called beginMoveRows

This was the result of many many bug reports.  I only found the reason because of more strict assertions in Qt 4.7.  Thank you Qt!

BUG:227475
BUG:230488

 M  +35 -0     ProcessModel.cc  
 M  +3 -0      ProcessModel_p.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1123232
Comment 4 Christoph Feck 2010-10-11 14:15:49 UTC
*** Bug 245599 has been marked as a duplicate of this bug. ***