Bug 397043

Summary: SegFault from Python calls to Node::mergeDown()
Product: [Applications] krita Reporter: Emmet O'Neill <emmetoneill.pdx>
Component: ScriptingAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Emmet O'Neill 2018-08-01 06:22:50 UTC
Calling the `mergeDown()` function from a Python script causes a reproducible SegFault crash on Linux and Windows (haven't tested others, but likely).

To reproduce:
- Open a Krita document.
- Open "Tools > Scripts > Scripter"
- With a merge-valid layer selected, run `Krita.instance().activeDocument().activeNode().mergeDown()`
Comment 1 Halla Rempt 2018-08-01 07:03:50 UTC
Could you attach a stacktrace? (Or a patch :P)