Version: (using Devel) OS: Linux Installed from: Compiled sources KDevelop quits with assert: ASSERT: "uint(m_dynamicData->m_rangesForUses.count()) == d->m_usesSize()" in file /home/kde-devel/src/trunk/KDE/kdevplatform/language/duchain/ducontext.cpp, line 198 Steps to reproduce: - Open up KDevelop - Create a new Qt4/cmake application project - Open the src/CMakeLists.txt file - Save it (w/o editing) - Select some content of the file content - Replace selection by anything (i.e. hit the del key, type something, ...)
(gdb) bt #0 0xb7ef9424 in __kernel_vsyscall () #1 0xb6311640 in raise () from /lib/i686/cmov/libc.so.6 #2 0xb6313018 in abort () from /lib/i686/cmov/libc.so.6 #3 0xb65ca6cd in qt_message_output (msgType=QtFatalMsg, buf=0xbfd100f0 "ASSERT: \"uint(m_dynamicData->m_rangesForUses.count()) == d->m_usesSize()\" in file /home/kde-devel/src/trunk/KDE/kdevplatform/language/duchain/ducontext.cpp, line 198") at global/qglobal.cpp:2102 #4 0xb65ca796 in qFatal (msg=0xb6712438 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2303 #5 0xb65ca825 in qt_assert (assertion=0xb616a368 "uint(m_dynamicData->m_rangesForUses.count()) == d->m_usesSize()", file=0xb6169d30 "/home/kde-devel/src/trunk/KDE/kdevplatform/language/duchain/ducontext.cpp", line=198) at global/qglobal.cpp:1872 #6 0xb60881d8 in KDevelop::DUContext::synchronizeUsesFromSmart (this=0x8b2ba08) at /home/kde-devel/src/trunk/KDE/kdevplatform/language/duchain/ducontext.cpp:198 #7 0xb6088464 in KDevelop::DUContext::uses (this=0x8b2ba08) at /home/kde-devel/src/trunk/KDE/kdevplatform/language/duchain/ducontext.cpp:1433 #8 0xb60e46e6 in KDevelop::DUChainUtils::itemUnderCursor (url=@0xbfd121e0, c=@0xbfd12244) at /home/kde-devel/src/trunk/KDE/kdevplatform/language/duchain/duchainutils.cpp:282 #9 0xb3695b33 in ContextBrowserPlugin::findDeclaration (this=0x8666030, view=0x8dbfb10, position=@0xbfd12244, mouseHighlight=false) at /home/kde-devel/src/trunk/KDE/kdevplatform/plugins/contextbrowser/contextbrowser.cpp:412 #10 0xb3695ecf in ContextBrowserPlugin::updateBrowserWidgetFor (this=0x8666030, view=0x8dbfb10) at /home/kde-devel/src/trunk/KDE/kdevplatform/plugins/contextbrowser/contextbrowser.cpp:508 #11 0xb369607c in ContextBrowserPlugin::updateViews (this=0x8666030) at /home/kde-devel/src/trunk/KDE/kdevplatform/plugins/contextbrowser/contextbrowser.cpp:531 #12 0xb369632d in ContextBrowserPlugin::qt_metacall (this=0x8666030, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0xbfd12388) at /home/kde-devel/build/KDE/kdevplatform/plugins/contextbrowser/contextbrowser.moc:114 #13 0xb66d6bd0 in QMetaObject::activate (sender=0x86a80e0, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3031 #14 0xb66d7952 in QMetaObject::activate (sender=0x86a80e0, m=0xb67a50a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101 #15 0xb6711857 in QTimer::timeout (this=0x86a80e0) at .moc/release-shared/moc_qtimer.cpp:126 #16 0xb66dd57e in QTimer::timerEvent (this=0x86a80e0, e=0xbfd1282c) at kernel/qtimer.cpp:257 #17 0xb66d16af in QObject::event (this=0x86a80e0, e=0xbfd1282c) at kernel/qobject.cpp:1120 #18 0xb68e279c in QApplicationPrivate::notify_helper (this=0x84ee6e8, receiver=0x86a80e0, e=0xbfd1282c) at kernel/qapplication.cpp:3803 ---Type <return> to continue, or q <return> to quit--- #19 0xb68ea61e in QApplication::notify (this=0xbfd12b00, receiver=0x86a80e0, e=0xbfd1282c) at kernel/qapplication.cpp:3393 #20 0xb7326d87 in KApplication::notify (this=0xbfd12b00, receiver=0x86a80e0, event=0xbfd1282c) at /home/kde-devel/src/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307 #21 0xb66c20d1 in QCoreApplication::notifyInternal (this=0xbfd12b00, receiver=0x86a80e0, event=0xbfd1282c) at kernel/qcoreapplication.cpp:587 #22 0xb66f0031 in QTimerInfoList::activateTimers (this=0x84f0b24) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209 #23 0xb66ec680 in timerSourceDispatch (source=0x84f0af0) at kernel/qeventdispatcher_glib.cpp:160 #24 0xb5b621b8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #25 0xb5b65853 in ?? () from /usr/lib/libglib-2.0.so.0 #26 0x084f0a20 in ?? () #27 0x00000000 in ?? ()
Should be fixed now.
*** This bug has been marked as a duplicate of bug 226600 ***