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

Crash after Warning: QPaintDevice: Cannot destroy paint device that is being painted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.14.1
    • GUI: Painting
    • None
    • msvc 2017 64
    • Windows

    Description

      I do not have reproducible example. My app crashed at user site. I can see warning in logs

      Warning: QPaintDevice: Cannot destroy paint device that is being painted

      and I can give you stack trace

      The access denied exception triggered in qpainter.cpp line 664 and it was triggered in size changed event. I use shaddow efect in my app. Probable it is it. 

      //this is in constructor of the class, I do nothing with it after this

      m_shadow = new QGraphicsDropShadowEffect(this);

      m_shadow->setBlurRadius(5);

      m_shadow->setOffset(1);

      m_ui->widget_titleBar->setGraphicsEffect(m_shadow);

       

       
      Qt5Gui!QPainterPrivate::updateMatrix
      664
      c:\users\qt\work\qt\qtbase\src\gui\painting\qpainter.cpp
       
      Qt5Widgets!QGraphicsDropShadowEffect::draw
      1068
      c:\users\qt\work\qt\qtbase\src\widgets\effects\qgraphicseffect.cpp
       
      Qt5Widgets!QWidgetPrivate::drawWidget(class QPaintDevice * pdev = 0x000001a94e0fcb68
       
      Qt5Widgets!QWidgetPrivate::paintSiblingsRecursive
      5604
      c:\users\qt\work\qt\qtbase\src\widgets\kernel\qwidget.cpp
       
      Qt5Widgets!QWidgetPrivate::drawWidget
      5466
      c:\users\qt\work\qt\qtbase\src\widgets\kernel\qwidget.cpp
       
      Qt5Widgets!QWidgetRepaintManager::paintAndFlush
      1020
      c:\users\qt\work\qt\qtbase\src\widgets\kernel\qwidgetrepaintmanager.cpp
       
      Qt5Widgets!QWidgetWindow::handleResizeEvent
      820
      c:\users\qt\work\qt\qtbase\src\widgets\kernel\qwidgetwindow.cpp
       
      Qt5Widgets!QWidgetWindow::event
      318
      c:\users\qt\work\qt\qtbase\src\widgets\kernel\qwidgetwindow.cpp
       
      Qt5Widgets!QApplicationPrivate::notify_helper
      3686
      c:\users\qt\work\qt\qtbase\src\widgets\kernel\qapplication.cpp
       
      Qt5Widgets!QApplication::notify
      3638
      c:\users\qt\work\qt\qtbase\src\widgets\kernel\qapplication.cpp
       
      Qt5Core!QCoreApplication::notifyInternal2
      1092
      c:\users\qt\work\qt\qtbase\src\corelib\kernel\qcoreapplication.cpp
       
      Qt5Gui!QGuiApplicationPrivate::processGeometryChangeEvent
      2536
      c:\users\qt\work\qt\qtbase\src\gui\kernel\qguiapplication.cpp
       
      Qt5Gui!QWindowSystemInterface::sendWindowSystemEvents
      1169
      c:\users\qt\work\qt\qtbase\src\gui\kernel\qwindowsysteminterface.cpp
       
      Qt5Gui!QWindowSystemInterface::flushWindowSystemEvents
      1129
      c:\users\qt\work\qt\qtbase\src\gui\kernel\qwindowsysteminterface.cpp
       
      qwindows!QWindowsWindow::handleGeometryChange
      1976
      c:\users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowswindow.cpp

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            fogelton fogelton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes