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

Crash on quit when a chart appears in a ToolTip or Popup

    XMLWordPrintable

Details

    Description

      Qt will crash with an error in a destructor when an application has a QtChart in a ToolTip or PopUp. Details can be found in a Qt Forum discussion at

      https://forum.qt.io/topic/90858/crash-when-using-a-valueaxis-in-a-chartview-why/7

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   org.qt-project.QtQml          	0x0000000104be9ccb QQmlContextData::ContextGuard::objectDestroyed(QObject*) + 43
      1   org.qt-project.QtQml          	0x0000000104bcc1c9 QQmlData::destroyed(QObject*) + 489
      2   org.qt-project.QtCore         	0x000000010512324f QObject::~QObject() + 319
      3   libqtchartsqml2.dylib         	0x000000010bae06f0 QQmlPrivate::QQmlElement<QtCharts::QValueAxis>::~QQmlElement() + 32
      4   org.qt-project.QtQml          	0x0000000104a5ebf8 QV4::MemoryManager::sweep(bool, void (*)(char const*)) + 296
      5   org.qt-project.QtQml          	0x0000000104a5fb62 QV4::MemoryManager::~MemoryManager() + 66
      6   org.qt-project.QtQml          	0x0000000104ae4b57 QV4::ExecutionEngine::~ExecutionEngine() + 87
      7   org.qt-project.QtQml          	0x0000000104adb057 QJSEngine::~QJSEngine() + 103
      8   org.qt-project.QtQml          	0x0000000104bcd572 QQmlEngine::~QQmlEngine() + 370
      9   com.onsemi.ToolTipCrashTest   	0x000000010466aca3 main + 339 (main.cpp:17)
      10  libdyld.dylib                 	0x00007fff6383b015 start + 1
      

       

      A sample project is attached which demonstrates both bugs (although you'll need to comment out the code showing the tool tip or the popup).

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            igor1882 david ralley
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes