Bug 178572

Summary: Step crashes when I change some property parameters in property panel
Product: [Applications] step Reporter: Olivier Delaune <olivier.delaune>
Component: generalAssignee: Vladimir Kuznetsov <ks.vladimir>
Status: RESOLVED FIXED    
Severity: crash CC: annma, open
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Fixes the bug

Description Olivier Delaune 2008-12-23 15:44:26 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Mandriva RPMs

Hello, first excuse me for my english.
1.Click on "solver1: AdaptativeEulerSolver" in world panel
2.In property panel, click on "solverType" to change it
3.Select another solver type (for example GslRK2)
4.Step crashes with this bug report :

Application : Step (step), signal SIGSEGV
[Current thread is 1 (Thread 0xb4ed46d0 (LWP 3926))]

Thread 2 (Thread 0xb38e0b90 (LWP 3927)):
#0  0xffffe422 in __kernel_vsyscall ()
#1  0xb7609b95 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb65e89ab in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0x080d1490 in ?? ()
#4  0xb65e789f in ?? () from /usr/lib/libQtCore.so.4
#5  0xb7606315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb5ad3dde in clone () from /lib/i686/libc.so.6

Thread 1 (Thread 0xb4ed46d0 (LWP 3926)):
[KCrash Handler]
#6  0x08074480 in _start ()


Other property modification allow to crash Step. This is mainly for "solver", "collisionSolver" and "constraintSolver".
Comment 1 Anne-Marie Mahfouf 2009-02-01 09:46:49 UTC
Better backtrace

Application: Step (step), signal SIGABRT
[Current thread is 1 (Thread 0xb4fc39a0 (LWP 6371))]

Thread 3 (Thread 0xb37d4b90 (LWP 6373)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb74deb95 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb615e6a8 in QWaitConditionPrivate::wait (this=0x83c9078, time=4294967295) at thread/qwaitcondition_unix.cpp:82
#3  0xb615e1a7 in QWaitCondition::wait (this=0x83bb7a4, mutex=0x83bb7a0, time=4294967295) at thread/qwaitcondition_unix.cpp:154
#4  0x080fcde0 in SimulationThread::run (this=0x83bb788) at /usr/local/trunk-src/kdeedu/step/step/simulationthread.cc:29
#5  0xb615dd85 in QThreadPrivate::start (arg=0x83bb788) at thread/qthread_unix.cpp:185
#6  0xb74db315 in start_thread () from /lib/i686/libpthread.so.0
#7  0xb572ddde in clone () from /lib/i686/libc.so.6

Thread 2 (Thread 0xb1ab2b90 (LWP 6374)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb74deec2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb615e68e in QWaitConditionPrivate::wait (this=0x8464ea8, time=30000) at thread/qwaitcondition_unix.cpp:80
#3  0xb615e1a7 in QWaitCondition::wait (this=0x8464e08, mutex=0x8464e04, time=30000) at thread/qwaitcondition_unix.cpp:154
#4  0xb6151a8c in QThreadPoolThread::run (this=0x85c1dd0) at concurrent/qthreadpool.cpp:135
#5  0xb615dd85 in QThreadPrivate::start (arg=0x85c1dd0) at thread/qthread_unix.cpp:185
#6  0xb74db315 in start_thread () from /lib/i686/libpthread.so.0
#7  0xb572ddde in clone () from /lib/i686/libc.so.6

Thread 1 (Thread 0xb4fc39a0 (LWP 6371)):
[KCrash Handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb567ed90 in raise () from /lib/i686/libc.so.6
#8  0xb56807f8 in abort () from /lib/i686/libc.so.6
#9  0xb615414b in qt_message_output (msgType=QtFatalMsg, buf=0xbf828f00 "ASSERT: \"_world->solver()\" in file /usr/local/trunk-src/kdeedu/step/step/worldmodel.cc, line 522")
    at global/qglobal.cpp:2102
#10 0xb61541af in qFatal (msg=0xb62a0398 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2303
#11 0xb61545d1 in qt_assert (assertion=0x816af01 "_world->solver()", file=0x816ae24 "/usr/local/trunk-src/kdeedu/step/step/worldmodel.cc", line=522) at global/qglobal.cpp:1872
#12 0x08087c1a in WorldModel::rowCount (this=0x83b4b68, parent=@0xbf82b040) at /usr/local/trunk-src/kdeedu/step/step/worldmodel.cc:522
#13 0xb6242486 in QAbstractItemModelPrivate::rowsAboutToBeInserted (this=0x83b37e0, parent=@0xbf82b040, first=1, last=1) at kernel/qabstractitemmodel.cpp:546
#14 0xb6243584 in QAbstractItemModel::beginInsertRows (this=0x83b4b68, parent=@0xbf82b040, first=1, last=1) at kernel/qabstractitemmodel.cpp:2075
#15 0x0808a0f8 in WorldModel::swapSolver (this=0x83b4b68, solver=0x861d3c8) at /usr/local/trunk-src/kdeedu/step/step/worldmodel.cc:640
#16 0x08090e24 in CommandSetSolver::redo (this=0x861c108) at /usr/local/trunk-src/kdeedu/step/step/worldmodel.cc:199
#17 0xb601188b in QUndoStack::push (this=0x8350630, cmd=0x861c108) at util/qundostack.cpp:539
#18 0x080873e1 in WorldModel::pushCommand (this=0x83b4b68, command=0x861c108) at /usr/local/trunk-src/kdeedu/step/step/worldmodel.cc:653
#19 0x080898f2 in WorldModel::newSolver (this=0x83b4b68, className=@0xbf82b29c) at /usr/local/trunk-src/kdeedu/step/step/worldmodel.cc:582
#20 0x080a28d1 in PropertiesBrowserModel::setData (this=0x8422200, index=@0xbf82b4bc, value=@0xbf82b454, role=2) at /usr/local/trunk-src/kdeedu/step/step/propertiesbrowser.cc:284
#21 0x080a1588 in PropertiesBrowserDelegate::setModelData (this=0x85044a8, editor=0x84381c8, model=0x8422200, index=@0xbf82b4bc) at /usr/local/trunk-src/kdeedu/step/step/propertiesbrowser.cc:576
#22 0xb5effcb3 in QAbstractItemView::commitData (this=0x84da668, editor=0x84381c8) at itemviews/qabstractitemview.cpp:2468
#23 0xb5f06884 in QAbstractItemView::qt_metacall (this=0x84da668, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbf82b65c) at .moc/debug-shared/moc_qabstractitemview.cpp:236
#24 0xb5f434a6 in QTreeView::qt_metacall (this=0x84da668, _c=QMetaObject::InvokeMetaMethod, _id=60, _a=0xbf82b65c) at .moc/debug-shared/moc_qtreeview.cpp:119
#25 0xb626182d in QMetaObject::activate (sender=0x85044a8, from_signal_index=4, to_signal_index=4, argv=0xbf82b65c) at kernel/qobject.cpp:3019
#26 0xb6261cbb in QMetaObject::activate (sender=0x85044a8, m=0xb60fdec8, local_signal_index=0, argv=0xbf82b65c) at kernel/qobject.cpp:3092
#27 0xb6022b00 in QAbstractItemDelegate::commitData (this=0x85044a8, _t1=0x84381c8) at .moc/debug-shared/moc_qabstractitemdelegate.cpp:94
#28 0xb5f49e38 in QItemDelegate::eventFilter (this=0x85044a8, object=0x84381c8, event=0xbf82bbac) at itemviews/qitemdelegate.cpp:1225
#29 0xb624b548 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x82a5250, receiver=0x84381c8, event=0xbf82bbac) at kernel/qcoreapplication.cpp:694
#30 0xb5a06fde in QApplicationPrivate::notify_helper (this=0x82a5250, receiver=0x84381c8, e=0xbf82bbac) at kernel/qapplication.cpp:3799
#31 0xb5a08c36 in QApplication::notify (this=0xbf82c984, receiver=0x84381c8, e=0xbf82bbac) at kernel/qapplication.cpp:3768
#32 0xb67588a7 in KApplication::notify (this=0xbf82c984, receiver=0x84381c8, event=0xbf82bbac) at /usr/local/trunk-src/kdelibs/kdeui/kernel/kapplication.cpp:307
#33 0xb624d177 in QCoreApplication::notifyInternal (this=0xbf82c984, receiver=0x84381c8, event=0xbf82bbac) at kernel/qcoreapplication.cpp:583
#34 0xb6250cf9 in QCoreApplication::sendEvent (receiver=0x84381c8, event=0xbf82bbac) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#35 0xb5a0a16e in QApplicationPrivate::setFocusWidget (focus=0x84da668, reason=Qt::MouseFocusReason) at kernel/qapplication.cpp:1989
#36 0xb5a5bb27 in QWidget::setFocus (this=0x84da668, reason=Qt::MouseFocusReason) at kernel/qwidget.cpp:5376
#37 0xb5a077b3 in QApplication::notify (this=0xbf82c984, receiver=0x83c6bf8, e=0xbf82c184) at kernel/qapplication.cpp:3486
#38 0xb67588a7 in KApplication::notify (this=0xbf82c984, receiver=0x83c6bf8, event=0xbf82c184) at /usr/local/trunk-src/kdelibs/kdeui/kernel/kapplication.cpp:307
#39 0xb624d177 in QCoreApplication::notifyInternal (this=0xbf82c984, receiver=0x83c6bf8, event=0xbf82c184) at kernel/qcoreapplication.cpp:583
#40 0xb5a12ecf in QCoreApplication::sendSpontaneousEvent (receiver=0x83c6bf8, event=0xbf82c184) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#41 0xb5a0b9d6 in QApplicationPrivate::sendMouseEvent (receiver=0x83c6bf8, event=0xbf82c184, alienWidget=0x83c6bf8, nativeWidget=0x82fe048, buttonDown=0xb6108120, lastMouseReceiver=@0xb6108124)
    at kernel/qapplication.cpp:2793
#42 0xb5a821ec in QETWidget::translateMouseEvent (this=0x82fe048, event=0xbf82c670) at kernel/qapplication_x11.cpp:4042
#43 0xb5a82f11 in QApplication::x11ProcessEvent (this=0xbf82c984, event=0xbf82c670) at kernel/qapplication_x11.cpp:3038
#44 0xb5aac3c9 in x11EventSourceDispatch (s=0x82a7e28, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#45 0xb71077ca in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#46 0xb710aee8 in ?? () from /usr/lib/libglib-2.0.so.0
#47 0xb710b0a8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#48 0xb627ae2a in QEventDispatcherGlib::processEvents (this=0x82a2370, flags={i = -1081948104}) at kernel/qeventdispatcher_glib.cpp:319
#49 0xb5aabbe4 in QGuiEventDispatcherGlib::processEvents (this=0x82a2370, flags={i = -1081948056}) at kernel/qguieventdispatcher_glib.cpp:198
#50 0xb624a198 in QEventLoop::processEvents (this=0xbf82c8e0, flags={i = -1081947996}) at kernel/qeventloop.cpp:143
#51 0xb624a3d5 in QEventLoop::exec (this=0xbf82c8e0, flags={i = -1081947928}) at kernel/qeventloop.cpp:190
#52 0xb624d973 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#53 0xb5a06d1a in QApplication::exec () at kernel/qapplication.cpp:3331
#54 0x08102837 in main (argc=5, argv=0xbf82cac4) at /usr/local/trunk-src/kdeedu/step/step/main.cc:59

Comment 2 Madhusudan.C.S 2009-02-07 12:16:04 UTC
Created attachment 31076 [details]
Fixes the bug
Comment 3 Vladimir Kuznetsov 2009-02-07 12:31:51 UTC
SVN commit 922602 by ksvladimir:

BUG: 178572 A patch by Madhusudan.C.S <madhusudancs@gmail.com>

 M  +0 -4      worldmodel.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=922602
Comment 4 Soren Harward 2010-04-26 02:14:13 UTC
*** Bug 231955 has been marked as a duplicate of this bug. ***