Bug 367817

Summary: Krita crashes with specific animation workflow with keyframes
Product: [Applications] krita Reporter: Scott Petrovic <scottpetrovic>
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: dimula73, halla, joupent, kwadraatnope, zeta
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Scott Petrovic 2016-08-25 20:57:31 UTC
a crash with a specific workflow with animation. I am not sure how common it is, but a crash is a crash.

Reproducible: Always

Steps to Reproduce:
Create a new animation template
right click frame 0 and click "new frame"
right click frame 1 and click "new frame"
turn on onion skin for the layer
select frame 0


Actual Results:  
crash

Expected Results:  
not crash
Comment 1 Halla Rempt 2016-09-27 09:19:03 UTC
Hm, with the latest git master build, I cannot reproduce that crash.
Comment 2 Scott Petrovic 2016-09-28 01:47:38 UTC
I just tested the latest Windows build that was generated a few hours from downloads.kde.org. it is still crashing with those steps. Let me clarify the steps a bit in case they weren't clear.

Steps to Reproduce.
0. Have the animation workspace open
1. Create a new document from the animation template. File > New > select animation (selected Animation-Japanese-En). Click "use this template" button
2. right click frame 0 and click "new frame"
3. right click frame 1 and click "new frame"
4. turn on showing onion skin for the layer  
5. select frame 0
6. Krita crashes

I am on Windows 10 right now. I originally was on ubuntu when the crash happened. I originally did this at the sprint. I thought Jouni also could reproduce. it is a bit of a niche crash, so it probably isn't the highest priority. Somone on IRC originally told me these steps.
Comment 3 Bollebib 2016-10-04 20:08:41 UTC
i also get this result
Comment 4 joupent 2016-10-08 11:07:30 UTC
Backtrace for the crash:

1	KisHLineIterator2::switchToTile	kis_hline_iterator.cpp	192	0x7ffff3c6f901	
2	KisHLineIterator2::nextPixels	kis_hline_iterator.cpp	154	0x7ffff3c6feeb	
3	nextPixel	kis_sequential_iterator.h	169	0x7ffff3d8eb4c	
4	KisPaintDevice::Private::updateLodDataStruct	kis_paint_device.cc	707	0x7ffff3d8eb4c	
5	KisPaintDevice::updateLodDataStruct	kis_paint_device.cc	1942	0x7ffff3d8ee89	
6	KisOnionSkinCache::projection	kis_onion_skin_cache.cpp	111	0x7ffff3e290ca	
7	KisPaintLayer::copyOriginalToProjection	kis_paint_layer.cc	169	0x7ffff3d9f0d6	
8	KisLayer::applyMasks	kis_layer.cc	583	0x7ffff3d5d446	
9	KisLayer::updateProjection	kis_layer.cc	673	0x7ffff3d5e3e0	
10	KisLayerProjectionPlane::recalculate	kis_layer_projection_plane.cpp	47	0x7ffff3d619eb	
11	KisAsyncMerger::startMerge	kis_async_merger.cpp	251	0x7ffff3d20238	
12	runMergeJob	kis_update_job_item.h	83	0x7ffff3e64bfb	
13	KisUpdateJobItem::run	kis_update_job_item.h	63	0x7ffff3e64bfb	
14	??			0x7ffff6d0d68e	
15	??			0x7ffff6d1062f	
16	start_thread	pthread_create.c	312	0x7fffef759184	
17	clone	clone.S	111	0x7ffff4e8137d
Comment 5 Chris Nicoll 2016-10-24 18:18:09 UTC
Just searched for this bug after I experienced it using krita-3.0-x86_64.appimage on Mageia 5. I didn't use a template, just set up two transparent layers over a solid background layer, and drew on them. The rest is the same: 

2. right click frame 0 and click "new frame" 
3. right click frame 1 and click "new frame" 
4. turn on showing onion skin for the layer 
5. select frame 0 
6. Krita crashes
Comment 6 Dmitry Kazakov 2016-11-03 07:12:45 UTC
This bug has already been fixed in the most recent build of Krita :)

http://download.kde.org/unstable/krita/3.0.91/krita-3.0.91-x86_64.appimage