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

Crash when updating QML file while debugging

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • Qt Creator 2.3.0
    • None
    • Qt 4.7.3 (built from git 1860964), Qt Creator from master (db24a27)
      Symbian build was on N8 PR2, using CODA 4.0.18 (and a not-yet-in-master patch to creator - ask me if you need it)
      Desktop build was same Qt version, Windows 7.

    Description

      Steps to reproduce:

      Unzip attached test app. Build it for desktop (or Symbian if you're feeling brave). Start test app under the QML debugger. Once you see the "Hello world!" window appear, open main.qml in creator and add the following additional clause to the MouseArea after onClicked:

              onDoubleClicked: {
                  thetxt.rotation += 45;
              }
      

      Save the QML file. The automatic updating thingy will kick in and reload the QML - at which point the process being debugged crashes. Debugger log and callstack (from Symbian build) attached. Looks like a null pointer crash.

      Note I couldn't get a proper stack trace from windows because of QTCREATORBUG-4718, so the attached on is an approximate one when running on Symbian, using fshell's fdb command. CODA detected the crash but couldn't decode the callstack, which is why I'm using fdb instead, and also why fdb reports the thread as "still running" (in case you were wondering). But the crash is 100% reproducible in Windows too. Crash occurs whether using just QML debugging or combined QML and C++ debugging.

      Attachments

        1. debuggerlog.txt
          26 kB
          Tom Sutcliffe
        2. fdb-callstack.txt
          7 kB
          Tom Sutcliffe
        3. qmltestapp.zip
          120 kB
          Tom Sutcliffe

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              cjanssen Christiaan Janssen (Inactive)
              tomsci Tom Sutcliffe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes