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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 4.8.0
    • Fix Version/s: None
    • Component/s: Core: Object Model
    • Labels:
      None
    • Environment:

      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

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

          Activity

            People

            • Assignee:
              earthdomain Earth Domain (Inactive)
              Reporter:
              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