<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>520732</bug_id>
          
          <creation_ts>2026-05-27 21:25:53 +0000</creation_ts>
          <short_desc>“Insert Hold Frame” via keyboard shortcut and right-click context menu crashes Krita</short_desc>
          <delta_ts>2026-05-29 21:19:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Animation</component>
          <version>5.3.2</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression, triaged</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>yotsuxp</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>dra.w.p.il.e+bugskde</cc>
    
    <cc>manuelpascali1999</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/-/commit/06190602d1415525074da21cb51ff8c4a287b72f</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2518817</commentid>
    <comment_count>0</comment_count>
    <who name="">yotsuxp</who>
    <bug_when>2026-05-27 21:25:53 +0000</bug_when>
    <thetext>DESCRIPTION
When using &quot;Insert Hold Frame&quot;, either as a keyboard shortcut or via the right-click context menu, Krita crashes.

STEPS TO REPRODUCE
1. Create a blank .kra file.
2. Create at least one or two hold frames on the animation timeline. If there is one frame on the timeline, place that frame somewhere in the middle of the timeline. If there are two frames on the timeline, have a few hold frames in between them.
3. Use &quot;Insert Hold Frame&quot; and/or &quot;Remove Hold Frame&quot; between before the animation frame, or between two animation frames.

OBSERVED RESULT
- Krita crashes the moment &quot;Insert Hold Frame&quot; or &quot;Remove Hold Frame&quot; is used.

SOFTWARE/OS VERSIONS
Krita 5.3.2 (git 7d1ae74) running Windows 11
5.3.2 Linux appimage</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518824</commentid>
    <comment_count>1</comment_count>
    <who name="">dra.w.p.il.e+bugskde</who>
    <bug_when>2026-05-27 22:19:39 +0000</bug_when>
    <thetext>Can reproduce on Linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518841</commentid>
    <comment_count>2</comment_count>
    <who name="">dra.w.p.il.e+bugskde</who>
    <bug_when>2026-05-27 23:55:44 +0000</bug_when>
    <thetext>*** Bug 520735 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518880</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-05-28 04:45:46 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2804</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518968</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2026-05-28 13:21:41 +0000</bug_when>
    <thetext>Git commit 57b27bfc66bc45140d7bd743f798fcb0b658a266 by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 28/05/2026 at 13:21.
Pushed by dkazakov into branch &apos;master&apos;.

Don&apos;t free hold frame undo command at scope exit

This was introduced in 0bb591da8096a96682560f723b960f47d597c0e7, which
incorrectly replaced `QScopedPointer::take` with `std::unique_ptr::get`.
This correctly swaps it for `std::unique_ptr::release`.

M  +1    -1    plugins/dockers/animation/KisAnimTimelineFramesModel.cpp

https://invent.kde.org/graphics/krita/-/commit/57b27bfc66bc45140d7bd743f798fcb0b658a266</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518970</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2026-05-28 13:23:07 +0000</bug_when>
    <thetext>Git commit 16b0f3604fde5e3b5b0f792474f1ea31e47c6b6f by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 28/05/2026 at 13:22.
Pushed by dkazakov into branch &apos;krita/6.0&apos;.

Don&apos;t free hold frame undo command at scope exit

This was introduced in 0bb591da8096a96682560f723b960f47d597c0e7, which
incorrectly replaced `QScopedPointer::take` with `std::unique_ptr::get`.
This correctly swaps it for `std::unique_ptr::release`.

M  +1    -1    plugins/dockers/animation/KisAnimTimelineFramesModel.cpp

https://invent.kde.org/graphics/krita/-/commit/16b0f3604fde5e3b5b0f792474f1ea31e47c6b6f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519269</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2026-05-29 21:19:55 +0000</bug_when>
    <thetext>Git commit 06190602d1415525074da21cb51ff8c4a287b72f by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 29/05/2026 at 21:17.
Pushed by dkazakov into tag &apos;v6.0.2.1&apos;.

Don&apos;t free hold frame undo command at scope exit

This was introduced in 0bb591da8096a96682560f723b960f47d597c0e7, which
incorrectly replaced `QScopedPointer::take` with `std::unique_ptr::get`.
This correctly swaps it for `std::unique_ptr::release`.

M  +1    -1    plugins/dockers/animation/KisAnimTimelineFramesModel.cpp

https://invent.kde.org/graphics/krita/-/commit/06190602d1415525074da21cb51ff8c4a287b72f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>