ofxRPiCameraVideoGrabber
ofxRPiCameraVideoGrabber copied to clipboard
Segmentation Fault
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
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
If it helps, I also had the same problem and was also solved by making "videoGrabber.setup( omxCameraSettings );" execute firstly.
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?