PCB editor in kicad-nightly crashes on shoving tracks
Description
kicad-nightly installed on Fedora 33 from rpm crashes when shoving tracks. It usually happens when the required displacement becomes more complicated, even when there is only one track. Screen capture showing the crash on an example project, and the project are attached. The crash produces the following error message on the console:
$ kicad-nightly
/usr/include/c++/10/bits/stl_vector.h:1145: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::back() [with _Tp = VECTOR2<int>; _Alloc = std::allocator<VECTOR2<int> >; std::vector<_Tp, _Alloc>::reference = VECTOR2<int>&]: Assertion '__builtin_expect(!this->empty(), true)' failed.
/usr/bin/kicad-nightly: line 5: 2719078 Aborted (core dumped) /usr/lib/kicad-nightly/bin/kicad "$@"
Steps to reproduce
- Open the attached MWE project
- Try to route a track between any of the pins of the connectors.
KiCad Version
Application: KiCad
Version: 5.99.0-1.20210811gitab3564f.fc33, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.71.1 OpenSSL/1.1.1k-fips zlib/1.2.11 brotli/1.0.9 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.0) libssh/0.9.5/openssl/zlib nghttp2/1.43.0
Platform: Linux 5.13.4-100.fc33.x86_64 x86_64, 64 bit, Little endian, wxGTK, , x11
Build Info:
Date: Aug 11 2021 17:23:49
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.73.0
OCC: 7.5.0
Curl: 7.71.1
ngspice: 33
Compiler: GCC 10.3.1 with C++ ABI 1014
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Information about installation package:
$ rpm -qi kicad-nightly
Name : kicad-nightly
Version : 5.99.0
Release : 1.20210811gitab3564f.fc33
Architecture: x86_64
Install Date: Wed Aug 11 21:14:33 2021
Group : Unspecified
Size : 385069509
License : GPLv3+
Signature : RSA/SHA1, Wed Aug 11 15:48:16 2021, Key ID 13a8a6344c710964
Source RPM : kicad-nightly-5.99.0-1.20210811gitab3564f.fc33.src.rpm
Build Date : Wed Aug 11 13:09:33 2021
Build Host : ip-172-30-3-147.ec2.internal
Vendor : Fedora Copr - group @kicad
URL : https://kicad.org/
Summary : EDA software suite for creation of schematic diagrams and PCBs
Description :
KiCad is an open-source electronic design automation software suite for the
creation of electronic schematic diagrams and printed circuit board artwork.
This package provides a nightly development build of KiCad as well as the
drawing sheets, project templates, schematic symbols and PCB footprints which
are part of the official KiCad libraries. It can be installed in parallel to the
stable release package. Nightly builds are untested, might be affected by
serious bugs and/or produce files that are incompatible with the latest stable
release. This can potentially lead to a corruption or even loss of data. Always
take a backup of your files before opening them with the applications from this
package.
Edited by Jacek Radzikowski