Refreshing plugins before opening Python console at least once results in a crash

Description

Kicad crashes (closes all windows inclusive project manager) upon clicking on button "Show Python scripting console" in board-editor (pcbnew).

This doesn't occur:

  • in the schematic-editor
  • in the board-editor if the python-console was previously opened in the schematic-editor
  • in my last 6.0rc1-version from 2days ago (Version: (6.0.0-rc1-160-g99ec2b18), release build)

Steps to reproduce

  1. start Kicad, open project, open board
  2. click "Python console" button (top toolbar)
  3. --> crash

KiCad Version

Application: KiCad (64-bit)

Version: (6.0.0-rc1-208-g694bea187e), release build

Libraries:
	wxWidgets 3.1.5

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

	wxWidgets: 3.1.5 (wchar_t,wx containers)
	Boost: 1.76.0
	OCC: 7.5.0
	Curl: 7.78.0-DEV
	ngspice: 35
	Compiler: Visual C++ 1929 without C++ ABI

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON
Edited by Jon Evans