Bug 374381 - Segfault when creating/opening a document after closing a document having opacity keyframes
Summary: Segfault when creating/opening a document after closing a document having opa...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 3.1.1
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 386225 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-31 08:53 UTC by Nicholas LaPointe
Modified: 2017-11-08 13:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Backtrace (13.87 KB, text/plain)
2016-12-31 08:53 UTC, Nicholas LaPointe
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***