Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Capture SegFaults with Karmic/Alpha2

closed
nobody
None
5
2009-08-13
2009-08-09
Anonymous
No

Video capture segfaults wit Karmic/Alpha2, looks like the problem is associated with libv4l if I use straight ioctl (rather than v4l-ioctls) then it works OK.

Simon

Discussion

  • simon wood
    simon wood
    2009-08-12

    Probably/Possibily related to the 'deadspace' define in 'class PixFormat(Structure)' in pyv4l2.py..... should have fixed this properly in the first place.

    Proper definition seems to be somewhat like:
    http://www.gelato.unsw.edu.au/lxr/source/include/linux/videodev2.h#L274

    But has been extended with some extra fields.
    Simon.

     
  • simon wood
    simon wood
    2009-08-12

    Issue is with the way that the buffers are allocated and 'recorded' in the 'self.buffers' list.

    With code at the end of def MapBuffers(self, count):
    --
    print "added buffer", i, start, b.length, b.m.offset
    --

    Old system gives:
    --
    added buffer 0 3059073024 1228800 0
    added buffer 1 3057844224 1228800 1228800
    added buffer 2 3056615424 1228800 2457600
    added buffer 3 3055386624 1228800 3686400
    added buffer 4 3054157824 1228800 4915200
    --

    New system gives:
    --
    added buffer 0 4294967295 16777216 2882400000
    added buffer 1 4294967295 16777216 2882400001
    added buffer 2 4294967295 16777216 2882400002
    added buffer 3 4294967295 16777216 2882400003
    added buffer 4 4294967295 16777216 2882400004
    --

    Still don't know why...

     
  • simon wood
    simon wood
    2009-08-13

    • status: open --> closed
     
  • simon wood
    simon wood
    2009-08-13

    fixed in SVN