Crash after cutting segment (since commit 4341938)

Started by ajschult, March 12, 2020, 01:16:51 AM

Previous topic - Next topic

ajschult

avidemux crashes if I cut a segment from a video and then try to play the resulting video.  It complains


[getRefVideo] 01:02:57-608  Request for video out of range : 1 / 1


and then


Crash Dump for Crash
Assert failed :0
at line 350, file avidemux2/avidemux/qt4/common/ADM_editor/src/ADM_segment.cpp
ADM_backTrack
ADM_EditorSegment::getRefVideo(int)
ADM_Composer::getFrameIncrement(bool)
ADM_videoFilterBridge::ADM_videoFilterBridge(IEditor*, unsigned long, unsigned long)
createEmptyVideoFilterChain(unsigned long, unsigned long)
GUIPlayback::initialize()
GUI_PlayAvi(bool)
HandleAction(Action)
avidemux3_qt5() [0x4ad905]
QMetaObject::activate(QObject*, int, int, void**)
MainWindow::actionSignal(Action)
MainWindow::searchMenu(QAction*, MenuEntry*, int)
avidemux3_qt5() [0x4adac0]
QMetaObject::activate(QObject*, int, int, void**)
QMenu::triggered(QAction*)
QMetaObject::activate(QObject*, int, int, void**)
QAction::triggered(bool)
QAction::activate(QAction::ActionEvent)
QAction::event(QEvent*)
QApplicationPrivate::notify_helper(QObject*, QEvent*)
QApplication::notify(QObject*, QEvent*)
QCoreApplication::notifyInternal2(QObject*, QEvent*)
QShortcutMap::dispatchEvent(QKeyEvent*)
QShortcutMap::tryShortcut(QKeyEvent*)
QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short)
QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*)
QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)


commit https://github.com/mean00/avidemux2/commit/434193836aaab19238a4851226c9b454f276b38d rewrote ADM_Composer::getFrameIncrement to loop over _segments' internal # of segments, but then ask for the refVideo for each segment.  After cutting a segment from a video, there are 2 segments (nb is 2 in getFrameIncrement), but only 1 video.

eumagga0x2a


ajschult