Summary: | The qmljs parser crashes in QmlJS::getDeclaration | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Jonathan Verner <jonathan.verner> |
Component: | Language Support: QML/JavaScript | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED WAITINGFORINFO | ||
Severity: | crash | CC: | steckdenis |
Priority: | NOR | ||
Version: | 4.7.3 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
first 100 and last 100 frames from backtrace
File which crashes kdevelop The full node module showing the problem |
Description
Jonathan Verner
2016-05-17 13:07:29 UTC
Created attachment 99032 [details]
first 100 and last 100 frames from backtrace
Created attachment 99033 [details]
File which crashes kdevelop
Note, I am using kdev-qmls compiled from source from the following commit: 3f9a3d8453ae29cf7fa8a753010806398f08fa0c (should be one bugfix ahead of the v1.2.0/v1.7.0 tags). P.S. As a shortterm workaround Is it possible to tell kdevelop to skip parsing a given file? See here: http://comments.gmane.org/gmane.comp.kde.users.kdevelop/7102 -- HTH @Kevin Funk: Thanks very much! I should have googled for this, sorry for wasting your time. Could you attach the contents of "./root" as a ZIP? If I open your file, it parses properly but most of its types are unknown because "require('./root')" does not find anything to import. If ./root is large and/or contains files that you don't want to disclose, you may want to try to build a simplified project with your file and an empty ./root directory, to which you progressively add files until the crash occurs. This takes more time, though. Created attachment 99227 [details]
The full node module showing the problem
Note that the problematic file assign.js is in the rxjs/util/ directory. I cannot reproduce the crash on KDevelop 5.0 (git version), that contains a KDevelop5-ready version of QML/JS. Your bug seems to have been fixed in the meantime. KDevelop 4 being still maintained (I think), I'll try to reproduce the bug on that version with kdev-qmljs 1.7.0. It may take a couple days, though, as I'm currently trying to fix bugs in the 5.0 version. If your KDevelop is older than 4.7.3 (released this January, along with kdevplatform 1.7.3), you may try to update it and see if the bug is still present. The crash happens in KDevelop::IndexedQualifiedIdentifier::IndexedQualifiedIdentifier(), quite deep into KDevPlatform code. It may be caused by an improper use of the library by kdev-qmljs, or by a bug that is now fixed. @Denis: No problem, the workaround suggested by Kevin works o.k. for me. Great to hear the bug is fixed in Kdevelop 5. I guess I will eventually be upgrading to KDE 5 anyway. Btw, kdevelop is the *BEST* IDE I ever used! Thanks for your hard and amazing work. @Jonathan: Could you please check whether this is still a problem in newer KDevelop? I can comment that the crash does not appear anymore. "comment"=>"confirm"; its too late for me to be replying :-) Plus I forgot to mention that my version is 5.1.2 With 5.2 (nightly AppImage) it doesn't crash either. |