Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28862

Creator crashes from autocomplete + property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • Qt Creator 9.0.1, Qt Creator 9.0.2, Qt Creator 10.0.0
    • Quick / QML Support
    • 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
    • macOS, Windows

    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

        1. crashedHere.png
          crashedHere.png
          15 kB
        2. CrashState.png
          CrashState.png
          483 kB
        3. CreatorCrashLive.mp4
          6.69 MB
        4. gdb.txt
          88 kB
        5. MacAtTimeOfBreak.png
          MacAtTimeOfBreak.png
          180 kB
        6. MacDebugState.png
          MacDebugState.png
          2.15 MB

        Activity

          People

            qtqmlteam Qt Qml Team User
            tec Terence Conklin
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: