[SOLVED] Crash when trying to add parts

Application: KiCad x64 on x64

Version: 7.0.7, release build

Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13

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

Build Info:
Date: Aug 14 2023 02:42:39
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.7.1
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI

Build settings:
KICAD_SPICE=ON

When opening symbol editor I get an error:
11:52:07 AM: Unhandled exception class: class nanodbc::index_range_error what: index out of range
11:52:07 AM: Error loading editor.
11:52:07 AM: Application failed to load.

The cause of the crash is a piece of my .kicad_dbl file. We use an externel SQL database. This has been working fine but now I added an extra table to the database and added the link to the dbl file. The link looks as follows:


		{
            "name": "Crystals",
            "table": "Crystals",
            "key": "Artikelomschrijving",
            "symbols": "Schematic symbol",
            "footprints": "Footprint",
            "fields": 
			[  
                { "column": "Artikelnummer",            "name": "Artikelnummer",        "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
				{ "column": "Artikelomschrijving",      "name": "Artikelomschrijving",  "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
                { "column": "Part type",                "name": "Part type",            "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
                { "column": "Value",                    "name": "Value",                "visible_on_add": true,     "visible_in_chooser": true,     "show_name": false },
                { "column": "Tolerance",                "name": "Tolerance",            "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
                { "column": "Rating",                   "name": "Rating",               "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
                { "column": "Temperature",              "name": "Temperature",          "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
                { "column": "Mfr",                      "name": "Mfr",                  "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
                { "column": "Mfr code",                 "name": "Mfr code",             "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
				{ "column": "Datasheet",                "name": "Datasheet",            "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false },
                { "column": "Date added",               "name": "Date added",           "visible_on_add": false,    "visible_in_chooser": true,     "show_name": false }
            ],
            "properties": 
			{
                "description": "Beschrijving",    "exclude_from_bom": "No BOM",   "exclude_from_board": "No PCB"
            }
        },

So now i wonder, what causes these crashes? when I remove this text from the dbl, kicad runs fine. This behavior also causes me to not be able to add parts to a schematic. When I open the Symbol Editor a second time the editor loads but only loads the parts in the tables before the crystal table. The Crystals table only contains one part. Other tables contain many but this has not caused any problems.

About a week ago KiCad V7.0.8 was released and it has some 80-odd bug fixes. I recommend you update to that first.

I’ll have a look, thanks for the suggestion!
I’ll report back to u!

If you check the release blog announcement, one of the fixes was for a schematic related database crash

I’m having less problems with the newer version 7.0.8 but still the one part that is in the table will not load.

Artikelnummer Artikelomschrijving Part type Value Tolerance Rating Temperature NRND EOL Mfr Mfr code Datasheet Schematic symbol Footprint Date added
261108 YQS-8M0-HC49US-ABR Quartz\SMD 8.0MHz 50ppm 18pF -40C - +85C Abracon Corporation ABLS2-8.0000MHZ-D4Y-T K:\public\Datasheets\Crystals\Quartz\ABR\ABLS2.pdf DP_CRYSTAL:CRYSTAL DP_Footprint:HC49S-TXC 2023-10-05

This is the record that is in the database. This record is not very different from the other records in the other tables.

Problem is solved!

The cause of the crashes and the empty table was very simple. All my tables are in plural but by accident I created this table as singular so Crystal instead of Crystals…

Thanks for the help!

1 Like

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