https://bugs.kde.org/show_bug.cgi?id=467254

            Bug ID: 467254
           Summary: Kdenlive attempts to transcode a clip, crashes and
                    produces a large file in the background
    Classification: Applications
           Product: kdenlive
           Version: 22.12.3
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Video Display & Export
          Assignee: j...@kdenlive.org
          Reporter: fritz.seiff...@protonmail.com
  Target Milestone: ---

(Seems like Dr Konqi can't receive tokens or otherwise can't report bugs right
now, so I copied the text and threw it in here):


Application: kdenlive (21.12.3)

Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.14.21-150400.24.46-default x86_64
Windowing System: X11
Distribution: "openSUSE Leap 15.4"
DrKonqi: 5.24.4 [KCrashBackend]

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

I was trying to add a clip to a new Kdenlive (size: 37.7 MiB). For no reason to
my knowledge the program informed me that I would have had to transcode the
clip (the recording settings were - to my knowledge - no different from
anything else). Both upon clicking the cancel and the ok buttons the program
crashes every time. The choicebox had the default ("Lossy x264 I frame only").

In the background (that is to say without an open Kdenlive window) there was
now a large file named "2023-03-06 22-36-260001.mp4" (the original file was
called "2023-03-06 22-36-26.mp4") being generated over several seconds, worth
884.1 MiB. As far as I can tell content of the files remains identical with one
exception: It seems only the first of the 2 audio streams of the original file
survived. I wasn not able to hear any changes in the first audio stream either.
Upon reopening Kdenlive it offered me to restore the most recent project. Doing
so loads the project with the original clip and it does indeed play, but
skipping through the timeline seems to desync the marker in the timeline and
the video being played, possibly only when skipping to a previous point but I'm
not 100% sure on that.

The only other differences when examining the original and "transcoded" file in
the project's clip properties were the bitrates: The old file had 250 kB/s
audio and 1889 kB/s video, the new one has 202 kB/s audio and 44096 kB/s video.
The video was being recorded with OBS, codec x264 quality regulation set to
CRF, CRF set to 23, keyframe interval automatic, ultrafast preset.
In the clip properties the Audio-Codec was AAC 48000 Hz, , 1920x1080 at 60 FPS,
color spectrum ITU-R BT.709, 1.000 PAR, pixel format yuv420p, video codec H.264
(the last part I may understand incorrectly, but maybe I need to check my OBS
settings because it's supposed to be x264, should it not? Though both are valid
video codexes, so I suppose it has no relevance here).

Both files open and play normally (tested with VLC Media Player), thus I would
not exepct the file to have gotten corrupted in the meantime.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  doActivate<false>(QObject*, int, void**) (sender=0x558491706b50,
signal_index=7, argv=0x7ffe3e1773a0) at kernel/qobject.cpp:3770
#5  0x00007f3f44751782 in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=<optimized out>, m=m@entry=0x7f3f46a6b720
<QDialog::staticMetaObject>, local_signal_index=local_signal_index@entry=0,
argv=argv@entry=0x7ffe3e1773a0) at kernel/qobject.cpp:3946
#6  0x00007f3f4656b13e in QDialog::finished(int) (this=<optimized out>,
_t1=<optimized out>) at .moc/moc_qdialog.cpp:230
#7  0x00007f3f44757fa9 in doActivate<false>(QObject*, int, void**)
(sender=0x558491810340, signal_index=10, argv=0x7ffe3e177460) at
kernel/qobject.cpp:3898
#8  0x00007f3f44751782 in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=sender@entry=0x558491810340, m=m@entry=0x7f3f46a646a0
<QDialogButtonBox::staticMetaObject>,
local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at
kernel/qobject.cpp:3946
#9  0x00007f3f46502cf3 in QDialogButtonBox::rejected()
(this=this@entry=0x558491810340) at .moc/moc_qdialogbuttonbox.cpp:299
#10 0x00007f3f46503368 in QDialogButtonBoxPrivate::_q_handleButtonClicked()
(this=<optimized out>) at widgets/qdialogbuttonbox.cpp:882
#11 0x00007f3f44757fa9 in doActivate<false>(QObject*, int, void**)
(sender=0x5584946e0130, signal_index=9, argv=0x7ffe3e1775d0) at
kernel/qobject.cpp:3898
#12 0x00007f3f44751782 in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=sender@entry=0x5584946e0130, m=m@entry=0x7f3f46a5b4e0
<QAbstractButton::staticMetaObject>,
local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffe3e1775d0)
at kernel/qobject.cpp:3946
#13 0x00007f3f4645d772 in QAbstractButton::clicked(bool)
(this=this@entry=0x5584946e0130, _t1=<optimized out>) at
.moc/moc_qabstractbutton.cpp:308
#14 0x00007f3f4645d98a in QAbstractButtonPrivate::emitClicked()
(this=0x5584946e0170) at widgets/qabstractbutton.cpp:415
#15 0x00007f3f4645edea in QAbstractButtonPrivate::click() (this=0x5584946e0170)
at widgets/qabstractbutton.cpp:408
#16 0x00007f3f4645efdd in QAbstractButton::mouseReleaseEvent(QMouseEvent*)
(this=0x5584946e0130, e=0x7ffe3e177b70) at widgets/qabstractbutton.cpp:1044
#17 0x00007f3f463b1b48 in QWidget::event(QEvent*) (this=0x5584946e0130,
event=0x7ffe3e177b70) at kernel/qwidget.cpp:9020
#18 0x00007f3f464601ab in QAbstractButton::event(QEvent*)
(this=this@entry=0x5584946e0130, e=e@entry=0x7ffe3e177b70) at
widgets/qabstractbutton.cpp:1001
#19 0x00007f3f4650069f in QPushButton::event(QEvent*) (this=0x5584946e0130,
e=0x7ffe3e177b70) at widgets/qpushbutton.cpp:709
#20 0x00007f3f463713bc in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=this@entry=0x55848bd2e2e0, receiver=receiver@entry=0x5584946e0130,
e=e@entry=0x7ffe3e177b70) at kernel/qapplication.cpp:3632
#21 0x00007f3f46378730 in QApplication::notify(QObject*, QEvent*)
(this=<optimized out>, receiver=0x5584946e0130, e=0x7ffe3e177b70) at
kernel/qapplication.cpp:3076
#22 0x00007f3f4471ac23 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x5584946e0130, event=0x7ffe3e177b70) at
kernel/qcoreapplication.cpp:1064
#23 0x00007f3f4471ae0e in QCoreApplication::sendSpontaneousEvent(QObject*,
QEvent*) (receiver=receiver@entry=0x5584946e0130,
event=event@entry=0x7ffe3e177b70) at kernel/qcoreapplication.cpp:1474
#24 0x00007f3f4637771f in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)
(receiver=receiver@entry=0x5584946e0130, event=event@entry=0x7ffe3e177b70,
alienWidget=0x5584946e0130, nativeWidget=0x558491706b50,
buttonDown=buttonDown@entry=0x7f3f46a8d670 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at
kernel/qapplication.cpp:2614
#25 0x00007f3f463cc31c in QWidgetWindow::handleMouseEvent(QMouseEvent*)
(this=this@entry=0x55849453cbf0, event=event@entry=0x7ffe3e177fd0) at
kernel/qwidgetwindow.cpp:683
#26 0x00007f3f463cf38d in QWidgetWindow::event(QEvent*) (this=0x55849453cbf0,
event=0x7ffe3e177fd0) at kernel/qwidgetwindow.cpp:300
#27 0x00007f3f463713bc in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=this@entry=0x55848bd2e2e0, receiver=receiver@entry=0x55849453cbf0,
e=e@entry=0x7ffe3e177fd0) at kernel/qapplication.cpp:3632
#28 0x00007f3f463781a0 in QApplication::notify(QObject*, QEvent*)
(this=0x7ffe3e1784b0, receiver=0x55849453cbf0, e=0x7ffe3e177fd0) at
kernel/qapplication.cpp:3156
#29 0x00007f3f4471ac23 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x55849453cbf0, event=0x7ffe3e177fd0) at
kernel/qcoreapplication.cpp:1064
#30 0x00007f3f4471ae0e in QCoreApplication::sendSpontaneousEvent(QObject*,
QEvent*) (receiver=receiver@entry=0x55849453cbf0,
event=event@entry=0x7ffe3e177fd0) at kernel/qcoreapplication.cpp:1474
#31 0x00007f3f45a1e0cb in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
(e=0x5584953e38c0) at kernel/qguiapplication.cpp:2282
#32 0x00007f3f45a1f675 in
QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
(e=e@entry=0x5584953e38c0) at kernel/qguiapplication.cpp:2002
#33 0x00007f3f459f744b in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#34 0x00007f3f36472d0a in xcbSourceDispatch(GSource*, GSourceFunc, gpointer)
(source=<optimized out>) at qxcbeventdispatcher.cpp:105
#35 0x00007f3f3ceee82b in g_main_context_dispatch () at
/usr/lib64/libglib-2.0.so.0
#36 0x00007f3f3ceeebd0 in  () at /usr/lib64/libglib-2.0.so.0
#37 0x00007f3f3ceeec5c in g_main_context_iteration () at
/usr/lib64/libglib-2.0.so.0
#38 0x00007f3f4477d02c in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x55848be0f250, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#39 0x00007f3f4471948a in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
(this=this@entry=0x7ffe3e178370, flags=..., flags@entry=...) at
kernel/qeventloop.cpp:232
#40 0x00007f3f44722cc7 in QCoreApplication::exec() () at
kernel/qcoreapplication.cpp:1375
#41 0x00007f3f45a12f9c in QGuiApplication::exec() () at
kernel/qguiapplication.cpp:1867
#42 0x00007f3f46371315 in QApplication::exec() () at
kernel/qapplication.cpp:2824
#43 0x000055848a8e047c in main(int, char**) (argc=<optimized out>,
argv=0x7ffe3e178758) at
/usr/src/debug/kdenlive-21.12.3-bp154.1.38.x86_64/src/main.cpp:283
[Inferior 1 (process 7114) detached]

Possible duplicates by query: bug 461787, bug 450324, bug 443028, bug 430007,
bug 422571.

An https://bugs.kde.org/ berichten

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to