Summary: | k3b-18.08.2 assertion on startup: "first <= rowCount(parent)" in file itemmodels/qabstractitemmodel.cpp, line 2712 | ||
---|---|---|---|
Product: | [Applications] k3b | Reporter: | Jaak Ristioja <jaak> |
Component: | GUI/Usability | Assignee: | k3b developers <k3b> |
Status: | RESOLVED FIXED | ||
Severity: | grave | CC: | aacid, michalm, trueg |
Priority: | NOR | ||
Version: | 18.08.1 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/k3b/8709a3dcaef941db7467a94cfc77ca68542e2c45 | Version Fixed In: | |
Sentry Crash Report: |
Description
Jaak Ristioja
2018-10-13 11:47:07 UTC
The following Qt commit apparently added this assertion to QAbstractItemModel::beginInsertRows: https://code.qt.io/cgit/qt/qtbase.git/commit/src/corelib/itemmodels/qabstractitemmodel.cpp?id=00c09e752ff7e482e1308e0e34721dc979204595 As a side note, unless you're a developer, it's a bad idea to run Qt in debug mode (like you are) since it means things are going to be slower for no "real good reason". But yes that code looks indeed fishy. Git commit 8709a3dcaef941db7467a94cfc77ca68542e2c45 by Albert Astals Cid. Committed on 14/10/2018 at 22:37. Pushed by aacid into branch 'Applications/18.08'. MetaItemModel: Fix Qt assertion in adding rows Summary: We need the row count to be correct, and since flat models sometimes have no rows, places.count is not a valid row Differential Revision: https://phabricator.kde.org/D16213 M +2 -5 src/k3bmetaitemmodel.cpp https://commits.kde.org/k3b/8709a3dcaef941db7467a94cfc77ca68542e2c45 |