I have version 5.1.6 running on Windows and Ubuntu, generating a footprint of a QR code for the PCB, freezes the program and a few minutes later the crash program.
I have tested on both computers and get the same result, which does not respond and after a few minutes it closes.
I don’t know if it’s a known bug or it’s my problem, does anyone know how to fix it? I tried to create the QR and convert it with the Kicad tool, but it is not recognized by a QR reader. So I found out there was a wizard with kicad, but it doesn’t work for me.
Least I can do is confirm this. Footprint Editor / File / Create Footprint / “2D Barcode QRCode” gets stuck and absorbing 50% of my dual-core CPU when changing the “Contents” string + [Enter].
I killed the Footprint Editor after 4 minutes.
Can anyone else confirm this?
@OP: Do you have a gitlab account for making a bug report?
Application: KiCad
Version: 5.1.6-c6e7f7d~87~ubuntu18.04.1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 5.4.0-42-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.22
Boost: 1.65.1
OpenCASCADE Community Edition: 6.9.1
Curl: 7.58.0
Compiler: GCC 7.5.0 with C++ ABI 1011
I’ve tried both teams. I paste the data from the Windows computer which is the one I use mainly.
I do not have a Gitlab account to be able to report the error, if necessary and someone else happens this error, I can create it, but better if it can be done by someone else who usually works with Gitlab.
Application: KiCad
Version: (5.1.6)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.66.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.2
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.71.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.66.0
Compiler: GCC 9.2.0 with C++ ABI 1013
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON
My python version is: Python 3.7.9 (On Ubuntu I have the version that installed the official repository).
I can paste the computer data with Ubuntu if necessary.
for your Windows box and also for your Ubuntu box, but in Windows Python 3 is not supported, as such you see the following text:
How are you running the script ? Footprint editor->Create footprint?
Seems to me that you are somehow launching the script with Python3 and the script may have a problem with Python3 (judging from @paulvdh 's reproduction of the bug in Linux and @davidsrsb not seeing the bug in Windows either, like me.)
Unfortunatly I don’t know why Python3 may be running your script instead of Python2 or how to reverse it
Python 2 vs Python 3 is a big mess.
I was interested in Python, some 5 years ago, and the python website advised Python V3, but too many libraries and tutorials were only for Python V2 and there did not seem to be much interest moving on from V2 to V3 back then.
But now:
Python V2 is now officially obsolete since 2020-01-01. (finally, that took 8 years too long)
After my previous message, I had to uninstall the testing version as I fail in a finished design. With the stable version solved, I was already afraid of the worst.
By the way remove from the operating system all the versions of python that I had installed and performed a clean installation of Kicad, but with the stable version does not exit the error, it happens as before, it freezes the program until it closes.
Well, a bit of falling into the rabit hole, I was wondering what was the problem with your imported QR code, so I made a test footprint with the text “test1” and try to generate a QR code online with the same text.
I’ve tried those steps just like others in a forum, but I can’t get the QR reader to identify it, in the bitmap converter if it works (tested with an android APP), but adding the footprint doesn’t look the same as the original.
I’m going to try another computer that was pending reinstalling Windows 10 and try installing Kicad.
If it doesn’t work for me, I guess I’ll use Eagle again, which has never given me these problems. Start using kicad thanks to a friend who works with kicad in your company.
I later return feedback on the installation result on the other computer. Thanks!
FYI the feature size seems to be hardcoded to 0.5mm but I can confirm that a a 0.3mm feature size prints on silkscreen well and scans fine on boards produced by one of the cheap Chinese fabs.
The python plugin structure is fairly amenable to a bit of lightweight hacking. This thread is worth a read
I also grafted on a DataMatrix version which makes much smaller codes - 6mm x 6mm are easily possible but the text length is more limited - fine for a serial number of version control ref though.