Bug 482510 - Crash when trying to move grouped clips on timeline track
Summary: Crash when trying to move grouped clips on timeline track
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface (show other bugs)
Version: git-master
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-06 02:55 UTC by red_Arti
Modified: 2024-03-08 22:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
record_move-crash (1.81 MB, video/mp4)
2024-03-06 02:55 UTC, red_Arti
Details
project_move-crash (834.43 KB, application/zip)
2024-03-06 02:57 UTC, red_Arti
Details
record_crash_2clip1sub (827.17 KB, video/mp4)
2024-03-06 12:32 UTC, red_Arti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description red_Arti 2024-03-06 02:55:12 UTC
Created attachment 166459 [details]
record_move-crash

SUMMARY
50 clips and 5 subtitles on timeline.
Group them into one, then cut the group into 5~7.
Quickly do clip movings on timeline, Kdenlive crashes.

STEPS TO REPRODUCE
1. Create project. Add 50 small pictures to project timeline
2. Add several subtitles
3. Select all in timeline . Groups them
4. Use keyboard shortcut to cut the grouped on into many (5~8)
5. Press M to switch to Spacer Tool
6. Use mouse to quickly move clips on timeline, with the Spacer Tool

OBSERVED RESULT
crash

EXPECTED RESULT


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.14.21 (64bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3 @ 2.40GHz
Memory: 12 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000


ADDITIONAL INFORMATION
terminal log:

qml: item not found
::: REQUESTING SELECTION CLEAR!!!!!!
qml: ENTER MOUSE END AREA
::: REQUESTING SELECTION CLEAR!!!!!!
::: REQUESTING SELECTION CLEAR!!!!!!
::: REQUESTING SELECTION CLEAR!!!!!!
srt/vtt/sbv file import
Saving subtitle filter:  "/tmp/1709692347896-{05e068c8-33b3-45a2-baaf-fedc987efa06}.srt"
::: UPDATING MAIN TIMELINE DURATION:  8785
// SETTING CLIP PROPERTIES:  QMap(("kdenlive:duration", "00:05:51:10")("kdenlive:maxduration", "8785")("length", "8785")("out", "8784"))
::: REQUESTING SELECTION CLEAR!!!!!!
[subtitles @ 0x7f3e4c0bf880] libass wasn't built with ASS_FEATURE_WRAP_UNICODE support
::: REQUESTING SELECTION CLEAR!!!!!!
::: REQUESTING SELECTION CLEAR!!!!!!
srt/vtt/sbv file import
Saving subtitle filter:  "/tmp/1709692347896-{05e068c8-33b3-45a2-baaf-fedc987efa06}.srt"
::: UPDATING MAIN TIMELINE DURATION:  6824
// SETTING CLIP PROPERTIES:  QMap(("kdenlive:duration", "00:04:32:24")("kdenlive:maxduration", "6824")("length", "6824")("out", "6823"))
::: REQUESTING SELECTION CLEAR!!!!!!
[subtitles @ 0x7f3e4c014b00] libass wasn't built with ASS_FEATURE_WRAP_UNICODE support
::: REQUESTING SELECTION CLEAR!!!!!!
terminate called after throwing an instance of 'std::out_of_range'
what():  unordered_map::at
Aborted                 (core dumped)
Comment 1 red_Arti 2024-03-06 02:57:41 UTC
Created attachment 166460 [details]
project_move-crash
Comment 2 red_Arti 2024-03-06 12:32:10 UTC
Created attachment 166475 [details]
record_crash_2clip1sub
Comment 3 red_Arti 2024-03-06 12:33:42 UTC
Update:
It turns out that, you only need 2 clips and 1 subtitle in group to reproduce a crash.
I uploaded a new record video.

Tested on git ci build  kdenlive-master-7562-linux-gcc-x86_64.AppImage (qt6)
Comment 4 Jean-Baptiste Mardelle 2024-03-08 22:45:36 UTC
Git commit 8d709b59628032d21b22f976599ed5a3904c79b8 by Jean-Baptiste Mardelle.
Committed on 08/03/2024 at 22:45.
Pushed by mardelle into branch 'release/24.02'.

Fix crash on spacer tool with grouped subtitle

M  +1    -1    src/timeline2/model/timelinefunctions.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/8d709b59628032d21b22f976599ed5a3904c79b8