python中的opencv videocapture多线程分段错误

时间:2018-06-19 13:07:09

标签: python multithreading opencv gdb

我正在使用RTSP链接通过VideoCapture从摄像机拍摄帧。为不同的RTSP链接运行多个线程,以从不同的源获取帧。我遇到此错误,gdb输出为:

#0  0x00007fff00000007 in ?? ()
#1  0x00007fffd2eefd2e in av_buffer_unref () from /usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54
#2  0x00007fffd37dbb13 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec-ffmpeg.so.56
#3  0x00007fffd37ea24a in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec-ffmpeg.so.56
#4  0x00007fffd3a47eb2 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec-ffmpeg.so.56
#5  0x00007fffd3b21f5a in avcodec_decode_video2 () from /usr/lib/x86_64-linux-gnu/libavcodec-ffmpeg.so.56
#6  0x00007fffed70ebaf in CvCapture_FFMPEG::grabFrame() [clone .part.4] () from /usr/local/lib/libopencv_videoio.so.3.4
#7  0x00007fffed70ed98 in cvGrabFrame_FFMPEG () from /usr/local/lib/libopencv_videoio.so.3.4
#8  0x00007fffed70d983 in CvCapture_FFMPEG_proxy::grabFrame() () from /usr/local/lib/libopencv_videoio.so.3.4
#9  0x00007fffed6eddc6 in cvGrabFrame () from /usr/local/lib/libopencv_videoio.so.3.4
#10 0x00007fffed6edf79 in cv::VideoCapture::read(cv::_OutputArray const&) () from /usr/local/lib/libopencv_videoio.so.3.4
#11 0x00007ffff4efc638 in pyopencv_cv_VideoCapture_read(_object*, _object*, _object*) () from /usr/local/lib/python2.7/dist-packages/cv2.so
#12 0x00000000004bc3fa in PyEval_EvalFrameEx ()
#13 0x00000000004b9ab6 in PyEval_EvalCodeEx ()
#14 0x00000000004d55f3 in ?? ()
#15 0x00000000004a577e in PyObject_Call ()
#16 0x00000000004bed3d in PyEval_EvalFrameEx ()
#17 0x00000000004c136f in PyEval_EvalFrameEx ()
#18 0x00000000004c136f in PyEval_EvalFrameEx ()
#19 0x00000000004b9ab6 in PyEval_EvalCodeEx ()
#20 0x00000000004d54b9 in ?? ()
#21 0x00000000004eebee in ?? ()
#22 0x00000000004a577e in PyObject_Call ()
#23 0x00000000004c5e10 in PyEval_CallObjectWithKeywords ()
#24 0x0000000000589172 in ?? ()
#25 0x00007ffff7bc16ba in start_thread (arg=0x7ffe897fa700) at pthread_create.c:333
#26 0x00007ffff78f741d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

我尝试查找我认为的错误代码,但找不到任何信息。

0 个答案:

没有答案