Crash when changing polygon fill

test_project.zip

Reproduce steps:

  1. Select edge cut lines in the attached project and convert them to polygon.
  2. Edit resulting polygon and change fill to "None", line width to 0.1mm
  3. Press OK -> Crash

GDB backtrace:

Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
SHAPE_POLY_SET::TotalVertices (this=this@entry=0x5555594fb500)
    at /home/quick/src/kicad/source/libs/kimath/src/geometry/shape_poly_set.cpp:2858
2858                c += path.PointCount();
(gdb) bt
#0  SHAPE_POLY_SET::TotalVertices (this=this@entry=0x5555594fb500)
    at /home/quick/src/kicad/source/libs/kimath/src/geometry/shape_poly_set.cpp:2858
#1  0x00007fffab026524 in POLYGON_POINT_EDIT_BEHAVIOR::UpdatePointsFromOutline (aOutline=..., aPoints=...)
    at /home/quick/src/kicad/source/common/tool/point_editor_behavior.cpp:71
#2  0x00007fffaa37ec8d in POLYGON_POINT_EDIT_BEHAVIOR::UpdatePoints (this=<optimized out>, aPoints=<optimized out>)
    at /home/quick/src/kicad/source/include/tool/point_editor_behavior.h:173
#3  0x00007fffaa378cf5 in PCB_POINT_EDITOR::updatePoints (this=0x55555796dce0)
    at /home/quick/src/kicad/source/pcbnew/tools/pcb_point_editor.cpp:2936
#4  0x00007fffaa37a6d9 in PCB_POINT_EDITOR::modifiedSelection (this=<optimized out>, aEvent=<optimized out>)
    at /home/quick/src/kicad/source/pcbnew/tools/pcb_point_editor.cpp:3454
#5  0x00007fffab04d50c in std::function<int(TOOL_EVENT const&)>::operator() (this=0x5555590a7fb8, __args#0=<optimized out>)
    at /usr/include/c++/14/bits/std_function.h:591
#6  COROUTINE<int, TOOL_EVENT const&>::callerStub (aData=<optimized out>)
    at /home/quick/src/kicad/source/include/tool/coroutine.h:513
#7  0x00007fffb27a8fa1 in make_fcontext () at /opt/kicad/bin/_eeschema.kiface
#8  0x00001ce20000e6f0 in ??? ()
#9  0x0100020200000004 in ??? ()
#10 0x00007fffee07da60 in ??? () at /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0
#11 0x000000c020000010 in ??? ()
#12 0x0000000700000274 in ??? ()
#13 0x00001bd600000008 in ??? ()

KiCad Version

Application: KiCad x86_64 on x86_64

Version: 10.0.0-69-ge1a50619db, release build

Libraries:
	wxWidgets 3.2.8 GLX
	FreeType 2.13.3
	HarfBuzz 10.2.0
	FontConfig 2.15.0
	libcurl/8.14.1 OpenSSL/3.5.5 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.2 libssh2/1.11.1 nghttp2/1.64.0 nghttp3/1.8.0 librtmp/2.3 OpenLDAP/2.6.10

Platform: Debian GNU/Linux 13 (trixie), 64 bit, Little endian, wxGTK, X11, wayland, KDE, KDE

Build Info:
	Date: Mar 27 2026 12:38:21
	wxWidgets: 3.2.8 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.83.0
	OCC: 7.8.1
	Curl: 8.14.1
	ngspice: 44.2
	Compiler: GCC 14.2.0 with C++ ABI 1019
	KICAD_IPC_API=ON
	KICAD_USE_PCH=OFF

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