[Kubuntu 17.10 / PPA daily] QtQr crashes while saving to PNG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qr-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Traceback (most recent call last):
File "/usr/bin/qtqr", line 509, in saveCode
if not fn.toLower(
AttributeError: 'tuple' object has no attribute 'toLower'
Abortado (`core' generado)
While saving a QR code with the following WiFi Network information:
SSID: EXAMPLE_SSID
PASSWORD: 714f15160af9de6
Encryption: WPA/WPA2
Pixel size: 5
Protection level: Minimum/Lowest
Margin size: 6
I have tested with the version of QtQr in Kubuntu repositories and with the latest version from the daily PPA. The same crash is reported.
Additionally, QtQr writes a file every time I introduce a character of any of the fields of the WiFi network (SSID, PASSWORD, encryption). The directory where I launch QtQr from has the following files:
714f15160af9de6
E.png EXAMPLE_S.png EXAMPLE_SS.png EXAMP.png
EXAMPLE_.png EXAMPLE_SSID.png EXAMPL.png EXA.png
I copied and pasted the password string, so maybe that is why it has generated extra files.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: qtqr 1.4~bzr23-1
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CurrentDesktop: KDE
Date: Tue Oct 31 20:21:03 2017
InstallationDate: Installed on 2015-07-31 (823 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
PackageArchitec
SourcePackage: qr-tools
UpgradeStatus: Upgraded to artful on 2017-10-25 (6 days ago)
Facing the same traceback while hitting the button 'Save QRCode' in Ubuntu 17.10 and Ubuntu 18.04 LTS. Attached is a patch, which fixed the issue for me. Because Python is a scripting language, you can apply that patch directly without any recompiling: tuple.patch
sudo patch -p0 <./filename_
The issue was introduced with the change of the Python binding from Qt4 to Qt5. In the head of development (branch: trunk), this issue is fixed already with revision 27 (for Save via saveCode) and 24 (for Open via decodeFile). Although I solved this issue independently thanks to <https:/ /stackoverflow. com/a/37822182>, I aligned the attached patch with the current trunk.
When it comes to your Wi-Fi typing issue, I am able to reproduce that even with the latest tool QtQR (revision 28) and latest library qr-tools (revision 29). Therefore, I opened a new bug report at <https:/ /bugs.launchpad .net/qr- tools/+ bug/1761713>.