KiCad crashes every time I export symbols to a library

KiCad crashes if I either Export symbols to a library or to a new library. It creates the new library OK.
This is Win 10 and KiCad 7.0.9

Does this always happen?
What happens if you do this from another project?

Maybe you can narrow it down to a single symbol. That would be interesting for debugging KiCad.

It is only possible to export all of the Symbols. I can’t take a screen capture of just that dialog/Window but it is in Schematic editor/File/Export/Symbols to Library, or in Schematic editor/File/Export/Symbols to new Library. Both crash the whole KiCad.

Are you working on a local harddrive or is some data accessed with a network/cloud drive?

All local SSD drive with plenty free space

Some unusual characters in the filename/filepath? Length of path-string too long?

Is it possible to share the project?

What happens if you do this with another Project?

Is it a project you can share, so someone else can try it?

If it is related to a specific symbol, you can.

  1. Make a copy of the project.
  2. Delete about half of the schematic.
  3. Export to library.
  4. Iterate, depending on whether it chaches with some other section, or the next half.

This way you can distinguish between 1024 symbols in 10 iterations and it is therefore relatively quickly.

I have removed all but these


I don’t think they crash KiCad. And about the clean up tracks & Vias tool, does it always exit without OK-pushbutton/Messagebox. This project I could share. It is about 7-8Mbytes with symbols.

The project is now at C:\Users\LM10\Documents\KiCad\bugi and symbols at C:\Users\LM10\Documents\KiCad\7.0\symbols

I see that you have a “.”-character in your filepath.
My recommendation is always to stay away from problematic characters, in filenames as well as in the filepath (I know that we are in 2023 and not in 1995, and such things should work, but theory ↔ practice).

After changing a test-project into something with “.” in the filepath I also had a crash with “export symbols”.
Maybe I can create a reproducible example

I made a little test project with standard symbols:
image

Then exported them to a “7.0” library (and updated the links).
After that I re-exported them to a 42.3 library (also updated the links), and I had no problems with this.

image

2023-11-30_asdf_dot_dir.zip (5.3 KB)

My version info:

Application: KiCad x86_64 on x86_64

Version: 7.0.9-7.0.9~ubuntu20.04.1, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.10.1
	HarfBuzz 6.0.0
	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: Nov  8 2023 19:01:27
	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.71.0
	OCC: 7.5.2
	Curl: 7.88.1
	ngspice: 38
	Compiler: GCC 9.4.0 with C++ ABI 1013

Build settings:
	KICAD_SPICE=ON

“C:\Users\LM10\Documents\KiCad\7.0\symbols” is what the KiCad gave me.

I just started another OS in this machine and I have some (other) work to do. I’ll return to this later.

First I have to apologize for the “.”-thing. It was a false assumption and only a coincidence with my choosen test-example.
The real problem must depend on some symbol-characteristics (as paul had guessed).
It would be good if someone could confirm the crash with the following project:
SEQU_BT_21_v6_08_root_1.zip (148.2 KB)

reproduction steps:

  • expand project, open project, open schematic
  • File–>Export–>Symbols To New Library
  • choose “project library”
  • acknowledge the suggested name “library” and save in the project-folder
  • next question-dialog “update all symbol-links to new library?” → YES
  • crash

When opening your project/schematic, the first thing I get is:

And this drawing sheet stuff is unfortunately expected, sheet layout is not a part of the project for some historical reason. After that…

Yes. Confirmed.

2 Likes

Not me then. Not me then.

drawing sheet not found …

So I made the second mistake in one thread. Normally I already include both drawing-sheets (for schematic & board) inside the project-directory. I need more black coffee. Or a break.

confirmed

Thanks. I opened a issue on gitlab: crash with Export symbols to New library (#16229) · Issues · KiCad / KiCad Source Code / kicad · GitLab
I’m a little bit curious whats so special with the remaining 2 symbols in my example-project.

1 Like

I hope they look at the crash with existing library too. Because the KiCad crashes with both.

Edit:
Application: KiCad x64 on x64

Version: 7.0.9, release build

Libraries:
wxWidgets 3.2.3
FreeType 2.12.1
HarfBuzz 8.2.1
FontConfig 2.14.2
libcurl/8.4.0-DEV Schannel zlib/1.3

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

Build Info:
Date: Nov 5 2023 19:26:40
wxWidgets: 3.2.3 (wchar_t,wx containers)
Boost: 1.83.0
OCC: 7.7.1
Curl: 8.4.0-DEV
ngspice: 41
Compiler: Visual C++ 1936 without C++ ABI

Build settings:
KICAD_SPICE=ON

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