teerytko / python-video4linux2

Automatically exported from code.google.com/p/python-video4linux2
0 stars 0 forks source link

crash - expected read buffer, bool found #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Unexplained crash when running with fast machine.

--
ubuntu@ubuntu:~/pyDataMatrixScanner$ ./streamgtk.py  -p MJPG -g -b -l
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "./streamgtk.py", line 108, in run
    self.device.SetupStreaming(5, self.callback)
  File "/home/ubuntu/pyDataMatrixScanner/pyv4l2.py", line 773, in
SetupStreaming
    string_at( self.buffers[b.index][1], self.buffers[b.index][2] )
  File "./streamgtk.py", line 247, in StreamCallback
    if not self.videodevice.StreamCallback(capture, buffer_num, pointer):
  File "./streamgtk.py", line 60, in StreamCallback
    image = capture.CaptureImage(pointer)
  File "/home/ubuntu/pyDataMatrixScanner/pyv4l2.py", line 837, in CaptureImage
    fakefile = StringIO(self.InsertHuffman(buffer))
TypeError: expected read buffer, bool found
--

Original issue reported on code.google.com by mungew...@gmail.com on 26 Mar 2009 at 1:30