QtQr crashes after selecting an image file to decode from

Bug #2039361 reported by Benjamin Oppermann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QR Tools
New
Undecided
Unassigned

Bug Description

Reproduce:
1.Click "decode from file"
2. pick a file from file picker and clicken "open"/"choose"/ etc.
3. QtQr crashes:

➜ ~ qtqr
Traceback (most recent call last):
  File "/usr/bin/qtqr", line 676, in decodeFile
    self.showInfo(qr)
  File "/usr/bin/qtqr", line 716, in showInfo
    data = qr.data_decode[dt](qr.data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/qrtools.py", line 114, in <lambda>
    'wifi' : lambda data: re.findall(u"WIFI:S:(.*);T:(.*);P:(.*);[H:]*(.*);", data, re.IGNORECASE)[0],
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

OS: Manjaro Linux 23.0.3
QtQr version: 2.1-5

Tags: crash
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.