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

crash when deleting a repeater

    XMLWordPrintable

Details

    • 2fb17f3feefcca8862f6f908fe81957f34096c00

    Description

      This example crashes, when closing the window and application type is: "Qt Quick 2 Application (Built-in Types)".
      No crash when using application type: "Qt Quick 2 UI".

      Crash happens in: qquickrepeater.cpp:353 d->model->release(item);
      whereas item is 0x0

      main.qml
      import QtQuick 2.0
      
      Rectangle {
      	width: 360
      	height: 360
      
      	VisualItemModel {
      		id: visItemModel
      		Rectangle {
      			width: 20
      			height: 20
      			color: "red"
      		}
      	}
      
      	ContentList {
      		model: visItemModel
      	}
      }
      
      ContentList.qml
      import QtQuick 2.0
      
      Column
      {
      	property alias model : contentList.model
      	anchors.fill: parent
      	Repeater {
      		id: contentList
      	}
      }
      

      Attachments

        Activity

          People

            frederik Frederik Gladhorn
            michaeladam Michael Adam
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: