Comment 96 for bug 1835296

Revision history for this message
Jonatan Liljedahl (kymatica) wrote : Re: [Bug 1835296] Re: simulating laser_driver on macos nightly causes segfault

> > That search path is not complied into ngspice at all. It works for me both
> > inside and outside of Applications, and renamed. I do not have ngspice
> > installed anywhere on my computer, and those downloaded installs work for
> > me where ever I place them. I did not test as standalone or not, but I
> > will test that as well.
>
> This is weird. I tried again running kicad.app from
> "/Applications/KiCad 5.99/" and now it worked as expected. I'm 99%
> sure I did exactly as before. Maybe some other random bug, or some OS
> caching mystery?

Update: now I see the difference. When running via lldb:

lijon-mbp:Applications lijon$ cd KiCad\ 5.99/
lijon-mbp:KiCad 5.99 lijon$ lldb kicad.app
(lldb) target create "kicad.app"
Current executable set to 'kicad.app' (x86_64).
(lldb) run

It does not find the cm files:

Error on line 0 :
a$poly$e.xu1.x1.egnd %vd [ +12v 0 -12v 0 ] %vd ( xu1.x1.99 0 )
a$poly$e.xu1.x1.egnd
MIF-ERROR - unable to find definition of model a$poly$e.xu1.x1.egnd
Warning: Model issue on line 0 :
.model a$poly$e.xu1.x1.egnd spice2poly coef = [ 0 .5 .5 ] ...
Unknown model type spice2poly - ignored
...

Running it like this from the commandline works though:

lijon-mbp:Applications lijon$ cd KiCad\ 5.99/
lijon-mbp:KiCad 5.99 lijon$ open kicad.app

But not like this (can't find cm files):

lijon-mbp:KiCad 5.99 lijon$ cd kicad.app
lijon-mbp:kicad.app lijon$ Contents/MacOS/kicad

Unless I rename the folder to "KiCad" only, then it works:

lijon-mbp:Applications lijon$ cd KiCad
lijon-mbp:KiCad lijon$ cd kicad.app/
lijon-mbp:kicad.app lijon$ Contents/MacOS/kicad

So, there's definitely some room for improvement here.

--
/Jonatan
http://kymatica.com