Quantcast

Viewer recorder segmentation fault

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Viewer recorder segmentation fault

asheshjain399
This post was updated on .
Hello

Until recently the viewer recorder was working perfectly fine for me. I was using the following command to start recording:
recorder.SendCommand('Start 600 480 30 codec %d timing realtime filename %s\nviewer %s'%(codec,filename,env.GetViewer().GetName()))

Then to get a better quality video I changed 600 -> 1080 and 480 -> 720

With this I get a segmentation fault. However, even after reverting back to (600,480), I still get the seg-fault.

gdb creates the following log:

[viewerrecorder.cpp:228] video filename: openrave.mpg
[viewerrecorder.cpp:721] opening openrave.mpg, w:600 h:480x fps:30.000000, codec: mpeg4
[viewerrecorder.cpp:300] new frame 0
[viewerrecorder.cpp:300] new frame 112957
[viewerrecorder.cpp:356] frame size: 2 -> 1
[viewerrecorder.cpp:327] previous frame repeated 2 times
[viewerrecorder.cpp:300] new frame 51590
[viewerrecorder.cpp:356] frame size: 2 -> 1
[viewerrecorder.cpp:300] new frame 59963
[viewerrecorder.cpp:356] frame size: 2 -> 1

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffa2ce2700 (LWP 12688)]
0x00007fffdd958b59 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53
(gdb) bt -10
#1  0x00007fffdd798484 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53
#2  0x00007fffdd7d71d5 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53
#3  0x00007fffdd87914f in avcodec_default_execute () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53
#4  0x00007fffdd7dc5c8 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53
#5  0x00007fffdd879437 in avcodec_encode_video () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53
#6  0x00007fffde58fb17 in ViewerRecorder::_RecordThread() ()
   from /usr/share/openrave-0.8/plugins/liblogging.so
#7  0x00007fffebe6ece9 in thread_proxy () from /usr/lib/libboost_thread.so.1.46.1
#8  0x00007ffff7bc4e9a in start_thread (arg=0x7fffa2ce2700) at pthread_create.c:308
#9  0x00007ffff699e3fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()
(gdb)

1. Is this error due to some issues with openrave or is it because of libavcodec?

2. If it's because of libavcodec, then why simply changing (600,480) to (1080,720) messed up the libavcodec?

3. Further, even re-installing libavcodec does not help.
--
Ashesh
Loading...