Holger, have you tried running it without a system-wide ngspice installed?
I just tried installing the ngspice-30.pkg, which installs to /Applications/ngspice/ and now I get no crash! Running it inside lldb shows that it's using the code models from the system-wide ngspice instead of the bundled ones:
And here comes the important part: If I manually replace the code models in /Applications/KiCad/kicad.app/Contents/PlugIns/sim/ngspice/ with the ones that was installed from the ngspice-30.pkg, it works without crashes!
So my conclusion is that the MacOS packaging is breaking those files.
Holger, have you tried running it without a system-wide ngspice installed?
I just tried installing the ngspice-30.pkg, which installs to /Applications/ ngspice/ and now I get no crash! Running it inside lldb shows that it's using the code models from the system-wide ngspice instead of the bundled ones:
[355] 254C4F6B- F42A-3CD1- 99D5-9AF1A61FEF 0E 0x00000001226c2000 /Applications/ KiCad/kicad. app/Contents/ Frameworks/ libngspice. 0.dylib F937-360E- B3C9-0F57E4DCFA 0F 0x0000000119eed000 /Applications/ ngspice/ lib/ngspice/ table.cm 725D-3B3F- 91A8-D6E8BF1268 4D 0x00000001199f9000 /Applications/ ngspice/ lib/ngspice/ spice2poly. cm BBDA-3FE7- BDA4-353C984BCC 17 0x00000001209ba000 /Applications/ ngspice/ lib/ngspice/ digital. cm 0EEF-3B23- BCA0-2EB35A65D0 9E 0x0000000119ef8000 /Applications/ ngspice/ lib/ngspice/ xtraevt. cm FBAF-396E- A268-31FE1D560A 74 0x000000011a58c000 /Applications/ ngspice/ lib/ngspice/ xtradev. cm 4D59-3C85- B321-3955D02659 59 0x00000001209d6000 /Applications/ ngspice/ lib/ngspice/ analog. cm
[365] E7997DE7-
[366] 4EEEFD30-
[367] 75C17E83-
[368] 94632E46-
[369] 7F629F05-
[370] 4CB2DA9D-
If I rename /Applications/ ngspice to /Applications/ ngspice_ old, it crashes. And looking at which images is loaded I get:
[355] 254C4F6B- F42A-3CD1- 99D5-9AF1A61FEF 0E 0x0000000122ede000 /Applications/ KiCad/kicad. app/Contents/ Frameworks/ libngspice. 0.dylib A729-3156- 9362-147E658F21 7B 0x00000001216ef000 /Applications/ KiCad/kicad. app/Contents/ PlugIns/ sim/ngspice/ table.cm 0D12-35A6- BFF5-C8E25824AE FA 0x00000001216fb000 /Applications/ KiCad/kicad. app/Contents/ PlugIns/ sim/ngspice/ spice2poly. cm ADB3-330D- 906D-C3A65D66C0 38 0x0000000121701000 /Applications/ KiCad/kicad. app/Contents/ PlugIns/ sim/ngspice/ digital. cm 4248-3F08- AFBC-47D343251D 6E 0x0000000121dc0000 /Applications/ KiCad/kicad. app/Contents/ PlugIns/ sim/ngspice/ xtraevt. cm 0E84-3DC3- B50D-19A5279488 F5 0x0000000121dc9000 /Applications/ KiCad/kicad. app/Contents/ PlugIns/ sim/ngspice/ xtradev. cm 757E-374D- 955B-1532737C34 C7 0x0000000121dd9000 /Applications/ KiCad/kicad. app/Contents/ PlugIns/ sim/ngspice/ analog. cm
[365] DDA71EBB-
[366] 13913E9A-
[367] A98F2D9F-
[368] BE45BBAA-
[369] 2DCF5524-
[370] 02193AF1-
And here comes the important part: If I manually replace the code models in /Applications/ KiCad/kicad. app/Contents/ PlugIns/ sim/ngspice/ with the ones that was installed from the ngspice-30.pkg, it works without crashes!
So my conclusion is that the MacOS packaging is breaking those files.