Decode from webcam with no device attached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QR Tools |
Fix Released
|
Medium
|
Ramiro Algozino |
Bug Description
Hi there,
I tried QtQR on two computers, on both Fedora-FC18 is running.
One computer does have a built-in webcam - no problems here.
The other computer does not have a webcam attached.
If I click on "Decode from webcam", QtQR does not really crash (it's still usable afterwards), but I get an allert of Fedora's "ARBT" every time.
"ARBT" is some kind of automatic bug-reporting tool, which seems to dislike clicking on this specific QtQR-function with no camera attached.
If I start QtQR from console, I can see some error-messages:
Traceback (most recent call last):
File "/usr/bin/qtqr.py", line 637, in decodeWebcam
vdDialog = VideoDevices()
File "/usr/bin/qtqr.py", line 674, in __init__
for vd in self.getVideoDe
File "/usr/bin/qtqr.py", line 703, in getVideoDevices
for dev in os.listdir(
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/dev/v4l/by-id'
Of course no camera can be found on this system - but would it be possible to encance present code of QtQR-app in a way not resulting in an ARBT-alert, anymore?
Thanks!
Related branches
Changed in qr-tools: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Ramiro Algozino (algozino) |
Changed in qr-tools: | |
milestone: | none → 1.4 |
Hello Maxi!
I've added a condition in the webcam detection. Could you please update to the daily PPA in a few hours and test if this is solved?
Thanks in advance!