Ask Your Question

Opencv 3.0 crashing on raspberry pi

asked 2016-06-23 21:36:15 -0600

Hi. I have opencv 3.0 running on raspberry pi. A python server is running with one thread capturing frames continuously.Once a minute another thread captures one frame and a 10 sec video. This is done using the opencv camera.capture splitter port. The program crashes with in a couple of days when doing all 3. After turning off video capture, the program ran for 20+ days and finally crashed with the following stack trace.

Please let me know if there is anything anyone of you can suggest.

Traceback (most recent call last):
  File "/usr/lib/python3.4/", line 920, in _bootstrap_inner
  File "/usr/lib/python3.4/", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/##$#$/^%&%&^%&/^^*&^**^*.py", line 79, in update
    for frame in
  File "/usr/lib/python3/dist-packages/picamera/", line 1864, in captur
  File "/usr/lib/python3/dist-packages/picamera/", line 893, in close
  File "/usr/lib/python3/dist-packages/picamera/", line 871, in stop
  File "/usr/lib/python3/dist-packages/picamera/", line 752, in _stop_capture
    len([e for e in self._encoders.values() if]) == 1):
  File "/usr/lib/python3/dist-packages/picamera/", line 752, in <listcomp>
    len([e for e in self._encoders.values() if]) == 1):
  File "/usr/lib/python3/dist-packages/picamera/", line 804, in active
    return bool(self.encoder and self.output_port[0].is_ena**strong text**bled)
ValueError: NULL pointer access
During handling of the above exception, another exception occurred:
edit retag flag offensive close merge delete


stack trace looks more like a picam error, not like from opencv.

maybe we need to see your code ?

berak gravatar imageberak ( 2016-06-24 00:12:32 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-24 23:45:22 -0600

Doh! on my part. I will reach out to PiCamera forum for help. Thanks for pointing out the obvious.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-06-23 21:35:11 -0600

Seen: 546 times

Last updated: Jun 23 '16