Footprint Editor: Typing "${" in Textbox Crashes KiCAD
Description
I have discovered a bug that crashes all of KiCAD when attempting to make a new silkscreen only footprint using text variables inside a textbox (wrapped text item). The crash occurs immediately after the characters ${
are typed (in that exact sequence). Typing $
by itself or {
by itself or other characters does not result in a crash. The crash is not limited to the Footprint Editor program -- it takes down pcbnew, eeschema, and the project manager as well.
Steps to Reproduce
- Open Footprint Editor from KiCAD Project Manager
- Create a new footprint
- Click "Add a Wrapped Text Item"
- Draw a textbox outline
- In the text field type
${
and watch everything crash
Note:
- Bug is not limited to new footprints. Typing
${
into an existing textbox in an old footprint will also result in a crash - There is a potential workaround: pasting
${
does not cause a crash and allows you to make a textbox with text variables that behave as expected.
KiCad Version
Application: KiCad x64 on x64
Version: 7.0.6, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Jul 6 2023 04:56:45
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI
Build settings:
KICAD_SPICE=ON