danroblewis / kicad-eurorack-tools

9 stars 0 forks source link

Plugin Crashes KiCad trying to generate panel #2

Open alexander-daniel opened 4 months ago

alexander-daniel commented 4 months ago

Hello! thank you for this awesome looking eurorack plugin. Stoked to get it working!

Whenever I try to run the Panel plugin through, I get a full crash.

KiCad version 8.0.2-1 Release Build, MacOS Intel Chip

Here is some of the error message (But I'm not even sure it's your code that is ultimately the culprit)


Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes:       0x0000000000000001, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11

I tried to copy paste the source into the python scripting terminal to see if it would spit out anythting useful, but it crashed hard there too.

Oddly enough, the front panel generator works no problem!

Thank you again!

danroblewis commented 4 months ago

I haven't touched this code in a while, and haven't tested it in 8.0.2 at all. I'm surprised you got it this far!

danroblewis commented 4 months ago

Aha. There's a bug here that I never fixed.

https://github.com/danroblewis/kicad-eurorack-tools/blob/master/plugin/draw_panel.py#L28

The function that draws autofill zones assumes a net exists called GND.

If you add the GND symbol from the power symbol library and connect it to the ground of your circuit, then re-load the symbols into pcbnew, it might work.

It will crash if no parts are present or no GND net exists.