Ask Your Question

indiangolfer's profile - activity

2016-06-24 23:45:22 -0600 commented question Opencv 3.0 crashing on raspberry pi

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

2016-06-24 00:08:09 -0600 asked a question Opencv 3.0 crashing on raspberry pi

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/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/##$#$/^%&%&^%&/^^*&^**^*.py", line 79, in update
    for frame in self.stream:
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 1864, in captur
e_continuous
    encoder.close()
  File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 893, in close
    self.stop()
  File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 871, in stop
    self.parent._stop_capture(self.camera_port)
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 752, in _stop_capture
    len([e for e in self._encoders.values() if e.active]) == 1):
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 752, in <listcomp>
    len([e for e in self._encoders.values() if e.active]) == 1):
  File "/usr/lib/python3/dist-packages/picamera/encoders.py", 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: