Skip to content

crash dereferencing ORIGIN_TRANSFORMS when both PCBNew's and FootprintEditor's properties inspectors are open

Description

footprint editor invoked from pcbnew on in-place footprint causes crash when exiting, if you have selected an item in footprint editor

Steps to reproduce

  1. in pcbnew choose a footprint, select, and "Edit Footpint...."
  2. in footprint editor, click on any item (pad, text, etc)
  3. exit footprint editor ctrl-W
  4. pcbnew/kicad crashes

This happened on my real project but also on this trivial testcase (select C1, Edit Footprint.... ,click an item, ctrl-W, crash):

99-kicad-7.0-testcase-jlcpcb-export.zip

Observations:

  • Seems to happen 100% of the time
  • exiting footprint editor without selecting an item does not trigger crash
  • selecting any item in footprint editor is sufficient (I have tried pad, text)
  • un-selecting item before exiting does not prevent crash

KiCad Version

Application: KiCad PCB Editor x86_64 on x86_64

Version: 7.99.0-unknown-77e408a93d~174~ubuntu22.04.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.11.1
	HarfBuzz 2.7.4
	FontConfig 2.13.1

Platform: Linux Mint 21.2, 64 bit, Little endian, wxGTK, X11, cinnamon, x11

	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.2
	Curl: 7.81.0
	ngspice: 40
	Compiler: GCC 11.4.0 with C++ ABI 1016

Build settings: