Bug 357797 - 15.13.0: git master a5cd3e6: crashes whenever selecting a video clip in project bin
Summary: 15.13.0: git master a5cd3e6: crashes whenever selecting a video clip in proje...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-10 15:40 UTC by Wegwerf
Modified: 2016-01-10 15:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wegwerf 2016-01-10 15:40:33 UTC
Recent git master is a5cd3e6. Pane setup has both project and clip monitor view, tabbed into same pane. Adding or selecting any video clip causes Kdenlive to crash. Crash is in AudioStreamInfo::channels() called from Monitor::slotOpenClip().

The relevant part of the stack trace is this:

Thread 1 (Thread 0x7f2659db8800 (LWP 30638)):
[KCrash Handler]
#6  0x00000000009011e0 in AudioStreamInfo::channels() const ()
#7  0x00000000009171b3 in Monitor::slotOpenClip(ClipController*, int, int) ()
#8  0x0000000000a7b4c0 in Monitor::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
#9  0x00007f2665d4278a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x0000000000a6244a in Bin::openClip(ClipController*, int, int) ()
#11 0x00000000009db50a in Bin::openProducer(ClipController*) ()
#12 0x00000000009f1c24 in ProjectClip::setCurrent(bool, bool) ()
#13 0x00000000009d706c in Bin::selectProxyModel(QModelIndex const&) ()
#14 0x0000000000a60b0c in Bin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
#15 0x00007f2665d4278a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x0000000000a63c58 in ProjectSortProxyModel::selectModel(QModelIndex const&) ()
#17 0x00000000009fe8d7 in ProjectSortProxyModel::onCurrentRowChanged(QItemSelection const&, QItemSelection const&) ()
#18 0x0000000000a63a8b in ProjectSortProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
#19 0x00007f2665d4278a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f2665cc3247 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f2665cc766c in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f2665cc9ae6 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f26674f2f98 in QTreeViewPrivate::select(QModelIndex const&, QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f26674f35b8 in QTreeView::setSelection(QRect const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f26674b17e0 in QAbstractItemView::mousePressEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f26674f7977 in QTreeView::mousePressEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00000000009ce58c in MyTreeView::mousePressEvent(QMouseEvent*) ()
#28 0x00007f266729b5cf in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f266739576e in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f26674b8a4b in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007f26674f720c in QTreeView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007f2665d11d0c in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f2667258b6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007f266725ec7a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007f2665d11f1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f266725d6f2 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007f26672b2440 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007f26672b478b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f2667258b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x00007f266725e230 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007f2665d11f1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007f26660343c8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#43 0x00007f2666036005 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#44 0x00007f266601b5b8 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#45 0x00007f2659917250 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#46 0x00007f2662319ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f266231a250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f266231a2fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f2665d6927f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#50 0x00007f2665d0f75a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#51 0x00007f2665d172cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#52 0x0000000000a0ecce in main ()

Reproducible: Always

Steps to Reproduce:
1. Start Kdenlive
2. Drag or add any video clip into the project bin. Tested with .mp4/H.264 and .mkv/H.264 material.

Actual Results:  
Kdenlive crashes.

Expected Results:  
No crash.
Comment 1 Jean-Baptiste Mardelle 2016-01-10 15:49:10 UTC
Git commit b18d8666056ba16b5594171cd81f8d0db5f4915e by Jean-Baptiste Mardelle.
Committed on 10/01/2016 at 15:48.
Pushed by mardelle into branch 'master'.

Fix possible crash on bin clip selection

M  +1    -1    src/monitor/monitor.cpp

http://commits.kde.org/kdenlive/b18d8666056ba16b5594171cd81f8d0db5f4915e
Comment 2 Wegwerf 2016-01-10 15:58:38 UTC
Works for me. Thank you very much for the incredible fast bug fix! I'm setting this to resolved fixed.