ofxRPiCameraVideoGrabber icon indicating copy to clipboard operation
ofxRPiCameraVideoGrabber copied to clipboard

Segmentation Fault

Open rc1 opened this issue 9 years ago • 3 comments

I was getting a segmentation fault using the ofxRPiCameraVideoGrabber.

It was happening after videoGrabber.setup( settings ). The seg fault was happening on another thread near immediately (the main thread would go though a varying number of next steps). My settings were as follows:

omxCameraSettings.width = 800;
omxCameraSettings.height = 460;
omxCameraSettings.isUsingTexture = true;
omxCameraSettings.doRecording = false; 
videoGrabber.setup( omxCameraSettings );

In my ofApp::setup I was only loading two images (ofImage::loadImage) before the above code. After trying everything, loading the images after videoGrabber.setup solved the seg fault.

I'm using a Raspberry Pi 2 and of_v0.8.4_linuxarmv7l_release. I tried various memory splits. This was happening with both master and develop branch of ofxRPiCameraVideoGrabber.

Let me know if I can provide any more info. Posting issue incase anyone else comes across it.

Thanks, Ross

rc1 avatar Jul 08 '15 12:07 rc1

Bizarre and still happening. The crash comes from OpenMax

0x7698df88 in OMX_SetupTunnel () from /opt/vc/lib/libopenmaxil.so
(gdb) bt
#0  0x7698df88 in OMX_SetupTunnel () from /opt/vc/lib/libopenmaxil.so
#1  0x7698e840 in ilcs_execute_function_ex () from /opt/vc/lib/libopenmaxil.so
#2  0x00000000 in ?? ()

But as you say - loading the images afterwards works

jvcleave avatar Dec 22 '15 08:12 jvcleave

If it helps, I also had the same problem and was also solved by making "videoGrabber.setup( omxCameraSettings );" execute firstly.

ImanolGo avatar Dec 23 '15 08:12 ImanolGo

hello, I'm using oF 098, execute videoGrabber.setup first, GPU 256Mb on a rpi 3, but I get a segfault too has someone tryed this addon recently?

brucelane avatar May 02 '17 16:05 brucelane