What is this warning about: KDevelop::TopDUContextDynamicData::load: Cannot open top-context for reading: , , ,

Milian Wolff mail at milianw.de
Tue Jan 18 18:35:16 UTC 2011


Hey David, yet another mail :)

Whenever I shutdown KDevelop, or run a unit test, I see warnings like this:

kdevelop(18668)/kdevplatform (language) 
KDevelop::TopDUContextDynamicData::load: Cannot open top-context for reading: 
"/home/milian/.kdevduchain/{dda39186-350d-4789-bf7d-
f4888ed9adf1}/0/topcontexts/4095"

What is it about? I've placed a break point and it was in the duchain cleanup. 
And yes, the warning is "correct", that path does *not* exist. Can we somehow 
prevent this warning, or is it valid and there is something odd going on?

Bye

(gdb) run
Starting program: 
/home/milian/projects/.build/kde4/kdevelop/languages/cpp/cppduchain/tests/duchaintest 
testEnum
[Thread debugging using libthread_db enabled]

Breakpoint 1, main (argc=2, argv=0x7fffffffd878) at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp:84
84      QTEST_MAIN(TestDUChain)
(gdb) break topducontextdynamicdata.cpp:356
Breakpoint 3 at 0x7ffff68d85fb: file 
/home/milian/projects/kde4/kdevplatform/language/duchain/topducontextdynamicdata.cpp, 
line 356.
(gdb) cont
Continuing.
********* Start testing of TestDUChain *********
Config: Using QTest library 4.7.0, Qt 4.7.0
QWARN  : TestDUChain::initTestCase() WARNING: deleting stale lockfile 
/home/milian/.kde/share/apps/kdevplatform/sessions//{7789350d-7d3f-48f4-8ed9-
adf1790aa4bd}/lock
QWARN  : TestDUChain::initTestCase() WARNING: deleting stale lockfile 
/home/milian/.kdevduchain/{7789350d-7d3f-48f4-8ed9-adf1790aa4bd}/0/lock
QDEBUG : TestDUChain::initTestCase() kdevplatform(19897)/kdevplatform 
(language)?[0;31m KDevelop::ItemRepositoryRegistry::open?[0m: version-hint not 
found, seems to be an old version 
QDEBUG : TestDUChain::initTestCase() kdevplatform(19897)/kdevplatform 
(language)?[0;31m KDevelop::ItemRepositoryRegistry::open?[0m: "The data-
repository at /home/milian/.kdevduchain/{7789350d-7d3f-48f4-8ed9-
adf1790aa4bd}/0 has to be cleared." 
[New Thread 0x7fffe6994700 (LWP 19928)]
PASS   : TestDUChain::initTestCase()

Breakpoint 2, KDevelop::TopDUContextDynamicData::load (topContextIndex=2) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/topducontextdynamicdata.cpp:310
310       QString baseDir = globalItemRepositoryRegistry().path() + 
"/topcontexts";
(gdb) bt
#0  KDevelop::TopDUContextDynamicData::load (topContextIndex=2) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/topducontextdynamicdata.cpp:310
#1  0x00007ffff6889bfb in KDevelop::DUChainPrivate::loadChain (this=0x7d60b0, 
index=2, loaded=QSet = {...})
    at 
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.cpp:580
#2  0x00007ffff6882d87 in KDevelop::DUChain::loadChain (this=0x7bb960, 
index=2) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.cpp:1296
#3  0x00007ffff6887154 in KDevelop::DUChain::chainForIndex (this=0x7bb960, 
index=2) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.h:187
#4  0x00007ffff68c7015 in KDevelop::IndexedTopDUContext::data 
(this=0x7fffffffc160) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/topducontext.cpp:119
#5  0x00007ffff688263b in KDevelop::DUChain::removeDocumentChain 
(this=0x7bb960, context=0x1e8db30) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.cpp:1197
#6  0x000000000048ccb7 in Cpp::release (top=0x1e8db30) at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/testhelper.cpp:44
#7  0x000000000048ce23 in Cpp::LockedTopDUContext::~LockedTopDUContext 
(this=0x7fffffffc450, __in_chrg=<value optimized out>)
    at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/testhelper.cpp:74
#8  0x000000000041c48e in TestDUChain::testEnum (this=0x7fffffffd700) at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp:907
#9  0x000000000047bb49 in TestDUChain::qt_metacall (this=0x7fffffffd700, 
_c=QMetaObject::InvokeMetaMethod, _id=88, _a=0x7fffffffc8d0)
    at 
/home/milian/projects/.build/kde4/kdevelop/languages/cpp/cppduchain/tests/test_duchain.moc:372
#10 0x00007ffff3935bf9 in QMetaMethod::invoke (this=0x7fffffffcb80, 
object=0x7fffffffd700, connectionType=<value optimized out>, returnValue=..., 
val0=..., val1=..., val2=..., 
    val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at 
kernel/qmetaobject.cpp:1575
#11 0x00007ffff3937306 in QMetaObject::invokeMethod (obj=0x7fffffffd700, 
member=<value optimized out>, type=<value optimized out>, ret=..., val0=..., 
val1=..., val2=..., val3=..., 
    val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at 
kernel/qmetaobject.cpp:1148
#12 0x00007ffff74a5386 in invokeMethod (slotName=<value optimized out>, 
data=<value optimized out>) at 
../../include/QtCore/../../src/corelib/kernel/qobjectdefs.h:408
#13 qInvokeTestMethodDataEntry (slotName=<value optimized out>, data=<value 
optimized out>) at qtestcase.cpp:1236
#14 QTest::qInvokeTestMethod (slotName=<value optimized out>, data=<value 
optimized out>) at qtestcase.cpp:1344
#15 0x00007ffff74a6322 in qInvokeTestMethods (testObject=<value optimized 
out>, argc=<value optimized out>, argv=<value optimized out>) at 
qtestcase.cpp:1489
#16 QTest::qExec (testObject=<value optimized out>, argc=<value optimized 
out>, argv=<value optimized out>) at qtestcase.cpp:1708
#17 0x000000000040df27 in main (argc=2, argv=0x7fffffffd878) at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp:84
(gdb) 

(gdb) bt
#0  KDevelop::TopDUContextDynamicData::load (topContextIndex=2) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/topducontextdynamicdata.cpp:310
#1  0x00007ffff6889bfb in KDevelop::DUChainPrivate::loadChain (this=0x7d60b0, 
index=2, loaded=QSet = {...})
    at 
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.cpp:580
#2  0x00007ffff6882d87 in KDevelop::DUChain::loadChain (this=0x7bb960, 
index=2) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.cpp:1296
#3  0x00007ffff6887154 in KDevelop::DUChain::chainForIndex (this=0x7bb960, 
index=2) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.h:187
#4  0x00007ffff68c7015 in KDevelop::IndexedTopDUContext::data 
(this=0x7fffffffc160) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/topducontext.cpp:119
#5  0x00007ffff688263b in KDevelop::DUChain::removeDocumentChain 
(this=0x7bb960, context=0x1e8db30) at 
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.cpp:1197
#6  0x000000000048ccb7 in Cpp::release (top=0x1e8db30) at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/testhelper.cpp:44
#7  0x000000000048ce23 in Cpp::LockedTopDUContext::~LockedTopDUContext 
(this=0x7fffffffc450, __in_chrg=<value optimized out>)
    at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/testhelper.cpp:74
#8  0x000000000041c48e in TestDUChain::testEnum (this=0x7fffffffd700) at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp:907
#9  0x000000000047bb49 in TestDUChain::qt_metacall (this=0x7fffffffd700, 
_c=QMetaObject::InvokeMetaMethod, _id=88, _a=0x7fffffffc8d0)
    at 
/home/milian/projects/.build/kde4/kdevelop/languages/cpp/cppduchain/tests/test_duchain.moc:372
#10 0x00007ffff3935bf9 in QMetaMethod::invoke (this=0x7fffffffcb80, 
object=0x7fffffffd700, connectionType=<value optimized out>, returnValue=..., 
val0=..., val1=..., val2=..., 
    val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at 
kernel/qmetaobject.cpp:1575
#11 0x00007ffff3937306 in QMetaObject::invokeMethod (obj=0x7fffffffd700, 
member=<value optimized out>, type=<value optimized out>, ret=..., val0=..., 
val1=..., val2=..., val3=..., 
    val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at 
kernel/qmetaobject.cpp:1148
#12 0x00007ffff74a5386 in invokeMethod (slotName=<value optimized out>, 
data=<value optimized out>) at 
../../include/QtCore/../../src/corelib/kernel/qobjectdefs.h:408
#13 qInvokeTestMethodDataEntry (slotName=<value optimized out>, data=<value 
optimized out>) at qtestcase.cpp:1236
#14 QTest::qInvokeTestMethod (slotName=<value optimized out>, data=<value 
optimized out>) at qtestcase.cpp:1344
#15 0x00007ffff74a6322 in qInvokeTestMethods (testObject=<value optimized 
out>, argc=<value optimized out>, argv=<value optimized out>) at 
qtestcase.cpp:1489
#16 QTest::qExec (testObject=<value optimized out>, argc=<value optimized 
out>, argv=<value optimized out>) at qtestcase.cpp:1708
#17 0x000000000040df27 in main (argc=2, argv=0x7fffffffd878) at 
/home/milian/projects/kde4/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp:84
(gdb) 

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110118/555ccd8f/attachment.sig>


More information about the KDevelop-devel mailing list