Skip to content

crash with pns router debug mode (Win?)

Description

Runnning the standard kicad installation produces crash if the logfile writing for pns debug mode is used.

Root cause seems to be that the standard installation directory c:\Program Files\KiCad\8.0\pns.log is not writeable for standard users.

workaround:

  • (tested): run kicad as admin
  • (untested): run kicad with a different cwd

Steps to reproduce

  1. add the "kicad_advanced" file into c:\Users\INSERT_USERNAME\AppData\Roaming\kicad\8.0\kicad_advanced, add entry "EnableRouterDump=1" into the file
  2. run kicad as normal user, installed into c:\Program Files\KiCad\8.0\
  3. open attached project, open board:PNS_router_drc_violation_01.zip
  4. activate route command (right toolbar), click onto pad4 of IC501 to start routing
  5. the first track segment is drawn --> press "0" to activate the pns-logging function
  6. save-dialog appears (picture), click "OK"
  7. crash

crash_pns_debug

KiCad Version

Application: KiCad PCB Editor x64 on x64

Version: 8.0.0-rc2-392-g08b02f2a1a, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.12.1
	HarfBuzz 8.3.0
	FontConfig 2.14.2

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.2.4 (wchar_t,wx containers)
	Boost: 1.83.0
	OCC: 7.7.1
	Curl: 8.5.0-DEV
	ngspice: 42
	Compiler: Visual C++ 1936 without C++ ABI

Build settings: