Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63919

[REG 5.9.1 -> 5.9.2] application crashes when using QML-Debugger

    XMLWordPrintable

Details

    • unknown

    Description

      Our application crashes when debugging it from inside QtCreator with QMLDebugger enabled.
      There are multiple warnings "<Unknown File>: QML Rectangle: Cannot anchor to an item that isn't a parent or sibling." prior to the crash.

      Debugging it with only the C++ debugger enabled works fine.

      This crash and the warnings don't occur on Qt5.9.1.

      Sorry, but I couldn't create a simple demo project that reproduces the behaviour.

      Here is the stacktrace:

      1   QObjectPrivate::addConnection                                                                                     qobject.cpp                388  0x7ffff6bce444 
      2   QObjectPrivate::connectImpl                                                                                       qobject.cpp                4841 0x7ffff6bceb0a 
      3   QObject::connectImpl                                                                                              qobject.cpp                4784 0x7ffff6bcef12 
      4   QObject::connect<void (QObject:: *)(QObject *), void ((anonymous namespace)::ObjectReferenceHash:: *)(QObject *)> qobject.h                  259  0x7ffff72f9a73 
      5   QQmlDebugService::idForObject                                                                                     qqmldebugservice.cpp       165  0x7ffff72f9a73 
      6   QQmlEngineDebugServiceImpl::storeObjectIds                                                                        qqmlenginedebugservice.cpp 330  0x7fffe8395509 
      7   QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 345  0x7fffe83955ee 
      8   QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      9   QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      10  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      11  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      12  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      13  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      14  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      15  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      16  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      17  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      18  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      19  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      20  QQmlEngineDebugServiceImpl::buildObjectList                                                                       qqmlenginedebugservice.cpp 361  0x7fffe8395649 
      ... <Mehr>                                                                                                                                                           
      

      Attachments

        1. QTBUG-63919.zip
          4 kB
          user-64122
        2. valgrind_and_qml.png
          21 kB
          Ulf Hermann
        3. valgrind_output.txt
          205 kB
          Ludger Krämer
        4. valgrind_output2.txt
          219 kB
          Ludger Krämer
        5. valgrind_output3.txt
          223 kB
          Ludger Krämer

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              lkdem Ludger Krämer
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes