Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt Creator 9.0.1, Qt Creator 9.0.2, Qt Creator 10.0.0, Qt Creator 10.0.1, Qt Creator 10.0.2, Qt Creator 11.0.0-beta2
-
None
-
Win: Creator 9.0.2, qt 6.5.0 b3, cmake, Windows 10
Mac: Creator 9.0.2, Qt 6.2.0, qmake, Ventura
Both systems are using the Clang code model
-
-
1058ece95 (12.0)
Description
Creator reliably crashes hard on both Mac and Windows during what appears to be autocomplete. Take the following minimal example:
import QtQuick Window { id: root visible: true width: 640 height: 480 Rectangle { width: 200 height: 200 Text { text: "Goodbye World" } } }
Then add a property to the Rectangle before the Text element. Try to add:
property int y: parent.height
Creator will reliably crash hard, losing all unsaved work to that point and the session. Most of the time I get to the "he" in height before it crashes, but this varies somewhat, and on MacOS the timing is different; typing slowly makes it crash more reliably.
This appears to be related to property. If you type in the line 'backwards', by first typing y: parent.height, then adding property int in front of that, everything works fine. Autocomplete while typing just y: parent.height seems to work fine.
MacOS reports this as a segfault:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Codes: 0x0000000000000001, 0x0000000000000020
Attachments
For Gerrit Dashboard: QTCREATORBUG-28862 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
516409,3 | QmlJsEditor: Fix crash when updating outline view | 12.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |