Comment 75 for bug 1835296

Revision history for this message
Jonatan Liljedahl (kymatica) wrote :

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-9AF1A61FEF0E 0x00000001226c2000 /Applications/KiCad/kicad.app/Contents/Frameworks/libngspice.0.dylib
[365] E7997DE7-F937-360E-B3C9-0F57E4DCFA0F 0x0000000119eed000 /Applications/ngspice/lib/ngspice/table.cm
[366] 4EEEFD30-725D-3B3F-91A8-D6E8BF12684D 0x00000001199f9000 /Applications/ngspice/lib/ngspice/spice2poly.cm
[367] 75C17E83-BBDA-3FE7-BDA4-353C984BCC17 0x00000001209ba000 /Applications/ngspice/lib/ngspice/digital.cm
[368] 94632E46-0EEF-3B23-BCA0-2EB35A65D09E 0x0000000119ef8000 /Applications/ngspice/lib/ngspice/xtraevt.cm
[369] 7F629F05-FBAF-396E-A268-31FE1D560A74 0x000000011a58c000 /Applications/ngspice/lib/ngspice/xtradev.cm
[370] 4CB2DA9D-4D59-3C85-B321-3955D0265959 0x00000001209d6000 /Applications/ngspice/lib/ngspice/analog.cm

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-9AF1A61FEF0E 0x0000000122ede000 /Applications/KiCad/kicad.app/Contents/Frameworks/libngspice.0.dylib
[365] DDA71EBB-A729-3156-9362-147E658F217B 0x00000001216ef000 /Applications/KiCad/kicad.app/Contents/PlugIns/sim/ngspice/table.cm
[366] 13913E9A-0D12-35A6-BFF5-C8E25824AEFA 0x00000001216fb000 /Applications/KiCad/kicad.app/Contents/PlugIns/sim/ngspice/spice2poly.cm
[367] A98F2D9F-ADB3-330D-906D-C3A65D66C038 0x0000000121701000 /Applications/KiCad/kicad.app/Contents/PlugIns/sim/ngspice/digital.cm
[368] BE45BBAA-4248-3F08-AFBC-47D343251D6E 0x0000000121dc0000 /Applications/KiCad/kicad.app/Contents/PlugIns/sim/ngspice/xtraevt.cm
[369] 2DCF5524-0E84-3DC3-B50D-19A5279488F5 0x0000000121dc9000 /Applications/KiCad/kicad.app/Contents/PlugIns/sim/ngspice/xtradev.cm
[370] 02193AF1-757E-374D-955B-1532737C34C7 0x0000000121dd9000 /Applications/KiCad/kicad.app/Contents/PlugIns/sim/ngspice/analog.cm

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.