ERC pin table not initializing and then showing incorrect pin to pin errors

Description

ERC errors on Eeschema

  1. Right after starting the project, when running ERC, single pin nets errors are not reported. Actually, no errors are reported even if the schematic has somme major errors (i.e. single pin nets, missing hierarchical connectors, etc.).:

img1

  1. Open the Edit Schematic Setup and close it back, make no changes to any rules, use the default rules, and then run ERC again. Now you get a bunch of errors, most of them are not legit errors anyways, and the real errors are still not being picked up by the ERC:

img_2

  1. Also, although they are supposed to be Warnings only, they actually display under the Errors setting:

img3

KiCad Version

Application: KiCad
Version: (5.99.0-1831-g46d61cb44), debug build
Libraries:
	wxWidgets 3.0.4
	libcurl/7.64.1 SecureTransport (LibreSSL/2.8.3) zlib/1.2.11 nghttp2/1.39.2
Platform: macOS Catalina Version 10.15.4 (Build 19E287), 64 bit, Little endian, wxMac
Build Info:
	Build date: May 28 2020 06:37:23
	wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
	Boost: 1.72.0
	OCE: 6.9.1
	Curl: 7.54.0
	Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
	KICAD_SCRIPTING=ON
	KICAD_SCRIPTING_MODULES=ON
	KICAD_SCRIPTING_PYTHON3=OFF
	KICAD_SCRIPTING_WXPYTHON=ON
	KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
	KICAD_SCRIPTING_ACTION_MENU=ON
	BUILD_GITHUB_PLUGIN=ON
	KICAD_USE_OCE=ON
	KICAD_SPICE=ON
	KICAD_STDLIB_DEBUG=OFF
	KICAD_STDLIB_LIGHT_DEBUG=OFF
	KICAD_SANITIZE=OFF

Edited by Jon Evans