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

QAbstractListModel crashes on endMoveRows() (ASSERT: "!this->isEmpty()")

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.0
    • Core: Object Model
    • None
    • Windows 7 64bit, Qt4.8, QtCreator, MSVC

    Description

      Hey,

      when using beginMoveRows() and endMoveRows() of QAbstractListModel, endMoveRows() causes the program to crash in debug mode.
      The attached code should demonstrate the crash (only debug mode of course).

      Following error is thrown:
      Debug Error!
      Program: ...for_Desktop-MSVC2010Qt_SDK_Debug\debug\ItemMoveTest.exe
      Module: 4.8.0
      File: global\qglobal.cpp
      Line: 2232
      ASSERT: "!this->isEmpty()" in file c:\iwmake\build_vs2010_opensource________________padding________________\include\qtcore\../../src/corelib/tools/qstack.h, line 68

      This happened to me in some different situations.

      Attachments

        1. main.cpp
          2 kB
          Fabian Beutel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            earthdomain Earth Domain (Inactive)
            marsupial Fabian Beutel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes