QtQR crashes if any invalid text input in URL mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QR Tools |
Invalid
|
Undecided
|
Ramiro Algozino |
Bug Description
Using 1.4-0~32~
$ qtqr
Traceback (most recent call last):
File "/usr/bin/qtqr", line 556, in qrencode
error = qr.encode()
File "/usr/lib/
self.filename = filename or self.get_tmp_file()
File "/usr/lib/
hashlib.
File "/usr/lib/
return self.__
File "/usr/lib/
raise QR.EncodeError(
qrtools.
Aborted (core dumped)
If an invalid URL is formed, then it should simply avoid outputting a QR code. It should not crash. Please fix this.
Thank you.
Hello,
I can't replicate the error. Opening QtQR, selecting URL from the data type drop down and writing anything on the URLdoesn't trigger any error on my test machine (Ubuntu 18.04).
Are you using the daily PPA version? It's seems that you are, but please double check. If after updating to the latest version you keep having the same issue please make a step by step example so I can try to replicate it.