Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: odin on March 03, 2018, 09:00:06 PM

Title: Solved: 2.7 crash report : Assert failed :0 at line 305, file ADM_segment.cpp
Post by: odin on March 03, 2018, 09:00:06 PM
How to reproduce:

Open file: MPEG-TS H.264 maybe open-gop (https://drive.google.com/uc?export=download&id=1fNi3g2oA6lNilyDt689Kpoc_vxToNNKYFg)

Set A-marker at I-Frame: 2.013

Set B-marker at (I-Frame -1): 2.633

Hit delete

=> Dialog Box: Cut points not on I-Frame
Click on "No".

Press Curser Right Arrow
=> Crash:

Assert failed :0 at line 305, file ADM_segment.cpp
ADM_setCrashHook  [libADM_core6.dll]
ADM_setCrashHook  [libADM_core6.dll]
ADM_backTrack  [libADM_core6.dll]
ADM_EditorSegment::getSegment(int)  [avidemux.exe]
ADM_Composer::nextPicture(ADMImage*, bool)  [avidemux.exe]
admPreview::nextPicture()  [avidemux.exe]
HandleAction_Navigate(Action)  [avidemux.exe]
HandleAction(Action)  [avidemux.exe]
MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)  [avidemux.exe]
QMetaObject::activate(QObject*, int, int, void**)  [Qt5Core.dll]
MainWindow::actionSignal(Action)  [avidemux.exe]
MainWindow::searchGoMenu(QAction*)  [avidemux.exe]
MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)  [avidemux.exe]
QMetaObject::activate(QObject*, int, int, void**)  [Qt5Core.dll]
QMenu::showTearOffMenu()  [Qt5Widgets.dll]
QMenu::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)  [Qt5Widgets.dll]
QMetaObject::activate(QObject*, int, int, void**)  [Qt5Core.dll]
QAction::activate(QAction::ActionEvent)  [Qt5Widgets.dll]
QAction::event(QEvent*)  [Qt5Widgets.dll]
QApplicationPrivate::notify_helper(QObject*, QEvent*)  [Qt5Widgets.dll]
QApplication::notify(QObject*, QEvent*)  [Qt5Widgets.dll]
QCoreApplication::notifyInternal2(QObject*, QEvent*)  [Qt5Core.dll]
QShortcutMap::dispatchEvent(QKeyEvent*)  [Qt5Gui.dll]
QShortcutMap::tryShortcut(QKeyEvent*)  [Qt5Gui.dll]
QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short)  [Qt5Gui.dll]
QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*)  [Qt5Gui.dll]
QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)  [Qt5Gui.dll]
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)  [Qt5Gui.dll]
QEventDispatcherWin32Private::sendTimerEvent(int)  [Qt5Core.dll]
CallWindowProcW  [USER32.dll]
DispatchMessageW  [USER32.dll]
QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)  [Qt5Core.dll]
qt_plugin_instance  [qwindows.dll]
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)  [Qt5Core.dll]
QCoreApplication::exec()  [Qt5Core.dll]
UI_RunApp()  [avidemux.exe]
startAvidemux(int, char**)  [avidemux.exe]
SDL_main  [avidemux.exe]
ms2timedisplay(unsigned int)  [avidemux.exe]
unknown function  [avidemux.exe]
unknown function  [avidemux.exe]
BaseThreadInitThunk  [KERNEL32.DLL]
RtlUserThreadStart  [ntdll.dll]



My system:
- Win. 10 64 bit,
- avidemux latest beta 2.7.0 (180222)
Title: Re: 2.7 crash report : Assert failed :0 at line 305, file ADM_segment.cpp
Post by: eumagga0x2a on March 04, 2018, 09:31:21 PM
Should be fixed by [editor/checkCutIsOnIntra] Restore the values of _currentSegment and lastSentFrame to avoid _currentSegment going out of bounds after undo, which may result in a crash (https://github.com/mean00/avidemux2/commit/0691e61bb01f4921cc814c7994376f701f513715), thank you for your report.