Bug 355367 - Fast copy-paste of clips in the timeline crashes Kdenlive
Summary: Fast copy-paste of clips in the timeline crashes Kdenlive
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-15 00:42 UTC by qubodup
Modified: 2015-12-14 21:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 15.12.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qubodup 2015-11-15 00:42:01 UTC
Hello, I experience a lot of crashes in kdenlive git but it's hard to pin down the causes. Because of that, I figured that it might be useful to try to do specific things only at large scale, to see if they might be the cause. So in this report, I do something that is not likely to be caused by users in the way I tested it but the underlying cause of the crash might be still responsible for other issues.

mlt-git r4132.v0.9.2.354.g4f22f28-1
kdenlive-git commit 5851c75312a2e45613dc142b74f5cc3efa1980da

Steps to reproduce:
1. Start Kdenlive
2. Create a color clip, use defaults
3. Drag the color clip in the timeline
4. Use ctrl+c/ctrl+v to create multiple copies (slowly)
5. Select all by pressing ctrl+a
6. Copy the multiple copies (ctrl+c)
7. Start moving the mouse over the timeline and pressing ctr+v rapidly

Expected result:
One of the two:
a. all commands get accepted by Kdenlive and executed one after the other. The first batch would be copied. Then the second batch would be copied, unless it is not possible, for example because other clips are in the way etc. This might come with a slowdown of Kdenlive.
b. while the first paste command is being executed, no other commands are accepted. The UI waits for the first command to finish and only when it is done, it will start accepting input again.

Actual result:
1. Kdenlive crashes, apparently right after the first batch has been copied.


Please let me know whether this way of testing is useful at all to you and if I could provide more helpful information.

Video:
https://youtu.be/v7zwPGW7en4
Comment 1 Jean-Baptiste Mardelle 2015-11-15 14:09:09 UTC
Git commit a4d0692723da25a8a9a25a88a06b76dc22d58378 by Jean-Baptiste Mardelle.
Committed on 15/11/2015 at 14:08.
Pushed by mardelle into branch 'Applications/15.12'.

Fix crash on clip paste, thanks for the report

M  +9    -11   src/timeline/customtrackview.cpp

http://commits.kde.org/kdenlive/a4d0692723da25a8a9a25a88a06b76dc22d58378