Bug 473282 - KisAnimTimelineFramesModel "Invalid index in model"
Summary: KisAnimTimelineFramesModel "Invalid index in model"
Status: RESOLVED DUPLICATE of bug 473485
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: git master (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-11 14:01 UTC by Alvin Wong
Modified: 2023-08-20 13:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alvin Wong 2023-08-11 14:01:26 UTC
On creating or opening a new document, if the animation docker is not visible, this QDebug message will be produced:

QAbstractItemModel::endInsertColumns:  Invalid index ( 0 , 101 ) in model KisAnimTimelineFramesModel(0x2b72b4dcad0)

The backtrace indicates that it comes from https://invent.kde.org/graphics/krita/-/blob/cabfac1d4ad9a4c5f43b49f8ee4c9cf849abc959/plugins/dockers/animation/KisTimeBasedItemModel.cpp#L579. Now I though this may be a simple off-by-one error, but if I change the line above into `m_d->numFramesOverride = lastFrame + 1;` it still continues to produce the message, so I'm not sure.
Comment 1 Freya Lupen 2023-08-20 13:22:34 UTC

*** This bug has been marked as a duplicate of bug 473485 ***