KiCad 8.0.0 crash after footprint editor save

KiCad 8.0.0 on Windows 10
After I copied and modified a footprint I was able to save it without an issue for the first time. When I was done with the modification I clicked on save and KiCad crashed as well as explorer.exe. I cannot open the footprint editor since.

Event log from windows in german:
Name der fehlerhaften Anwendung: kicad.exe, Version: 8.0.0.36732, Zeitstempel: 0x65d7fa06
Name des fehlerhaften Moduls: _pcbnew.dll, Version: 8.0.0.36732, Zeitstempel: 0x65d7f9f8
Ausnahmecode: 0xc0000005
Fehleroffset: 0x0000000000a29d0f
ID des fehlerhaften Prozesses: 0x3b0c
Startzeit der fehlerhaften Anwendung: 0x01da6da2e294b9b1
Pfad der fehlerhaften Anwendung: C:\Program Files\KiCad\8.0\bin\kicad.exe
Pfad des fehlerhaften Moduls: C:\Program Files\KiCad\8.0\bin_pcbnew.dll
Berichtskennung: 6df918d1-818d-4507-8eb9-a6976d34a734
Vollständiger Name des fehlerhaften Pakets:
Anwendungs-ID, die relativ zum fehlerhaften Paket ist:

Name der fehlerhaften Anwendung: Explorer.EXE, Version: 10.0.19041.4046, Zeitstempel: 0x7ede0e20
Name des fehlerhaften Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000
Ausnahmecode: 0xc0000005
Fehleroffset: 0x000000001e320fd8
ID des fehlerhaften Prozesses: 0x14b4
Startzeit der fehlerhaften Anwendung: 0x01da6da2799aa773
Pfad der fehlerhaften Anwendung: C:\Windows\Explorer.EXE
Pfad des fehlerhaften Moduls: unknown
Berichtskennung: 673eb206-6bb6-4b05-82c4-ede300e63d7a
Vollständiger Name des fehlerhaften Pakets:
Anwendungs-ID, die relativ zum fehlerhaften Paket ist:

Every new try to open the editor results in this:

Name der fehlerhaften Anwendung: kicad.exe, Version: 8.0.0.36732, Zeitstempel: 0x65d7fa06
Name des fehlerhaften Moduls: _pcbnew.dll, Version: 8.0.0.36732, Zeitstempel: 0x65d7f9f8
Ausnahmecode: 0xc0000005
Fehleroffset: 0x0000000000a29d0f
ID des fehlerhaften Prozesses: 0x15e0
Startzeit der fehlerhaften Anwendung: 0x01da6da7be85ea78
Pfad der fehlerhaften Anwendung: C:\Program Files\KiCad\8.0\bin\kicad.exe
Pfad des fehlerhaften Moduls: C:\Program Files\KiCad\8.0\bin_pcbnew.dll
Berichtskennung: e508be17-4356-46ca-8c51-3dfee7aae043
Vollständiger Name des fehlerhaften Pakets:
Anwendungs-ID, die relativ zum fehlerhaften Paket ist:

My custom lib got corrupted, when I delete it the editor opens just perfectly.
The part of the lib in question is this group in the newly created footprint

(group ""
	(uuid "ea753a68-0a50-42de-a7ac-a624b53f5d5d")
	(members "141f7f6b-e9b4-46a5-af00-3c545a02234e" "1b84f781-d61d-46b7-b0a6-2c977756c0c9"
		"223b1bf5-aeb0-4409-ae26-7a05947090b1" "35de7c74-c0fd-402f-89c6-21e104d392aa"
		"365ed274-ece5-479d-b394-a22ea72d34fa" "453628f5-8107-452b-b066-610a2f22172e"
		"47033c75-f09c-4ea5-aeb3-c219d9891cc7" "471f5328-0b84-4312-8920-badb14fa82a6"
		"51e48ddb-e00e-4fd9-8ad2-48f917be9138" "5d65aa66-ef4c-4c39-9d61-47de6dffabb0"
		"62009989-8103-49af-b226-a7bac174e878" "764b9621-9f48-4ed9-9326-45a78f80bc3d"
		"9413008b-ce2b-4fc0-b486-c605ff4a2d8a" "9671bd96-bff1-43f9-b9b6-fdc331638949"
		"9cf37ab0-58d2-419a-9c76-4836af0b31df" "9fd47c53-29f3-44c5-b3b6-46de432f9e69"
		"a45092dc-c528-4774-bbb2-cba47d308c51" "a9dc0c59-b820-453f-94ad-ca6fe558a198"
		"ba1cd78b-52cc-474e-a7d4-d2d3b3b3be12" "bdad4e4e-7e42-4ba2-94b6-dbc851bfd5b0"
		"c60190ef-51d4-4b2d-9dfd-1feddc4b6791" "ce26a67b-8096-4ac9-9430-883e76869ef9"
		"d0764d62-36f7-4237-9936-fa903b66d4d6" "d10ed321-fe4a-4b2e-8c4a-eae42c56c9ad"
		"d3c22a5e-25ca-4139-8a3d-7550325b6457" "df9fc318-d5dc-4466-ba83-7ae325d43ee4"
	)
)

Anything wrong with this group?

Do you have it, and can you share it?
Knowing both: what have been corrupted, and how the corrupted library crashes KiCad could be beneficial for developers and us.

SW_Toggle_4PDT.kicad_mod (5.2 KB)
If you add the group mentioned above directly below the last pad it crashes.
I copied an existing footprint of a 3 pin switch and copied pads of the footprint, changed the pin numbers and the outlines. For the alignment I grouped everything.

I does not crash for me, but I’m using a Testing version of 8.0 (i.e. 8.0 with the latest fixes implemented after release).
When do you get the crash? When edit the footprint with Footprint editor, or when placing the footprint on the Board?

When I try to open the footprint editor.

I also installed the testing version and it does not crash. Thanks for the hint.
Solved :slight_smile:

1 Like

Great news. Are you sure it was fully reproducible for you on 8.0 release ?
In this case, it would mean one of the commits issued after release, fixed this problem.

1 Like

Yes it crashes with the realease when I try to open the fp editor again in 8.0 release,

Sorry, i could not reproduce the error in the official v8.0.0

I open a random footprint, created a new library and save the footprint in the newly created library
Then import of your part into the new foot print, save, use the new footprint into a test layout —> OK
Select all the THT and group them together, save, insert the footprint into a test layout —> OK
I tried a couple of times but could not make it crash, if I made a mistake let me know and I will try at a later time.


Application: KiCad PCB Editor x64 on x64

Version: 8.0.0, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.12.1
	HarfBuzz 8.3.0
	FontConfig 2.14.2
	libcurl/8.5.0-DEV Schannel zlib/1.3

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

Build Info:
	Date: Feb 23 2024 02:24:15
	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:

Same version.

Application: KiCad x64 on x64
Version: 8.0.0, release build
Libraries:
    wxWidgets 3.2.4
    FreeType 2.12.1
    HarfBuzz 8.3.0
    FontConfig 2.14.2
    libcurl/8.5.0-DEV Schannel zlib/1.3
Platform: Windows 10 (Erzeugungsversion 19045), 64-bit Edition, 64 bit, Little endian, wxMSW
Build Info:
    Date: Feb 23 2024 02:24:15
    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:

It started by crashing on the second save activity. Maybe something is wrong with my installation/lib/etc?
It cannot be reproduced on my side with the testing version so it’s all good.

1 Like

Im facing tha same problem on both of my computers.
After open the footprint Editor the complete KiCad 8.0.1 programm crashes.
It is a Brand New installation.