-
-
Notifications
You must be signed in to change notification settings - Fork 93
Labels
Description
Describe the bug
CQtDeployer throws a "Segmentation fault (core dumped)" when processing a QML file containing binding with an object which has an id starting by "import",
Verbose log: extractQmlFromSource /home/******/
Segmentation fault (core dumped)
To Reproduce
The command we are using looks like :
cqtdeployer -bin our-software -qmlDir /path/to/qml_dir -qmake $QTDIR/gcc_64/bin/qmake -targetDir $PKG_DIR.folder/data -verbose 3
I tested it with a simple QML file:
import QtQuick
import QtQuick.Controls
Window {
Button {
id: importBtn
}
Button {
id: tryImportBtn
}
onVisibleChanged: importBtn.text <= No Crash
onVisibleChanged: {
importBtn.text <= Crash
importBtn.text = "A" <= No Crash
tryImportBtn.text <= No Crash
}
}
I would guess that the import keyword inside "importBtn" is parsed as an actual import and mess with some of the CQtDeployer parsing.
Expected behavior
CQtDeployer should process any valid id name of QML components
Desktop (please complete the following information):
- OS: Ubuntu
- Version 22.04
EndrII
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress