I think there is some inverval / "number of steps in decade" which is zero which causes infinity somewhere, or something like that
What about upgrading to ngspice-44.2? I prefer to use distribution version. Adding ac 1 didn't help, still freezes (simple_ngspice_init_getchar: Reference value : inf). Plus i'm not making the netlist user makes the netlist and analyzing it could be difficult circarray [0] = strdup ("* comment"); circarray [1] = strdup ("V1 1 0 1 ac 1"); circarray [2] = strdup ("R1 1 2 1"); circarray [3] = strdup ("C1 2 0 1 ic=0"); circarray [4] = strdup (".ac dec 3 10 20"); // >= 4 works ok circarray [5] = strdup...
What about upgrading to ngspice-44.2? I prefer to use distribution version. Adding ac 1 didn't help, still freezes (simple_ngspice_init_getchar: Reference value : inf). Plus i'm not making the netlist user makes the netlist and analyzing it could be difficult circarray [0] = strdup ("* comment"); circarray [1] = strdup ("V1 1 0 1 ac 1"); circarray [2] = strdup ("R1 1 2 1"); circarray [3] = strdup ("C1 2 0 1 ic=0"); circarray [4] = strdup (".ac dec 3 10 20"); // >= 4 works ok circarray [5] = strdup...
In the attachment is program using shared ngspice library, if AC has parameter N lower than 4 (e.g. 1, 2 or 3) it freezes and runs indefinitely and consumes all memory. In v40 I was using ".ac dec 1 10 20" as a fastest way to get list of all available vectors (I need to know all vectors so that I can show them in dropdown or something) and it worked fine but since upgrade to 42 it freezes. I know the command doesn't make much sense to have 1 point per decade but it should either not freeze or print...
On page 489 of https://ngspice.sourceforge.io/docs/ngspice-42-manual.pdf there is circarray [4] = strdup (". tran 10 u 3 uic "); It should be maybe 10u 3u or something like that
remcirc solved the issue, thanks.
sharedspice - gradual slowdown of ngSpice_Command() despite using destroy all
Documentation says JFET2 supports AFAC parameter but it is not in source code