News:

--

Main Menu

Crash when Saving JPG Image

Started by myersnam, August 04, 2013, 05:39:50 PM

Previous topic - Next topic

myersnam

I am new to Avidemux and have been successful editing video, but when I try to save an image to jpg using the file menu, the application crashes.  I have tried with .mov and with .mp4 formats.  I have tried typing in the .jpg and not typing in the .jpg, but no matter what I do the application crashes.  I would appreciate a reply identifying what I am doing wrong so that I will be able to save a jpg image. 

Thank you in advance for your help. 

mean


ajschult

I see this with current avidemux on linux.  valgrind reports:


==10146== Invalid free() / delete / delete[] / realloc()
==10146==    at 0x4C2B103: operator delete(void*) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==10146==    by 0x724BE37: ADMImage::saveAsJpg(char const*) (ADM_imageSave.cpp:243)
==10146==    by 0x43ECC8: A_saveJpg(char const*) (in /usr/bin/avidemux3_qt4)
==10146==    by 0x4871A2: ADM_QT4_fileSel::GUI_FileSelWrite(char const*, void (*)(char const*)) (in /usr/bin/avidemux3_qt4)
==10146==    by 0x4402FB: HandleAction_Save(Action) (in /usr/bin/avidemux3_qt4)
==10146==    by 0x43CB2A: HandleAction(Action) (in /usr/bin/avidemux3_qt4)
==10146==    by 0x472B07: MainWindow::searchFileMenu(QAction*) (in /usr/bin/avidemux3_qt4)
==10146==    by 0x948CCDB: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.6)
==10146==    by 0x8C19ED1: QMenu::triggered(QAction*) (in /usr/lib64/libQtGui.so.4.8.6)
==10146==    by 0x8C1A127: ??? (in /usr/lib64/libQtGui.so.4.8.6)
==10146==    by 0x8C1EB98: ??? (in /usr/lib64/libQtGui.so.4.8.6)
==10146==    by 0x881F117: QWidget::event(QEvent*) (in /usr/lib64/libQtGui.so.4.8.6)
==10146==  Address 0x59bb540 is 0 bytes inside data symbol "ff_mjpeg_encoder"
==10146==


from reading ffmpeg's code, it seems that codec shouldn't be deleted.

https://github.com/FFmpeg/FFmpeg/blob/b112e25dde39a86befaed7e294facd8d860322da/libavcodec/utils.c#L2904

mean