Bug 374381

Summary: Segfault when creating/opening a document after closing a document having opacity keyframes
Product: [Applications] krita Reporter: Nicholas LaPointe <nicholaslapointe8>
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla, jeahd62
Priority: NOR    
Version: 3.1.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Backtrace

Description Nicholas LaPointe 2016-12-31 08:53:23 UTC
Created attachment 103110 [details]
Backtrace

Reproducible: Always

Krita will receive a segmentation fault when attempting to create or open a document after a document containing opacity keyframes is closed.

Steps to Reproduce:
1. Create a new document
2. Add an opacity keyframe
3. Close document
4. Create a new document
Comment 1 Halla Rempt 2017-01-03 09:26:29 UTC
Hi Nicholas,

I can confirm the issue.
Comment 2 Halla Rempt 2017-01-03 09:28:42 UTC
Git commit 91c8bde0e726e87ac953f0f6a6e7c3e72b55b194 by Boudewijn Rempt.
Committed on 03/01/2017 at 09:27.
Pushed by rempt into branch 'master'.

Make sure that the m_channels object is guarded by a QPointer so
we know when its parent is removed.

M  +4    -4    plugins/dockers/defaultdockers/kis_layer_box.cpp
M  +2    -2    plugins/dockers/defaultdockers/kis_layer_box.h

https://commits.kde.org/krita/91c8bde0e726e87ac953f0f6a6e7c3e72b55b194
Comment 3 Halla Rempt 2017-01-03 09:28:58 UTC
Git commit c91792d12e3a4d34de93b68c67323b23c82d05ee by Boudewijn Rempt.
Committed on 03/01/2017 at 09:28.
Pushed by rempt into branch 'krita/3.1'.

Make sure that the m_channels object is guarded by a QPointer so
we know when its parent is removed.

M  +4    -4    plugins/dockers/defaultdockers/kis_layer_box.cpp
M  +2    -2    plugins/dockers/defaultdockers/kis_layer_box.h

https://commits.kde.org/krita/c91792d12e3a4d34de93b68c67323b23c82d05ee
Comment 4 Halla Rempt 2017-11-08 13:22:19 UTC
*** Bug 386225 has been marked as a duplicate of this bug. ***