Bug 442952 - Crash on using Clip jobs / Stabilize
Summary: Crash on using Clip jobs / Stabilize
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Effects & Transitions (other bugs)
Version First Reported In: 21.08.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Vincent PINON
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-25 21:41 UTC by andkde
Modified: 2023-12-30 09:34 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
fritzibaby: timeline_corruption+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andkde 2021-09-25 21:41:13 UTC
Application: kdenlive (21.08.1)

Qt Version: 5.15.2
Frameworks Version: 5.80.0
Operating System: Linux 5.11.0-34-generic x86_64
Windowing System: X11
Drkonqi Version: 5.21.4
Distribution: Ubuntu 21.04

-- Information about the crash:
- What I was doing when the application crashed:

I cut a H.264 .mov clip into several parts, sped it up and attempted to use the Stabilize function on the last clip. Crashes every time.

The crash can be reproduced every time.

-- Backtrace:
Application: Kdenlive (kdenlive), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fd92f23a140 in QString::splitRef(QString const&, QFlags<Qt::SplitBehaviorFlags>, Qt::CaseSensitivity) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fd92f23be19 in QString::section(QString const&, int, int, QFlags<QString::SectionFlag>) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x000055dc569490a9 in QString::section (aflags=..., aend=0, astart=0, asep=..., this=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1152
#7  ClipStabilize::ClipStabilize (parent=0x0, filterName=..., binIds=std::vector of length 0, capacity 0, this=0x55dc60875e10) at ./src/project/clipstabilize.cpp:55
#8  StabilizeTask::start(QObject*, bool) [clone .constprop.0] (object=<optimized out>, force=false) at ./src/jobs/stabilizetask.cpp:55
#9  0x00007fd92f3c95c7 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fd9304e3bd6 in QAction::triggered(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007fd9304e6908 in QAction::activate(QAction::ActionEvent) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007fd92f3bf10c in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007fd9304ea783 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007fd92f3917ba in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007fd92f3947e1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007fd92f3ebba7 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fd92d8358eb in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007fd92d888d28 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007fd92d833023 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007fd92f3eb204 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007fd92f39011b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007fd92f398604 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x000055dc564eace6 in main (argc=<optimized out>, argv=0x7ffe7efd0a38) at ./src/main.cpp:278
[Inferior 1 (process 236446) detached]
Comment 1 Tom Herrmann 2021-12-01 05:15:50 UTC
The same thing happens to me.  Plasma 5.23.3,  kernel 5.11.0-40 generic.  Quad core i5.
Comment 2 emohr 2021-12-01 16:07:53 UTC
Thank you for reporting. I guess you have done these steps in the project bin? 

Please try with the current Kdenlive AppImage version 21.08.3a to see if there are any packaging issues:
 https://download.kde.org/stable/kdenlive/21.08/linux/ 

or with the Kdenlive_Nightly_Appimage
https://binary-factory.kde.org/job/Kdenlive_Nightly_Appimage_Build/lastSuccessfulBuild/artifact/
Comment 3 Stefano Pigozzi 2021-12-06 16:17:39 UTC
Same problem appears to be happening on both the latest Arch Linux build of Kdenlive and both linked AppImages, both the current and the nightly.
Comment 4 emohr 2021-12-07 18:40:01 UTC
According your steps you first cut the clip and then speed it up and then stabilize the clip. But stabilize is only possible in the project bin and not in the timeline. How do you cut the clip in the project bin? 

Do I miss something? 

Can you upload here a test clip?
Comment 5 andkde 2021-12-07 19:25:37 UTC
(In reply to emohr from comment #4)
> According your steps you first cut the clip and then speed it up and then
> stabilize the clip. But stabilize is only possible in the project bin and
> not in the timeline. How do you cut the clip in the project bin? 
> 
> Do I miss something? 
> 
> Can you upload here a test clip?

I selected the clip in the timeline, then under the filemenu for Clip I pressed "Clip jobs" -> "Stabilize". I believe that the cutting and speed-up part of my earlier description is irrelevant as the crash seems to happen regardless of that. 

> But stabilize is only possible in the project bin and not in the timeline.
Then the root cause might be user error on my part as this is my first time using Kdenlive. I see that if I select an item in the "Project Bin", and then perform the Stabilize function it seems to work fine. If this function is not supposed to work on the timeline, then I guess the best fix here is to either disable the entry in the menu when no clip in the Project Bin has been selected, or inform the user with a dialog,
Comment 6 emohr 2023-12-30 09:34:04 UTC
I tested with 23.08.4. As soon as you change the clip speed in the timeline, stabilize is not selectable in the clip menu anymore.

I close this bug. If it still appears in the latest version, please feel free to re-open it and update the affected version number.