Bug 450324 - Crash while attempting to time remap a clip
Summary: Crash while attempting to time remap a clip
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Effects & Transitions (show other bugs)
Version: 21.12.2
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Vincent PINON
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-15 17:29 UTC by x0r+kde
Modified: 2022-02-28 08:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: timeline_corruption+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description x0r+kde 2022-02-15 17:29:45 UTC
(I initially tried to report this bug through DRKonqi, but DRKonqi was unable to submit the report.)

Application: kdenlive (21.12.2)
 (Compiled from sources)
Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.15.11-gentoo-x86_64 x86_64
Windowing System: X11
Distribution: Gentoo/Linux
DrKonqi: 5.24.0 [KCrashBackend]

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

I inserted a clip in the timeline. I right-clicked on it, then enabled time remapping.

The clip I wanted to time remap had some action in the middle that I wanted to slow down to 50%. In other words, I wanted to play the clip at 100% at the beginning, 50% in the middle and 100% at the end. So in the time remapping dialog, I added two keyframes. I selected one of the two keyframes and wanted to change the speed percentage from 100 to 50. So I typed 50 in the appropriate text box, pressed Enter and Kdenlive crashes.

I have repeated the same steps three times, causing Kdenlive to crash consistently every time.

The problem clip came from a Sony FDR-AX53, was encoded with their XAVC-S codec (basically H.264 with a higher profile and bitrate than AVCHD) and was shot at 100 fps. The project uses 50 fps.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  QList<int>::append(int const&) (this=0x7ffc17546868, t=<error reading variable>) at /usr/include/bits/string_fortified.h:29
#5  0x000055a6f2c29296 in QList<int>::operator<<(int const&) (t=<error reading variable>, this=0x7ffc17546868) at /usr/include/qt5/QtCore/qlist.h:402
#6  RemapView::updateAfterSpeed(double) (this=0x55a6f4cea9b0, speed=<optimized out>) at /var/tmp/portage/kde-apps/kdenlive-21.12.2/work/kdenlive-21.12.2/src/dialogs/timeremap.cpp:1183
#7  0x00007f0fef7284be in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffc175469d0, r=0x55a6f4a10410, this=0x55a6f4e70600) at ../../include/QtCore/../../../qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qobjectdefs_impl.h:398
#8  doActivate<false>(QObject*, int, void**) (sender=0x55a6f5055490, signal_index=8, argv=argv@entry=0x7ffc175469d0) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qobject.cpp:3886
#9  0x00007f0fef7224e0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=m@entry=0x7f0ff0f60d80 <QDoubleSpinBox::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc175469d0) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qobject.cpp:3946
#10 0x00007f0ff0be5c10 in QDoubleSpinBox::valueChanged(double) (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qspinbox.cpp:488
#11 0x00007f0ff0be2959 in QAbstractSpinBoxPrivate::setValue(QVariant const&, EmitPolicy, bool) (this=this@entry=0x55a6f4c761d0, val=..., ep=ep@entry=EmitIfChanged, doUpdate=doUpdate@entry=true) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/widgets/qabstractspinbox.cpp:1795
#12 0x00007f0ff0be42f1 in QAbstractSpinBoxPrivate::interpret(EmitPolicy) (this=0x55a6f4c761d0, ep=EmitIfChanged) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/widgets/qabstractspinbox.cpp:1943
#13 0x00007f0ff0be1af6 in QAbstractSpinBox::keyPressEvent(QKeyEvent*) (this=0x55a6f5055490, event=0x7ffc17546fc0) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/widgets/qabstractspinbox.cpp:1080
#14 0x00007f0ff0a7e39a in QWidget::event(QEvent*) (this=0x55a6f5055490, event=0x7ffc17546fc0) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qwidget.cpp:8679
#15 0x00007f0ff0a3b68f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55a6f441d140, receiver=receiver@entry=0x55a6f5055490, e=e@entry=0x7ffc17546fc0) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qapplication.cpp:3632
#16 0x00007f0ff0a430f6 in QApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x55a6f5055490, e=0x7ffc17546fc0) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qapplication.cpp:2994
#17 0x00007f0fef6f5bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55a6f5055490, event=0x7ffc17546fc0) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qcoreapplication.cpp:1064
#18 0x00007f0ff0a998ff in QWidgetWindow::event(QEvent*) (this=0x55a6f6cf9c20, event=0x7ffc17546fc0) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qwidgetwindow.cpp:293
#19 0x00007f0ff0a3b68f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55a6f6cf9c20, e=0x7ffc17546fc0) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qapplication.cpp:3632
#20 0x00007f0fef6f5bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55a6f6cf9c20, event=0x7ffc17546fc0) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qcoreapplication.cpp:1064
#21 0x00007f0feff04292 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (e=0x55a6fea560e0) at /var/tmp/portage/dev-qt/qtgui-5.15.2-r16/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/gui/kernel/qguiapplication.cpp:2414
#22 0x00007f0fefee839b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at /var/tmp/portage/dev-qt/qtgui-5.15.2-r16/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/gui/kernel/qwindowsysteminterface.cpp:1169
#23 0x00007f0feae1b4aa in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at /var/tmp/portage/dev-qt/qtgui-5.15.2-r16/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#24 0x00007f0fed88fa0b in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#25 0x00007f0fed88fcb8 in  () at /usr/lib64/libglib-2.0.so.0
#26 0x00007f0fed88fd6f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#27 0x00007f0fef7464d3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55a6f455c790, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#28 0x00007f0fef6f4683 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffc17547250, flags=..., flags@entry=...) at ../../include/QtCore/../../../qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/global/qflags.h:69
#29 0x00007f0fef6fc900 in QCoreApplication::exec() () at ../../include/QtCore/../../../qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/global/qflags.h:121
#30 0x00007f0fefefc76c in QGuiApplication::exec() () at /var/tmp/portage/dev-qt/qtgui-5.15.2-r16/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/gui/kernel/qguiapplication.cpp:1867
#31 0x00007f0ff0a3b605 in QApplication::exec() () at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qapplication.cpp:2824
#32 0x000055a6f2a15f76 in main(int, char**) (argc=<optimized out>, argv=0x7ffc175475f8) at /var/tmp/portage/kde-apps/kdenlive-21.12.2/work/kdenlive-21.12.2/src/main.cpp:283
[Inferior 1 (process 4366) detached]

Possible duplicates by query: bug 443028, bug 430295, bug 430183, bug 430007, bug 422571.

Rapporteer naar https://bugs.kde.org/
Comment 1 emohr 2022-02-23 16:13:58 UTC
Please try with the current Kdenlive AppImage version 21.21.2 to see if there are any packaging issues https://kdenlive.org/en/download/
Comment 2 x0r+kde 2022-02-23 16:21:32 UTC
(In reply to emohr from comment #1)
> Please try with the current Kdenlive AppImage version 21.21.2 to see if
> there are any packaging issues https://kdenlive.org/en/download/

Hello,

I have just tried with the latest Kdenlive AppImage, version 21.12.2, and the same sequence of steps also causes this version to crash.
Comment 3 emohr 2022-02-23 17:19:32 UTC
Thank you for testing. As you use a clip type which I don’t have and you dropped the crash report I mark the bug as confirmed.
Comment 4 Jean-Baptiste Mardelle 2022-02-24 23:01:08 UTC
Git commit 6c3ad4bd358d53501b41d2b751e9884a770cd64f by Jean-Baptiste Mardelle.
Committed on 24/02/2022 at 23:00.
Pushed by mardelle into branch 'master'.

Fix crash updating speed before/after in time remap

M  +6    -6    src/dialogs/timeremap.cpp

https://invent.kde.org/multimedia/kdenlive/commit/6c3ad4bd358d53501b41d2b751e9884a770cd64f
Comment 5 x0r+kde 2022-02-25 07:40:20 UTC
(In reply to Jean-Baptiste Mardelle from comment #4)
> Git commit 6c3ad4bd358d53501b41d2b751e9884a770cd64f by Jean-Baptiste
> Mardelle.
> Committed on 24/02/2022 at 23:00.
> Pushed by mardelle into branch 'master'.
> 
> Fix crash updating speed before/after in time remap
> 
> M  +6    -6    src/dialogs/timeremap.cpp
> 
> https://invent.kde.org/multimedia/kdenlive/commit/
> 6c3ad4bd358d53501b41d2b751e9884a770cd64f

This patch fixes the crash for me.
Comment 6 emohr 2022-02-25 15:33:13 UTC
Thank you for the feedback. Glad to hear it works. 

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.
Comment 7 Jean-Baptiste Mardelle 2022-02-28 08:06:10 UTC
Git commit 406a48b16cdb226473a90b973fa2b60d30e290d5 by Jean-Baptiste Mardelle.
Committed on 28/02/2022 at 08:03.
Pushed by mardelle into branch 'release/21.12'.

Fix crash updating speed before/after in time remap

M  +6    -6    src/dialogs/timeremap.cpp

https://invent.kde.org/multimedia/kdenlive/commit/406a48b16cdb226473a90b973fa2b60d30e290d5