Bug 473282

Summary: KisAnimTimelineFramesModel "Invalid index in model"
Product: [Applications] krita Reporter: Alvin Wong <alvin>
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: minor CC: emmetoneill.pdx, penguinflyer2222
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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 ***