Summary: | QMLJS crashes when parsing a QML file | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Daniel Vrátil <dvratil> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aleixpol, mail |
Priority: | NOR | Keywords: | drkonqi |
Version: | 4.5.60 | ||
Target Milestone: | 4.3.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdev-qmljs/29a72f5c1234f1a47404e02d763da923be97fb58 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | File that causes the crash |
Description
Daniel Vrátil
2013-09-09 10:13:41 UTC
I'll need the QML file for that. Please enable the language debug area (9505) in kdebugdialog and then start kdevelop from the CLI and note the debug output. The last lines of the format "creating parse-job KUrl("file:///home/m...") new count of active parse-jobs: 2" are interesting. Take as many lines of that as you like, though up to what ever you configured as max num of parse jobs should suffice. Then open them in a standalone kdevelop session to figure out which file it is. Created attachment 82563 [details]
File that causes the crash
Attached is the file that causes KDevelop to crash.
Output from KDevelop:
kdevelop(5493)/kdevplatform (language) KDevelop::BackgroundParserPrivate::parseDocumentsInternal: creating parse-job KUrl("file:///home/progdan/projects/telepathy/ktp-desktop-applets/contactlist/org.kde.ktp-contactlist/contents/ui/ExternalLabel.qml") new count of active parse-jobs: 1
ASSERT: "currentDeclaration<ClassDeclaration>()" in file /home/data/clones/kdev-qmljs/duchain/declarationbuilder.cpp, line 189
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
KCrash: Application 'kdevelop' crashing...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
QSocketNotifier: Invalid socket 26 and type 'Read', disabling...
QSocketNotifier: Invalid socket 41 and type 'Read', disabling...
QSocketNotifier: Invalid socket 52 and type 'Read', disabling...
KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit
kdevelop: Fatal IO error: client killed
sock_file=/home/progdan/.kde/socket-Odin/kdeinit4__0
FunctionDeclarationData::m_defaultParameters There were items left on destruction: 10713
SpecialTemplateDeclarationData::m_specializations There were items left on destruction: 8148
ClassFunctionDeclarationData::m_defaultParameters There were items left on destruction: 21042
ClassDeclarationData::baseClasses There were items left on destruction: 2933
Unable to start Dr. Konqi
Jup, can reproduce. This line confuses the plugin: property QtObject theme: PlasmaCore.Theme {} I'll try to fix it once I have some more time. Lets see :) Git commit 29a72f5c1234f1a47404e02d763da923be97fb58 by Milian Wolff. Committed on 30/09/2013 at 22:08. Pushed by mwolff into branch 'master'. Support UiObjectInitializer without ClassDeclarations. This is valid QML and thus must be supported. In the future we might want to create ClassDeclarations for UiObjectBinding as well though. M +4 -3 duchain/declarationbuilder.cpp http://commits.kde.org/kdev-qmljs/29a72f5c1234f1a47404e02d763da923be97fb58 You are awesome! Thanks! |