Control: reassign -1 libzbar0 0.10+doc-9+b3 On 09/19/2014 02:09 PM, Antoine Beaupré wrote: > On 2014-09-18 11:43:51, Daniel Kahn Gillmor wrote: >> Gtk-Message: Failed to load module "canberra-gtk-module" >> WARNING: insufficient v4l2 video buffer size: >> vbuf[0].length=0 datalen=e1000 image=640 x 480 BGR3(33524742) >> python: /build/zbar-VLRB7x/zbar-0.10+doc/zbar/convert.c:619: >> convert_rgb_to_yuvp: Assertion `src->datalen >= (src->width * >> src->height * srcfmt->p.rgb.bpp)' failed. >> >> >> To avoid the first note (Gtk-Message), i've also tried doing "apt >> install libcanberra-gtk-module". This does remove the first line of >> output, but the WARNING still happens and the process still aborts. > > It could be for multiple reasons... Do you have a webcam?
yes, i do, and the user in question has access to it. Interestingly, the problem might be further down inside zbar-tools than in monkeysign. i tried accessing it with just zbarcam, and got: 0 dkg@frigg:~$ zbarcam WARNING: insufficient v4l2 video buffer size: vbuf[0].length=0 datalen=e1000 image=640 x 480 BGR3(33524742) zbarcam: /build/zbar-VLRB7x/zbar-0.10+doc/zbar/convert.c:619: convert_rgb_to_yuvp: Assertion `src->datalen >= (src->width * src->height * srcfmt->p.rgb.bpp)' failed. Aborted 134 dkg@frigg:~$ But when i asked zbar to not try to deal with an X11 display, i got: 0 dkg@frigg:~$ zbarcam --nodisplay WARNING: insufficient v4l2 video buffer size: vbuf[0].length=0 datalen=70800 image=640 x 480 YU12(32315559) QR-Code:OPENPGP4FPR:0EE5BE979282D80B9F7540F1CCD2ED94D21739E9 and it continued working (you can see that i scanned a monkeycode above). So i think the problem is in libzbar0 (i hope i've reassigned it appropriately above). I can make a python process abort in the same way, with: import zbar z = zbar.Processor() z.init() z.process_one() print("foo") ## this line is never reached, no exception is raised If i do the same thing from a python shell where $DISPLAY is unset, everything works as expected (though i still get the warning about insufficient v4l2 video buffer size). > It's possible > we don't have proper failure modes for those scenarios with > monkeyscan... > > Is the above output with --debug? It wasn't, but i just tried re-running with --debug, and it produces the same output. --dkg
signature.asc
Description: OpenPGP digital signature