Bug 349108

Summary: Crash when redoing after updating to Krita: 2.9.5 (git c5aba5a)
Product: [Applications] krita Reporter: mvowada <freebox64>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: GDB backtrace.
Video.

Description mvowada 2015-06-13 16:51:30 UTC
Whenever I redo a brush stroke I get a crash (see the backtrace below).
I've updated to Krita: 2.9.5 (git c5aba5a) today.

Reproducible: Always

Steps to Reproduce:
1. fresh configs
2. make a paint stroke
3. undo
4. redo

Actual Results:  
I get a crash.

Expected Results:  
Redo the paint stroke.
Comment 1 mvowada 2015-06-13 16:52:32 UTC
Created attachment 93153 [details]
GDB backtrace.
Comment 2 mvowada 2015-06-13 16:53:40 UTC
Created attachment 93154 [details]
Video.
Comment 3 Dmitry Kazakov 2015-06-14 15:35:38 UTC
Git commit 6c9bb986ab8fb7fbc2df36a4af65e7763aeb5f3c by Dmitry Kazakov.
Committed on 14/06/2015 at 15:29.
Pushed by dkazakov into branch 'calligra/2.9'.

Fix a crash when redoing actions

We should clear redo stack tail only in case we are running non-undo/redo
stroke.
Related: bug 331708

M  +1    -0    krita/image/commands_new/kis_saved_commands.cpp
M  +4    -1    krita/image/kis_image.cc
M  +11   -0    krita/image/kis_stroke_strategy.cpp
M  +11   -0    krita/image/kis_stroke_strategy.h
M  +5    -0    krita/image/kis_stroke_strategy_undo_command_based.cpp
M  +2    -0    krita/image/kis_stroke_strategy_undo_command_based.h

http://commits.kde.org/calligra/6c9bb986ab8fb7fbc2df36a4af65e7763aeb5f3c