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

Unplugging monitor may crash application

    XMLWordPrintable

Details

    • 0920e00932b2686b59247633ea01669fcc398f9c

    Description

      Animation example application crashes when unplugging monitor. Stack trace of the crash shows handling of null pointer in setCursor:

      #0  0x00007ffff72466d2 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135
      #1  0x00007ffff729ce9b in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:961
      #2  0x00007ffff729ceee in QScreen::d_func (this=0x0) at kernel/qscreen.h:59
      #3  0x00007ffff729be64 in QScreen::handle (this=0x0) at kernel/qscreen.cpp:84
      #4  0x00007ffff726d107 in QWindowPrivate::setCursor (this=0x6611a0, newCursor=0x0) at kernel/qwindow.cpp:2396
      #5  0x00007ffff726cfa5 in QWindow::unsetCursor (this=0x7fffffffdb70) at kernel/qwindow.cpp:2365
      #6  0x00007ffff7a5a060 in QQuickItemPrivate::derefWindow (this=0x79cdf0) at items/qquickitem.cpp:2829
      #7  0x00007ffff7a5a1c0 in QQuickItemPrivate::derefWindow (this=0x79c110) at items/qquickitem.cpp:2854
      #8  0x00007ffff7a5a1c0 in QQuickItemPrivate::derefWindow (this=0x7963f0) at items/qquickitem.cpp:2854
      #9  0x00007ffff7a5a1c0 in QQuickItemPrivate::derefWindow (this=0x789eb0) at items/qquickitem.cpp:2854
      #10 0x00007ffff7a58e56 in QQuickItem::setParentItem (this=0x789e80, parentItem=0x0) at items/qquickitem.cpp:2539
      #11 0x00007ffff7a579cc in QQuickItem::~QQuickItem (this=0x789e80, __in_chrg=<optimized out>) at items/qquickitem.cpp:2240
      #12 0x00007ffff7ad3935 in QQmlPrivate::QQmlElement<QQuickItem>::~QQmlElement (this=0x789e80, __in_chrg=<optimized out>)
          at ../../../qtdeclarative/src/qml/qml/qqmlprivate.h:98
      #13 0x00007ffff7ad396e in QQmlPrivate::QQmlElement<QQuickItem>::~QQmlElement (this=0x789e80, __in_chrg=<optimized out>)
          at ../../../qtdeclarative/src/qml/qml/qqmlprivate.h:98
      #14 0x00007ffff7b6806c in QQuickView::~QQuickView (this=0x7fffffffdb70, __in_chrg=<optimized out>) at items/qquickview.cpp:225
      #15 0x0000000000401b77 in main (argc=1, argv=0x7fffffffdcb8) at main.cpp:41
      

      Attachments

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

        Activity

          People

            poikelin Joni Poikelin
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes