Segfault when closing kdenlive main window
Thread 1 "kdenlive" received signal SIGSEGV, Segmentation fault.
0x00007ffff18d77e6 in QStackedLayout::currentWidget() const () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
(gdb) backtrace
#0 0x00007ffff18d77e6 in QStackedLayout::currentWidget() const () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#1 0x0000555555d37c80 in TimelineTabs::getCurrentTimeline() const (this=0x555558320040)
at /home/bruno/build/kdenlive.bsantos/src/timeline2/view/timelinetabs.cpp:73
#2 0x000055555578b029 in MainWindow::getCurrentTimeline() const (this=0x555556c85e20) at /home/bruno/build/kdenlive.bsantos/src/mainwindow.cpp:3908
#3 0x000055555572844b in Core::invalidateItem(std::pair<ObjectType, int>) (this=0x555556aaafa0, itemId={...})
at /home/bruno/build/kdenlive.bsantos/src/core.cpp:694
#4 0x000055555587c0b8 in AssetParameterModel::setParameter(QString const&, int, bool) (this=0x555564796ee8, name=..., value=7244, update=true)
at /home/bruno/build/kdenlive.bsantos/src/assets/model/assetparametermodel.cpp:197
#5 0x0000555555a89079 in EffectStackModel::<lambda()>::operator()(void) const (__closure=0x55555d101ae0)
at /home/bruno/build/kdenlive.bsantos/src/effects/effectstack/model/effectstackmodel.cpp:614
#6 0x0000555555a94708 in std::_Function_handler<bool(), EffectStackModel::adjustStackLength(bool, int, int, int, int, int, Fun&, Fun&, bool)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/7/bits/std_function.h:302
#7 0x00005555557bc33e in std::function<bool ()>::operator()() const (this=0x7fffffffcbb0) at /usr/include/c++/7/bits/std_function.h:706
#8 0x0000555555a8a15f in EffectStackModel::adjustStackLength(bool, int, int, int, int, int, std::function<bool ()>&, std::function<bool ()>&, bool) (this=0x555563f3e750, adjustFromEnd=true, oldIn=0, oldDuration=7399, newIn=0, duration=7244, offset=0, undo=..., redo=..., logUndo=true)
at /home/bruno/build/kdenlive.bsantos/src/effects/effectstack/model/effectstackmodel.cpp:617
#9 0x0000555555ce51e6 in TrackModel::requestClipDeletion(int, bool, bool, std::function<bool ()>&, std::function<bool ()>&, bool, bool) (this=0x555563ff3b10, clipId=92, updateView=true, finalMove=true, undo=..., redo=..., groupMove=false, finalDeletion=true)
at /home/bruno/build/kdenlive.bsantos/src/timeline2/model/trackmodel.cpp:369
#10 0x0000555555c21770 in TimelineModel::requestClipDeletion(int, std::function<bool ()>&, std::function<bool ()>&) (this=0x55555ad17fc0, clipId=92, undo=..., redo=...) at /home/bruno/build/kdenlive.bsantos/src/timeline2/model/timelinemodel.cpp:1171
#11 0x0000555555c20da8 in TimelineModel::requestItemDeletion(int, std::function<bool ()>&, std::function<bool ()>&) (this=0x55555ad17fc0, itemId=92, undo=..., redo=...) at /home/bruno/build/kdenlive.bsantos/src/timeline2/model/timelinemodel.cpp:1133
#12 0x000055555595794e in ProjectClip::selfSoftDelete(std::function<bool ()>&, std::function<bool ()>&) (this=0x55555d151c60, undo=..., redo=...)
at /home/bruno/build/kdenlive.bsantos/src/bin/projectclip.cpp:1410
#13 0x000055555596c2a7 in ProjectItemModel::requestBinClipDeletion(std::shared_ptr<AbstractProjectItem> const&, std::function<bool ()>&, std::function<bool ()>&) (this=0x555556ca5c40, clip=std::shared_ptr<AbstractProjectItem> (use count 4, weak count 2) = {...}, undo=..., redo=...)
at /home/bruno/build/kdenlive.bsantos/src/bin/projectitemmodel.cpp:567
#14 0x000055555596adbc in ProjectItemModel::clean() (this=0x555556ca5c40) at /home/bruno/build/kdenlive.bsantos/src/bin/projectitemmodel.cpp:482
#15 0x00005555558fa2c8 in Bin::~Bin() (this=0x555556d41e00, __in_chrg=<optimized out>) at /home/bruno/build/kdenlive.bsantos/src/bin/bin.cpp:1166
#16 0x00005555558fa3e0 in Bin::~Bin() (this=0x555556d41e00, __in_chrg=<optimized out>) at /home/bruno/build/kdenlive.bsantos/src/bin/bin.cpp:1167
#17 0x00007fffef8c45fb in QObjectPrivate::deleteChildren() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff18ef296 in QWidget::~QWidget() () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff19cbf49 in QDockWidget::~QDockWidget() () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fffef8c45fb in QObjectPrivate::deleteChildren() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ffff18ef296 in QWidget::~QWidget() () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007ffff7197a7d in KMainWindow::~KMainWindow() () at /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
---Type <return> to continue, or q <return> to quit---
#23 0x0000555555768a67 in MainWindow::~MainWindow() (this=0x555556c85e20, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
at /home/bruno/build/kdenlive.bsantos/src/mainwindow.cpp:793
#24 0x0000555555768ab2 in MainWindow::~MainWindow() (this=0x555556c85e20, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
at /home/bruno/build/kdenlive.bsantos/src/mainwindow.cpp:812
#25 0x00007fffef8c7eb5 in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007ffff18f3a03 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007ffff1a00bd0 in QMainWindow::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007ffff7199e41 in KMainWindow::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#29 0x00007ffff71db0d7 in KXmlGuiWindow::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#30 0x00007ffff18b28bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007ffff18b9ac0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007fffef894db8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007fffef897a31 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007fffef89cdc9 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00005555557143a1 in main(int, char**) (argc=1, argv=0x7fffffffdbe8) at /home/bruno/build/kdenlive.bsantos/src/main.cpp:242
Edited by Bruno Santos