Segmentation fault in Symbol editor.
Description
Just had a
paul@medion:~$ kicad-nightly
Segmentation fault (core dumped)
a few times in the Symbol Editor.
I can quite reliably trigger it after a few experiments.
- Start KiCad-nightly.
- Open Symbol editor.
- Load the symbol "MumarBus_2x20".
- Edit pin names:
- Press cursor down key twice to get to the next pin name.
- e for edit, and enter new name.
- Repeat steps 5 and 6 a few times.
- At pin 20 I had to press another "down arrow" to get to get to the pin.
- After ending edit of pin 20 the symbol crashes, and takes the rest of KiCad with it.
Changed "aaa", "bbb", "ccc". No problem.
For pin 20, the "Select Item" windows pops up:
I can most often still change the pin name, but the Symbol Editor crashes at the moment I close the "Pin Properties" window.
I also noticed that at the moment the "Select Item" dialog pops up, I can't trigger my screenshot program by hitting the [Print Screen] button. For the screenshot, I had to setup the screenshot program with a 5s delay, and then activate the dialog in KiCad.
The bug triggers reliably for me by editing pin 20 of the "MumarBus_2x20" symbol. mumarbus_backplane_5.99_Bug_copy.zip
I do not know if it's specific to this symbol. I did derive it from a generic connector symbol, and that did not go very "supple", but I can not recall further details.
Additional: If I first move the symbol name and datasheet field, so the "Choose Symbol" dialog does not pop up, then the Rectangle Drawing Properties pops up instead of the Pin Properties, so it may be related to the pin being in the center of the symbol.
KiCad Version
Application: KiCad Symbol Editor
Version: 5.99.0-unknown-daca9d21f2~131~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
Platform: Linux 5.4.0-84-generic x86_64, 64 bit, Little endian, wxGTK, xfce, x11
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCC: 7.3.0
Curl: 7.68.0
ngspice: 31
Compiler: GCC 9.3.0 with C++ ABI 1013
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON