Crash on placing track in "hilight collisions" mode.

Description

This issue might be related to #21948 (closed), however, it is not dependent on "allow drc violations" being selected. only "highlight collisions" mode needs to be selected for the pcb editor to crash.

image

Steps to reproduce

  1. open attached pcb file hard_crash_trace_creation_cut_down_4.kicad_pcb
  2. Try routing a track anywhere. you will be able to place the starting point, but upon placing the second point, kicad will freeze and then crash within a couple seconds. I have a 100% crash rate on placing the second point.
  3. ( i have only tested routing top layer within pcb bounds.)

KiCad Version

Application: KiCad x64 on x64

Version: 9.0.5, release build

Libraries:
	wxWidgets 3.2.8
	FreeType 2.13.3
	HarfBuzz 10.2.0
	FontConfig 2.15.0
	libcurl/8.13.0-DEV Schannel zlib/1.3.1

Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Oct  2 2025 13:29:53
	wxWidgets: 3.2.8 (wchar_t,wx containers)
	Boost: 1.88.0
	OCC: 7.9.1
	Curl: 8.13.0-DEV
	ngspice: 45.2
	Compiler: Visual C++ 1944 without C++ ABI
	KICAD_IPC_API=ON

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