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

Regression: setting cached to true on DropShadow causes random crashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0
    • 5.4.0
    • Quick: SceneGraph
    • None
    • qtdeclarative: 4f98d16c66816e3097cf4b1764e2bf3d0f75ddf3

    Description

      Run the code below several times until it crashes:

      import QtQuick 2.2
      import QtQuick.Controls 1.1
      import QtGraphicalEffects 1.0
      
      ApplicationWindow {
          id: window
          visible: true
          color: "black"
          width: 450
          height: 600
      
          Item {
              id: dummy
              anchors.fill: parent
          }
      
          DropShadow {
              id: shadow
              source: dummy
              color: "red"
              radius: 8
              samples: Math.min(32, radius)
              cached: true
              anchors.fill: dummy
          }
      }
      

      The stack trace:

      0	QSGNode::markDirty	qsgnode.cpp	665	0x7ffff7a12324	
      1	QSGDefaultLayer::markDirtyTexture	qsgdefaultlayer.cpp	280	0x7ffff7a61f75	
      2	QSGLayer::customEvent	qsgadaptationlayer.cpp	357	0x7ffff7a2ac63	
      3	QObject::event	qobject.cpp	1271	0x7ffff605f0c2	
      4	QApplicationPrivate::notify_helper	qapplication.cpp	3720	0x7ffff72068dc	
      5	QApplication::notify	qapplication.cpp	3172	0x7ffff7203eaa	
      6	QCoreApplication::notifyInternal	qcoreapplication.cpp	940	0x7ffff60227f6	
      7	QCoreApplication::sendEvent	qcoreapplication.h	236	0x7ffff6026343	
      8	QCoreApplicationPrivate::sendPostedEvents	qcoreapplication.cpp	1544	0x7ffff6023ac1	
      9	QCoreApplication::sendPostedEvents	qcoreapplication.cpp	1402	0x7ffff6023466	
      10	postEventSourceDispatch	qeventdispatcher_glib.cpp	279	0x7ffff609a14c	
      11	g_main_context_dispatch	/lib/x86_64-linux-gnu/libglib-2.0.so.0		0x7ffff4386e04	
      12	??	/lib/x86_64-linux-gnu/libglib-2.0.so.0		0x7ffff4387048	
      13	g_main_context_iteration	/lib/x86_64-linux-gnu/libglib-2.0.so.0		0x7ffff43870ec	
      14	QEventDispatcherGlib::processEvents	qeventdispatcher_glib.cpp	426	0x7ffff609a8ed	
      15	QPAEventDispatcherGlib::processEvents	qeventdispatcher_glib.cpp	123	0x7ffff150d786	
      16	QEventLoop::processEvents	qeventloop.cpp	136	0x7ffff601f508	
      17	QEventLoop::exec	qeventloop.cpp	212	0x7ffff601f7c9	
      18	QCoreApplication::exec	qcoreapplication.cpp	1193	0x7ffff6022eae	
      19	QGuiApplication::exec	qguiapplication.cpp	1515	0x7ffff6acab24	
      20	QApplication::exec	qapplication.cpp	2964	0x7ffff72036cb	
      ...	<More>				
      

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes