Bug 185936

Summary: Crash on assert in ducontext.cpp while editing CMakeLists.txt file
Product: [Applications] kdevelop Reporter: Thorben Kröger <thorbenk>
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: aleixpol
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: It crashed in here while editing the

Description Thorben Kröger 2009-03-02 10:42:54 UTC
Created attachment 31731 [details]
It crashed in here while editing the 

I edited a CMakeLists.txt file and got this assert:

kdevelop(7237)/kdevplatform (usehighlight) ContextController::documentJumpPerformed: jump from "file:///home/thorben/ms/src/examples/demos/lib/NitpickOptions.h" to "file:///home/thorben/ms/src/examples/demos/lib/CMakeLists.txt"                                                                                 
kdevelop(7237)/kdevelop (cpp support) UIBlockTester::lockup: ui is blocking                                                                               
kdevelop(7237)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  10  LINEEND:  13                                         
kdevelop(7237)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  35  MAX:  35                                                                      
kdevelop(7237)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                                                       
kdevelop(7237)/kparts KParts::ReadWritePart::setModified: ReadWritePart::setModified(  true )                                                             
ASSERT: "uint(m_dynamicData->m_rangesForUses.count()) == d->m_usesSize()" in file /home/thorben/devel/src/kdevplatform/language/duchain/ducontext.cpp, line 221                                                                                                                                                     

Program received signal SIGABRT, Aborted.
0xffffe430 in __kernel_vsyscall ()       
(gdb) bt                                 
#0  0xffffe430 in __kernel_vsyscall ()   
#1  0xb62f1990 in raise () from /lib/libc.so.6
#2  0xb62f32c8 in abort () from /lib/libc.so.6
#3  0xb6f7a5bf in qt_message_output (msgType=QtFatalMsg, 
    buf=0x8835c08 "ASSERT: \"uint(m_dynamicData->m_rangesForUses.count()) == d->m_usesSize()\" in file /home/thorben/devel/src/kdevplatform/language/duchain/ducontext.cpp, line 221") at global/qglobal.cpp:2001                                                                                                   
#4  0xb6f7a636 in qFatal (msg=0xb70ce5f8 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2196                                                 
#5  0xb6f7aa75 in qt_assert (assertion=0xb60ced80 "uint(m_dynamicData->m_rangesForUses.count()) == d->m_usesSize()",                                      
    file=0xb60ce638 "/home/thorben/devel/src/kdevplatform/language/duchain/ducontext.cpp", line=221) at global/qglobal.cpp:1772                           
#6  0xb5fc9558 in KDevelop::DUContext::synchronizeUsesFromSmart (this=0x8d94270)                                                                          
    at /home/thorben/devel/src/kdevplatform/language/duchain/ducontext.cpp:221                                                                            
#7  0xb5fc97e4 in KDevelop::DUContext::uses (this=0x8d94270) at /home/thorben/devel/src/kdevplatform/language/duchain/ducontext.cpp:1469                  
#8  0xb6027b03 in KDevelop::DUChainUtils::itemUnderCursor (url=@0xbfffde10, c=@0xbfffde74)                                                                
    at /home/thorben/devel/src/kdevplatform/language/duchain/duchainutils.cpp:283                                                                         
#9  0xb08ab461 in ContextBrowserPlugin::findDeclaration (this=0x85198f8, view=0xdbf8800, position=@0xbfffde74, mouseHighlight=false)                      
    at /home/thorben/devel/src/kdevplatform/plugins/contextbrowser/contextbrowser.cpp:433                                                                 
#10 0xb08ab7fd in ContextBrowserPlugin::updateBrowserWidgetFor (this=0x85198f8, view=0xdbf8800)                                                           
    at /home/thorben/devel/src/kdevplatform/plugins/contextbrowser/contextbrowser.cpp:529                                                                 
#11 0xb08ab9aa in ContextBrowserPlugin::updateViews (this=0x85198f8)                                                                                      
    at /home/thorben/devel/src/kdevplatform/plugins/contextbrowser/contextbrowser.cpp:551                                                                 
#12 0xb08abc5b in ContextBrowserPlugin::qt_metacall (this=0x85198f8, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0xbfffdfa8)                             
    at /home/thorben/devel/build/kdevplatform/plugins/contextbrowser/contextbrowser.moc:117                                                               
#13 0xb708f62b in QMetaObject::activate (sender=0x8252f68, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3061
#14 0xb70909fb in QMetaObject::activate (sender=0x8252f68, m=0xb7134904, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3136
#15 0xb70cd5e5 in QTimer::timeout (this=0x8252f68) at .moc/debug-shared/moc_qtimer.cpp:128
---Type <return> to continue, or q <return> to quit---
#16 0xb709816e in QTimer::timerEvent (this=0x8252f68, e=0xbfffe574) at kernel/qtimer.cpp:256
#17 0xb708d426 in QObject::event (this=0x8252f68, e=0xbfffe574) at kernel/qobject.cpp:1077
#18 0xb66b7f1d in QApplicationPrivate::notify_helper (this=0x80fa6b0, receiver=0x8252f68, e=0xbfffe574) at kernel/qapplication.cpp:4051
#19 0xb66b8272 in QApplication::notify (this=0xbfffe858, receiver=0x8252f68, e=0xbfffe574) at kernel/qapplication.cpp:3598
#20 0xb735b79d in KApplication::notify (this=0xbfffe858, receiver=0x8252f68, event=0xbfffe574)
    at /home/thorben/devel/src/kdelibs/kdeui/kernel/kapplication.cpp:307
#21 0xb70791f7 in QCoreApplication::notifyInternal (this=0xbfffe858, receiver=0x8252f68, event=0xbfffe574) at kernel/qcoreapplication.cpp:593
#22 0xb77fa1f3 in QCoreApplication::sendEvent (receiver=0x8252f68, event=0xbfffe574)
    at ../../../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:208
#23 0xb70ab28d in QTimerInfoList::activateTimers (this=0x80fd5bc) at kernel/qeventdispatcher_unix.cpp:567
#24 0xb70a8bd8 in timerSourceDispatch (source=0x80fd588) at kernel/qeventdispatcher_glib.cpp:159
#25 0xb59de9a8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0xb59e2063 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0xb59e2221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0xb70a7f0a in QEventDispatcherGlib::processEvents (this=0x80fa670, flags={i = -1073748232}) at kernel/qeventdispatcher_glib.cpp:318
#29 0xb6765110 in QGuiEventDispatcherGlib::processEvents (this=0x80fa670, flags={i = -1073748184}) at kernel/qguieventdispatcher_glib.cpp:197
#30 0xb70761dc in QEventLoop::processEvents (this=0xbfffe7b0, flags={i = -1073748112}) at kernel/qeventloop.cpp:144
#31 0xb7076436 in QEventLoop::exec (this=0xbfffe7b0, flags={i = -1073748040}) at kernel/qeventloop.cpp:191
#32 0xb70799cf in QCoreApplication::exec () at kernel/qcoreapplication.cpp:875
#33 0xb66b7c36 in QApplication::exec () at kernel/qapplication.cpp:3526
#34 0x0804f2a6 in main (argc=-1208127248, argv=0x817f4e8) at /home/thorben/devel/src/kdevelop/app/main.cpp:203
(gdb)

The CMakeLists.txt file is attached, I tried to add another file to NITPICKPLOT_UIS when it crashed.
Comment 1 Aleix Pol 2009-03-16 16:40:14 UTC
I'm not getting these crashes anymore, can you confirm it is still valid?

There has been some fixes about it by David and me lately.
Comment 2 Milian Wolff 2009-07-20 15:55:47 UTC
Quite some time without feedback, marking as fixed.
Comment 3 Milian Wolff 2010-11-30 18:13:37 UTC

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