Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: janis on March 22, 2019, 10:33:48 PM

Title: [2.7.1, 2.7.2] Segfault loading a video
Post by: janis on March 22, 2019, 10:33:48 PM
I can open it with VLC, xplayer, load in HandBrake fine. ffmpeg converts it fine, too. Avidemux crashes if I load the video (5 GB). On Linux Mint 19.1.

Segfault
at line 0, file ??
ADM_backTrack

MP4Header::open(char const*)
ADM_Composer::addFile(char const*)
A_openVideo(char const*)
MainWindow::openFiles(QList<QUrl>)
MainWindow::eventFilter(QObject*, QEvent*)
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)
QApplicationPrivate::notify_helper(QObject*, QEvent*)
QApplication::notify(QObject*, QEvent*)
QCoreApplication::notifyInternal2(QObject*, QEvent*)
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)

g_main_context_dispatch

g_main_context_iteration
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
QCoreApplication::exec()
UI_RunApp()
startAvidemux(int, char**)
main
__libc_start_main
/tmp/.mount_TJBTFF/usr/bin/avidemux3_portable() [0x44c9f7]

Title: Re: [2.7.1, 2.7.2] Segfault loading a video
Post by: eumagga0x2a on March 22, 2019, 11:47:01 PM
So it crashes in the mp4 demuxer. Could you please post at least the complete output of 2.7.2 to the terminal from startup to the crash? It would be better if you could provide the entire huge file as a sample (if the content is innocuous enough, of course).
Title: Re: [2.7.1, 2.7.2] Segfault loading a video
Post by: eumagga0x2a on March 23, 2019, 04:53:51 PM
Thank you for the info provided via PM, the file triggering the crash has more audio tracks than the demuxer supports. The bug is that Avidemux doesn't handle such cases gracefully yet.
Title: Re: [2.7.1, 2.7.2] Segfault loading a video
Post by: eumagga0x2a on March 23, 2019, 06:17:40 PM
Thank you for the sample, will look into improving how we handle the number of audio tracks in mp4 exceeding max.
Title: Re: [2.7.1, 2.7.2] Segfault loading a video
Post by: eumagga0x2a on March 27, 2019, 01:05:38 AM
Should be fixed (https://github.com/mean00/avidemux2/commit/d4e9479cd9f433a36ba430ba50e8e4fd5094e805) now. Thank you for your report.