V6.99 Nightly - Crash when deleting unused net in Board editor -> Net inspector

Has someone gotten a crash when attempting to remove an unused net in the net inspector of the board editor by using the trashcan button in the dialog box?

If I click trashcan on net 1, 2, 4 or 5 in the screenshot below I get a popup with a question whether I really want to delete the net even if it is in use, but if I want to delete the net 3 GND it highlights net 4 and then in a second or two KiCad crashes completely, all windows including project manager.
Upon restarting KiCad it doesn’t even remember which project I worked on last, and when I open the project again in Board Editor, the last change I did before trying to remove the net, which was changing the net of the mounting hole PEGND1 on the right from GND to Earth protective (#5) is undone.

I’m not sure if this is specific to my project because there is something wrong with it, but I wouldn’t like KiCad to crash just like that anyway…

Application: KiCad Schematic Editor x86_64 on x86_64

Version: 6.99.0-1.20230103gitbaa13b8.fc37, release build

Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.2.0
FontConfig 2.14.1
libcurl/7.85.0 OpenSSL/3.0.5 zlib/1.2.12 brotli/1.0.9 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.3) libssh/0.10.4/openssl/zlib nghttp2/1.51.0

Platform: , 64 bit, Little endian, wxGTK, KDE, wayland

Build Info:
Date: Jan 3 2023 18:17:25
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.78.0
OCC: 7.5.0
Curl: 7.85.0
ngspice: 38
Compiler: GCC 12.2.1 with C++ ABI 1017

Build settings:
KICAD_SPICE=ON

I can reproduce this with:

  1. Extract the project into a new directory.
  2. Delete all the _autosave* files. (or else KiCad attempts some recovery).
  3. Open the Project.
  4. Open PCB Editor.
  5. Klick OK to: “The wxPython library was compiled against wxWidgets 3.0.4 but KiCad is using 3.2.1 Python plugins will not be available”.
  6. PCB Editor / Inspect / Net Inspector.
  7. Select any of the nets!
  8. Click on the garbage bin icon.
  9. KiCad crashes with: “Segmentation fault (core dumped)”

paul@cezanne:~$ kicad-nightly
Segmentation fault (core dumped)

After that I opened one of my own projects and KiCad also crashes when deleting a net.
So I consider this confirmed and worthy of a bug report on Gitlab.

Also, for the next time:
Make your screen shots smaller. Never make them of maximized windows. I have a pretty big monitor with the same resolution as yours, but on a web page the browser still has to fit around it. It’s rarely useful to make screenshots wider than around 1200 pixels.

Application: KiCad x86_64 on x86_64

Version: 6.99.0-unknown-7d1f25fbf1~164~ubuntu20.04.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.10.1
	HarfBuzz 2.6.4
	FontConfig 2.13.1
	libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3

Platform: Linux Mint 20.3, 64 bit, Little endian, wxGTK, xfce, x11

Build Info:
	Date: Jan  3 2023 21:39:21
	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.71.0
	OCC: 7.5.2
	Curl: 7.68.0
	ngspice: 38
	Compiler: GCC 9.4.0 with C++ ABI 1013

Build settings:
	KICAD_USE_EGL=ON
	KICAD_SPICE=ON

If I click yes on the question in the popup for net 1,2,4 and 5, it crashes too.
On 3 it crashes immediately because that net is not in use so it doesn’t ask.
I just didn’t try the other ones before, so I didn’t notice.

It doesn’t have to be my zipped project above either, I get the same if I open a random one (ecc83 v2) of the demo projects in /usr/share/kicad/demos and try to put any random net in the garbage can.

Gitlab issue #13377. Commit 20d7ffd5 by Seth Hillbrand about 13 minutes after the issue was entered in gitlab… Should be testable in tomorrows nightly build.

1 Like

Deleting nets works again in tonights nightly build for f37, so the fix seems to have removed the crash.

Application: KiCad x86_64 on x86_64

Version: 6.99.0-1.20230105git1d9783ed.fc37, release build

Libraries: wxWidgets 3.2.1 FreeType 2.12.1 HarfBuzz 5.2.0 FontConfig 2.14.1 libcurl/7.85.0 OpenSSL/3.0.5 zlib/1.2.12 brotli/1.0.9 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.3) libssh/0.10.4/openssl/zlib nghttp2/1.51.0

Platform: , 64 bit, Little endian, wxGTK, KDE, wayland

Build Info: Date: Jan 5 2023 18:15:19 wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24 Boost: 1.78.0 OCC: 7.5.0 Curl: 7.85.0 ngspice: 38 Compiler: GCC 12.2.1 with C++ ABI 1017

Build settings: KICAD_SPICE=ON

Same for me.
I can now also delete a net with the Net Inspector without KiCad crashing.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.