Another length tuner crash
Description
Crash with trace:
[_pcbnew.kiface] NETINFO_ITEM::GetNetCode() const netinfo.h:108
[_pcbnew.kiface] PNS_KICAD_IFACE::createBoardItem(PNS::ITEM *) pns_kicad_iface.cpp:1938
[_pcbnew.kiface] PNS_KICAD_IFACE_GENERATOR::AddItem(PNS::ITEM *) generator_tool_pns_proxy.cpp:60
[_pcbnew.kiface] PNS::ROUTER::CommitRouting(PNS::NODE *) pns_router.cpp:855
[_pcbnew.kiface] PCB_TUNING_PATTERN::resetToBaseline(PNS::ROUTER *, int, PCB_BASE_EDIT_FRAME *, SHAPE_LINE_CHAIN &, bool) pcb_tuning_pattern.cpp:1203
[_pcbnew.kiface] PCB_TUNING_PATTERN::Update(GENERATOR_TOOL *, BOARD *, PCB_BASE_EDIT_FRAME *, BOARD_COMMIT *) pcb_tuning_pattern.cpp:1242
[_pcbnew.kiface] $_2::operator()() const pcb_tuning_pattern.cpp:2092
[_pcbnew.kiface] DRAWING_TOOL::PlaceTuningPattern(const TOOL_EVENT &) pcb_tuning_pattern.cpp:2158
[_pcbnew.kiface] std::__invoke[abi:v160006]<…>(int (DRAWING_TOOL::*&)(const TOOL_EVENT &), DRAWING_TOOL *&, const TOOL_EVENT &) invoke.h:359
[_pcbnew.kiface] std::__apply_functor[abi:v160006]<…>(int (DRAWING_TOOL::*&)(const TOOL_EVENT &), std::tuple<…> &, std::__tuple_indices<…>, std::tuple<…> &&) bind.h:263
[_pcbnew.kiface] std::__bind::operator()[abi:v160006]<…>(const TOOL_EVENT &) bind.h:295
[_pcbnew.kiface] std::__invoke[abi:v160006]<…>(std::__bind<…> &, const TOOL_EVENT &) invoke.h:394
[_pcbnew.kiface] std::__invoke_void_return_wrapper::__call<…>(std::__bind<…> &, const TOOL_EVENT &) invoke.h:478
[_pcbnew.kiface] std::__function::__alloc_func::operator()[abi:v160006](const TOOL_EVENT &) function.h:185
[_pcbnew.kiface] std::__function::__func::operator()(const TOOL_EVENT &) function.h:356
[_pcbnew.kiface] std::__function::__value_func::operator()[abi:v160006](const TOOL_EVENT &) const function.h:510
[_pcbnew.kiface] std::function::operator()(const TOOL_EVENT &) const function.h:1156
[_pcbnew.kiface] COROUTINE::callerStub(long) coroutine.h:507
[_pcbnew.kiface] make_fcontext 0x000000014a13b720
Steps to reproduce
- Attempt to length-tune the diff pair in diffpair.zip
KiCad Version
Application: KiCad PCB Editor arm64 on arm64
Version: 7.99.0-3949-gec7e3c5bd6, debug build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.2
HarfBuzz 8.3.0
FontConfig 2.14.2
Platform: macOS Sonoma Version 14.1.2 (Build 23B92), 64 bit, Little endian, wxMac
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.82.0
OCC: 7.7.2
Curl: 8.4.0
ngspice: 37
Compiler: Clang 15.0.0 with C++ ABI 1002
Build settings:
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE_ADDRESS=OFF
KICAD_SANITIZE_THREADS=OFF