Author Topic: [2.7.1, 2.7.2] Segfault loading a video  (Read 903 times)

janis

  • Newbie
  • *
  • Posts: 2
[2.7.1, 2.7.2] Segfault loading a video
« 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.

Code: [Select]
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]

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 4063
Re: [2.7.1, 2.7.2] Segfault loading a video
« Reply #1 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).

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 4063
Re: [2.7.1, 2.7.2] Segfault loading a video
« Reply #2 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.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 4063
Re: [2.7.1, 2.7.2] Segfault loading a video
« Reply #3 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.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 4063
Re: [2.7.1, 2.7.2] Segfault loading a video
« Reply #4 on: March 27, 2019, 01:05:38 AM »
Should be fixed now. Thank you for your report.