<?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>504103</bug_id>
          
          <creation_ts>2025-05-12 14:54:48 +0000</creation_ts>
          <short_desc>Extract Clip (shift + delete) on the last clip of the timeline leads to freeze</short_desc>
          <delta_ts>2026-05-06 13:41:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdenlive</product>
          <component>Timeline &amp; Editing</component>
          <version>25.04.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEEDSINFO</bug_status>
          <resolution>WAITINGFORINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ciro Santilli">ciro.santilli</reporter>
          <assigned_to name="Jean-Baptiste Mardelle">jb</assigned_to>
          <cc>ciro.santilli</cc>
    
    <cc>luzpaz</cc>
          
          <cf_commitlink></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>2423186</commentid>
    <comment_count>0</comment_count>
    <who name="Ciro Santilli">ciro.santilli</who>
    <bug_when>2025-05-12 14:54:48 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1.  start new project, add a any clip to timeline (has to have found apprarently) E.g. I tested with this extremely minimal counter:

ffmpeg -lavfi &quot;
color=white:480x480:d=3,
format=rgb24,
drawtext=
  fontcolor=black:
  fontsize=600:
  text=&apos;%{eif\:t\:d}&apos;:
  x=(w-text_w)/2:
  y=(h-text_h)/2[v];
sine=f=500:d=1[a1];
sine=f=1000:d=1[a2];
sine=f=2000:d=1[a3];
[a1][a2][a3]concat=n=3:v=0:a=1[a];
&quot; -map &apos;[v]&apos; -map &apos;[a]&apos; count.mp4

2. Cut the clip in two with razor (shift + r) anywhere
3. Select the second (and here last) clip and shift + delete it

Doing just Delete without shift works fine, but I use the awesome shift + delete so often that sometimes I forget and freeze myself again and again.

OBSERVED RESULT

The clip remains on timeline, and after a few seconds kdenlive freezes and Ubuntu says &quot;Kdenlive&quot; is not responding.

EXPECTED RESULT

It gets deleted, no freeze.

SOFTWARE/OS VERSIONS
Ubuntu 24.10 with flatpack.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2423188</commentid>
    <comment_count>1</comment_count>
    <who name="Ciro Santilli">ciro.santilli</who>
    <bug_when>2025-05-12 14:55:46 +0000</bug_when>
    <thetext>* 1. has to have Sound I meant</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2423189</commentid>
    <comment_count>2</comment_count>
    <who name="Ciro Santilli">ciro.santilli</who>
    <bug_when>2025-05-12 14:57:39 +0000</bug_when>
    <thetext>Terminal logs that show up after shift + delete:

-----
// SHOW KEYFRAMES:  true
-----
// SHOW KEYFRAMES:  true
// SETTING CLIP PROPERTIES:  QMap((&quot;kdenlive:duration&quot;, &quot;00:00:01:09&quot;)(&quot;kdenlive:maxduration&quot;, &quot;34&quot;)(&quot;length&quot;, &quot;34&quot;)(&quot;out&quot;, &quot;34&quot;))
==== ERROR INSERT ON NEGATIVE POS:  -7
clip insertion failed
// SETTING CLIP PROPERTIES:  QMap((&quot;kdenlive:duration&quot;, &quot;00:00:03:00&quot;)(&quot;kdenlive:maxduration&quot;, &quot;75&quot;)(&quot;length&quot;, &quot;75&quot;)(&quot;out&quot;, &quot;75&quot;))
REGISTRATION  11 ptr count 6
qml: loaded clip:  34 , ID:  11 , index:  1 , TYPE: 3
qml: loaded clip with Astream:  1
-----
// SHOW KEYFRAMES:  true
// SETTING CLIP PROPERTIES:  QMap((&quot;kdenlive:duration&quot;, &quot;00:00:01:09&quot;)(&quot;kdenlive:maxduration&quot;, &quot;34&quot;)(&quot;length&quot;, &quot;34&quot;)(&quot;out&quot;, &quot;34&quot;))
==== ERROR INSERT ON NEGATIVE POS:  -7
clip insertion failed
// SETTING CLIP PROPERTIES:  QMap((&quot;kdenlive:duration&quot;, &quot;00:00:03:00&quot;)(&quot;kdenlive:maxduration&quot;, &quot;75&quot;)(&quot;length&quot;, &quot;75&quot;)(&quot;out&quot;, &quot;75&quot;))
REGISTRATION  12 ptr count 6
qml: loaded clip:  34 , ID:  12 , index:  2 , TYPE: 3
qml: loaded clip with Astream:  1
REGISTRATION  11 ptr count 6
qml: loaded clip:  34 , ID:  11 , index:  1 , TYPE: 3
qml: loaded clip with Astream:  1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2514060</commentid>
    <comment_count>3</comment_count>
    <who name="">luzpaz</who>
    <bug_when>2026-05-06 13:41:02 +0000</bug_when>
    <thetext>Still relevant for latest stable ?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>