Summary: | KDevelop Crash when typing | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Tamás Gere <gt> |
Component: | Language Support: PHP | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED NOT A BUG | ||
Severity: | crash | CC: | david.nolden.kde, niko.sams |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Tamás Gere
2010-03-12 14:44:34 UTC
Does this problem persist after you remove ~/.kdevduchain? This looks rather fishy, esp. considering that it crashes in a dynamic cast. The code is: static DUChainPointer<ClassDeclaration> exceptionDecl; if (!exceptionDecl) { QList<Declaration*> decs = dec->context()->findDeclarations(QualifiedIdentifier("exception")); Q_ASSERT(decs.count() == 1); exceptionDecl = dynamic_cast<ClassDeclaration*>(decs.first()); Q_ASSERT(exceptionDecl); } Anyone else an idea what might be happening? I'll try to reproduce at home, though I'm pretty sure that it once worked fine... Just compiled at work and tried your example: Works fine. Does this also happen in other files? Might happen if you use multithreading and don't lock the duchain before calling findDeclarations, as the declarations may already be deleted when you try to cast them. It's locked, and ENSURE_CAN_READ would abort else. Hi! Tomorrow (2010.03.16) I'll try to reproduce on a code what i can share with you and will attach here. Maybe the error accours on my specific code. Hi! Today morning, i completly removed all installed binary, build directories and my working copy. Checked out source again and re-compiled everything. Now the autocomplete works at that point. Thanks for your time guys, next time i'll start with this. Cheers |