Skip to content

PCB: repeated Find (Ctrl+F) displays footprints which were previously deleted

I'm reporting this from 9.0.3, but it also affects 8.0.8 and 9.99.0-2469-g1a25f07c76. It behaves slightly differently in each KiCad version, I'm going to describe how it behaves in 9.0.3. There are several ways to reproduce it, I first encountered it while replacing some parts in schematic and then updating PCB to reflect those changes. However, there is a simpler way:

  1. Create a blank project and open PCB editor.
  2. Place any footprint.
  3. Use E hotkey to change its Reference Designator, for example to U1.
  4. Press Ctrl+F to open the Find menu and search for "U1" or "u1". It will work as expected.
  5. Delete the footprint.
  6. Repeat step 4.
  7. The footprint suddenly reappears on the editor canvas and its designator is in search results. If you close the Find menu and click somewhere in the canvas, the footprint will disappear.
  8. In some cases, the fooprint won't become visible, but is still in search results. The view will jump to the canvas origin (coordinates 0,0) when you click on the Find Next button.
  9. If you repeat step 4 again, steps 7 or 8 will occur again.

Weird things can happen if you replace some parts in the schematic and then update PCB with "Delete footprint with no symbols" checkbox enabled. If the new parts got the same Reference Designators as deleted parts, Find will cycle through all footprints that ever had the given Designator, even when they don't exist anymore.

Fortunately, the deleted footprints are cleared from memory if you close and reopen the PCB editor.

KiCad Version

Application: KiCad PCB Editor x64 on x64

Version: 9.0.3, release build

Libraries:
	wxWidgets 3.2.8
	FreeType 2.13.3
	HarfBuzz 10.2.0
	FontConfig 2.15.0

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: NVIDIA Corporation, NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2, 4.6.0 NVIDIA 560.94

	wxWidgets: 3.2.8 (wchar_t,wx containers)
	Boost: 1.88.0
	OCC: 7.9.1
	Curl: 8.13.0-DEV
	ngspice: 44
	Compiler: Visual C++ 1942 without C++ ABI
	KICAD_IPC_API=ON

Locale: 
	Lang: en_GB
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)