Skip to content

CQtDeployer: 1.6.2320.097d82b Segmentation Fault due to "import" keyword in QML Object ids #842

@Yolteotl

Description

@Yolteotl

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

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingLinuxLinux version

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions