Bug 361744

Summary: Internal Error (ASSERT line 327) upon switching between multiple views of same file
Product: [Applications] krita Reporter: Sam Keeper <unusualcows>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla
Priority: NOR    
Version First Reported In: 3.0 Alpha   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Image of the error message

Description Sam Keeper 2016-04-14 01:44:34 UTC
When switching between multiple views of the same file, I received an error message reading:

Krita has encountered an internal error:

Assert (krita):"dummy" in file C:\kritadev\ ... \timeline_frames_model.cpp, line 327

Please report a bug to developers!

Press ignore to continue &c.


The message appeared several times as I switched from the second view to the first (it ALWAYS appeared moving from second to first) and after the fourth or fifth time Krita crashed.

I could not recreate the bug unfortunately. It occurred several hours into working, and after reloading the program I was unable to prompt the error message again.

See attached image file

Reproducible: Couldn't Reproduce
Comment 1 Sam Keeper 2016-04-14 01:45:45 UTC
Created attachment 98388 [details]
Image of the error message
Comment 2 Halla Rempt 2016-04-14 18:44:34 UTC
Hi Sam,

Thanks for the report. I've asked Dmitry to take a look, he's the one who made the scary assert message box :-) Just the fact that it can happen makes it a confirmed bug!
Comment 3 Halla Rempt 2016-04-16 13:31:29 UTC
Fixed in  


commit cb342ec320ad79c07c9d8963895ff963f841eb3f
Author: Dmitry Kazakov <dimula73@gmail.com>
Date:   Fri Apr 15 19:03:54 2016 +0300

    Fix all invalid accesses in stl-like iterators
    
    We must not keep 'end' iterator throughout the loop if the object
    is changed in the meantime. According to Qt's docs all the iterators
    become 'undefined' after every non-const function call over the
    iterated object.
    
    CC:kimageshop@kde.org