Skip to content

Undoing through page resize crashes KiCAD

Description

Upon undo-ing a page resize in eeschema, program immediately freezes unrecoverably. I noticed that following the described steps crashes KiCad on one of my projects (a complex microcontroller board), but not another (a relatively simple breakout board); but a document that is vulnerable to this bug reliably crashes while one that is not will never crash.

Steps to reproduce

  1. Open KiCad project, launch eeschema
  2. Change page size (e.g. from A4 to A3)
  3. Undo page change with Ctrl+Z.

KiCad Version

Application: KiCad x86_64 on x86_64

Version: 7.0.7-7.0.7~ubuntu22.04.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.11.1
	HarfBuzz 6.0.0
	FontConfig 2.13.1
	libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16

Platform: Ubuntu 22.04.3 LTS, 64 bit, Little endian, wxGTK, ubuntu, wayland

Build Info:
	Date: Aug 13 2023 23:14:49
	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.2
	Curl: 7.88.1
	ngspice: 38
	Compiler: GCC 11.4.0 with C++ ABI 1016

Build settings:
	KICAD_SPICE=ON
Edited by Mark Roszko