Comment 4 for bug 1838593

Revision history for this message
Ramiro Algozino (algozino) wrote : Re: [Bug 1838593] Re: QtQr crashes when clicking "decode from webcam" button

Hello!

Thanks for reaching out, I don't think your problem is related with the original poster. The OP was using a virtual webcam that is currently unsupported.

For your issue on the other hand, I think it might be that your webcam needs some time to be fully available, have you tried waiting some minutes before trying to decide? Have you checked dmesg to see if the webcam is available?

Thanks

Ramiro Algozino
https://algozino.com.ar/
On Jan 12, 2021, 00:35 +0100, Xanatos <email address hidden>, wrote:
> Hello,
>
> Same issue, with laptop with built-in camera on Debian Buster unknown version, my package version is: qtqr 2.0~bzr33-2
> This camera is disabled by default.
> I toggle on before using it with hotkey, then launch qtqr, when I use "decode from webcam", qtqr crash:
>
> Traceback (most recent call last):
> File "/usr/bin/qtqr", line 834, in decodeWebcam
> qr.decode_webcam(device=device)
> File "/usr/lib/python3/dist-packages/qrtools.py", line 240, in decode_webcam
> proc.init(device)
> zbar.UnsupportedError: <zbar.Processor object at 0x7f90a802ae40>
> Abandon
>
> If I retry, it will works the second or third time.
> I patched with a try except this line to prevent crash, I have now the following message, but application continues:
>
> qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 552,
> resource id: 16379793, major code: 40 (TranslateCoords), minor code: 0
>
>
> Regards
>
> --
> You received this bug notification because you are a member of QR Tools
> Team, which is subscribed to QR Tools.
> https://bugs.launchpad.net/bugs/1838593
>
> Title:
> QtQr crashes when clicking "decode from webcam" button
>
> Status in QR Tools:
> Expired
>
> Bug description:
> Just fresh installed Debian 10 on laptop that has a working webcam.
> Then installed QtQr version 1.4~bzr32-1 via apt-get. QtQr works fine
> except when I click on the "decode from webcam" button. Here's what I
> see in the terminal:
>
> $ qtqr
> Traceback (most recent call last):
> File "/usr/bin/qtqr", line 833, in decodeWebcam
> qr.decode_webcam(device=device)
> File "/usr/lib/python2.7/dist-packages/qrtools.py", line 239, in decode_webcam
> proc.init(device)
> zbar.UnsupportedError: WARNING: zbar processor in _zbar_v4l2_probe():
> unsupported request: v4l2 device does not support usable CAPTURE
> Aborted
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qr-tools/+bug/1838593/+subscriptions