Bug 485038

Summary: Kdenlive crashes when opening a save file that imports still images
Product: [Applications] kdenlive Reporter: Antti Savolainen <antti.savo>
Component: Project Bin & ImportAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: crash CC: fritzibaby
Priority: NOR    
Version First Reported In: 24.02.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: backtrace

Description Antti Savolainen 2024-04-04 16:45:08 UTC
Created attachment 168148 [details]
backtrace

SUMMARY
Demonstrative video: https://youtu.be/6c0cht5iNIQ
If I pick png files into the project bin, save to a file, close kdenlive and open the save file kdenlive crashes.

STEPS TO REPRODUCE
1. Open an empty project
2. Import a couple of PNGs to the project bin
3. Save a project file
4. Close kdenlive
4. Open the project file

OBSERVED RESULT
Kdenlive crashes

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ef1550ab393 in __pthread_kill_internal (signo=11, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007ef15505a6c8 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007ef15873443f in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash/kcrash-6.0.0/src/kcrash.cpp:586
#4  0x00007ef15505a770 in <signal handler called> () at /usr/lib/libc.so.6
#5  0x00007ef158274038 in Mlt::Consumer::is_stopped (this=0x0) at /usr/src/debug/mlt/mlt-7.22.0/src/mlt++/MltConsumer.cpp:120
#6  0x00005bd3b73a865f in VideoWidget::restartConsumer (this=this@entry=0x5bd3bb1a97c0) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/monitor/videowidget.cpp:1115
#7  0x00005bd3b73a874b in VideoWidget::requestSeek (this=0x5bd3bb1a97c0, position=<optimized out>, noAudioScrub=true) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/monitor/videowidget.cpp:306
#8  0x00005bd3b73bec14 in Monitor::processSeek (noAudioScrub=true, pos=0, this=0x5bd3bba346b0) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/monitor/monitor.cpp:2704
#9  Monitor::processSeek (this=0x5bd3bba346b0, pos=0, noAudioScrub=true) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/monitor/monitor.cpp:2692
#10 0x00007ef155791599 in QtPrivate::QSlotObjectBase::call (a=0x7ffe684829f0, r=0x5bd3bba346b0, this=0x5bd3bc48ac70, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qobjectdefs_impl.h:433
#11 doActivate<false> (sender=0x5bd3ba53b120, signal_index=5, argv=0x7ffe684829f0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qobject.cpp:4039
#12 0x00005bd3b73c1caa in MonitorProxy::requestSeek (_t2=<optimized out>, _t1=0, this=0x5bd3ba53b120) at /usr/src/debug/kdenlive/build/src/kdenliveLib_autogen/T5U2TTTZLX/moc_monitorproxy.cpp:1516
#13 MonitorProxy::setPositionAdvanced (noAudioScrub=true, pos=0, this=0x5bd3ba53b120) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/monitor/monitorproxy.cpp:112
#14 MonitorProxy::setPositionAdvanced (noAudioScrub=true, pos=0, this=0x5bd3ba53b120) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/monitor/monitorproxy.cpp:106
#15 Monitor::setProducer (this=<optimized out>, producer=Python Exception <class 'gdb.error'>: value has been optimized out
, pos=0) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/monitor/monitor.cpp:2724
#16 0x00005bd3b75689b7 in MainWindow::connectTimeline (this=<optimized out>) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/mainwindow.cpp:4937
#17 TimelineTabs::connectCurrent (this=this@entry=0x5bd3bc5eb0a0, ix=ix@entry=0) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/timeline2/view/timelinetabs.cpp:160
#18 0x00005bd3b756b820 in TimelineTabs::addTimeline (this=0x5bd3bc5eb0a0, uuid=..., tabName=..., timelineModel=std::shared_ptr<TimelineItemModel> (use count 8, weak count 6) = {...}, proxy=0x5bd3ba53b120) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/timeline2/view/timelinetabs.cpp:126
#19 0x00005bd3b76050eb in MainWindow::openTimeline (this=0x5bd3b980f190, uuid=..., tabName=..., timelineModel=Python Exception <class 'gdb.error'>: value has been optimized out
) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/mainwindow.cpp:4893
#20 0x00005bd3b74461ae in ProjectManager::openTimeline (this=0x5bd3b98c16f0, id=<optimized out>, uuid=..., position=<optimized out>, duplicate=<optimized out>, existingModel=Python Exception <class 'gdb.error'>: value has been optimized out
) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/project/projectmanager.cpp:1971
#21 0x00005bd3b74396e5 in ProjectManager::doOpenFile (this=0x5bd3b98c16f0, url=<optimized out>, stale=<optimized out>, isBackup=<optimized out>) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/project/projectmanager.cpp:939
#22 0x00005bd3b7432277 in ProjectManager::openFile (this=this@entry=0x5bd3b98c16f0, url=...) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/project/projectmanager.cpp:785
#23 0x00005bd3b74326cb in ProjectManager::openFile (this=0x5bd3b98c16f0) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/project/projectmanager.cpp:671
#24 0x00005bd3b7128d61 in ProjectManager::slotLoadOnOpen (this=0x5bd3b98c16f0) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/project/projectmanager.cpp:92
#25 ProjectManager::qt_static_metacall (_o=0x5bd3b98c16f0, _id=<optimized out>, _a=0x5bd3b9ad1eb8, _c=<optimized out>) at /usr/src/debug/kdenlive/build/src/kdenliveLib_autogen/QV7S676PVK/moc_projectmanager.cpp:565
#26 0x00007ef15577cbb7 in QObject::event (this=0x5bd3b98c16f0, e=0x5bd3b9ad1e70) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qobject.cpp:1437
#27 0x00007ef1566f437b in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5bd3b98c16f0, e=0x5bd3b9ad1e70) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/widgets/kernel/qapplication.cpp:3296
#28 0x00007ef15573a198 in QCoreApplication::notifyInternal2 (receiver=0x5bd3b98c16f0, event=event@entry=0x5bd3b9ad1e70) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qcoreapplication.cpp:1121
#29 0x00007ef15573a51b in QCoreApplication::sendEvent (event=0x5bd3b9ad1e70, receiver=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qcoreapplication.cpp:1539
#30 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5bd3b9131780) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qcoreapplication.cpp:1901
#31 0x00007ef155975ba4 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qcoreapplication.cpp:1760
#32 postEventSourceDispatch (s=0x5bd3b91353e0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qeventdispatcher_glib.cpp:243
#33 0x00007ef153f0d199 in g_main_dispatch (context=0x7ef148000f00) at ../glib/glib/gmain.c:3344
#34 0x00007ef153f6c3bf in g_main_context_dispatch_unlocked (context=0x7ef148000f00) at ../glib/glib/gmain.c:4152
#35 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7ef148000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#36 0x00007ef153f0c712 in g_main_context_iteration (context=0x7ef148000f00, may_block=1) at ../glib/glib/gmain.c:4282
#37 0x00007ef155973cd4 in QEventDispatcherGlib::processEvents (this=0x5bd3b914b970, flags=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#38 0x00007ef1557446ee in QEventLoop::processEvents (flags=..., this=0x7ffe68483b40) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qeventloop.cpp:100
#39 QEventLoop::exec (this=0x7ffe68483b40, flags=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/kernel/qeventloop.cpp:182
#40 0x00007ef15573cc38 in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/corelib/global/qflags.h:74
#41 0x00007ef1566f0efa in QApplication::exec () at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.3/src/widgets/kernel/qapplication.cpp:2574
#42 0x00005bd3b709891c in main (argc=<optimized out>, argv=0x7ffe68484128) at /usr/src/debug/kdenlive/kdenlive-24.02.1/src/main.cpp:484