Footprint pads randomly disappear

Description

As the title says. Unfortunately, I can't see a pattern here. The pads disappear e.g. when moving footprints, copy-pasting/adding footprints. Sometimes they disappear only at certain zoom levels. Selecting the footprint shows all the pads again, deselecting it makes them disappear again. Closing pcbnew and re-opening the file shows all footprint pads normally.

Perhaps related or duplicate of #4726 (closed)

KiCad Version

Application: Pcbnew
Version: 5.99.0-unknown-r18762-b48a6274, debug build
Libraries:
	wxWidgets 3.0.4
	libcurl/7.66.0 OpenSSL/1.1.1g-fips zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.4/openssl/zlib nghttp2/1.41.0
Platform: Linux 5.6.16-200.fc31.x86_64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
	Build date: Jun 25 2020 17:43:13
	wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.69.0
	OCC: 7.4.0
	Curl: 7.66.0
	Compiler: GCC 9.3.1 with C++ ABI 1013

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