Ask Your Question
0

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/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:
edit retag flag offensive close merge delete

Comments

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
0

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

Stats

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

Seen: 670 times

Last updated: Jun 23 '16