Running the 20190703 nightly MacOS build (which I believe has the new ngspice-30 library, although I don't know how to check), simulating the laser_driver or sallen_key demo project causes a hard crash of the entire KiCad application. In particular, pressing "Run/Stop Simulation" causes a segmentation fault in libngspice.0.dylib. Stack trace and version information below.
The other two demo simulation projects (rectifier, pspice) do not crash, and seem to give sensible simulation results.
The most obvious difference between the crashing (laser_driver, sallen_key) and working (rectifier, pspice) projects is that the crashing projects include external spice model libraries (e.g. ad8009.lib in laser_driver) and the working projects use only internal modules. My own projects seem to crash if they include external models, but I haven't systematically tested.
Please let me know if I can provide any additional information.
Running the 20190703 nightly MacOS build (which I believe has the new ngspice-30 library, although I don't know how to check), simulating the laser_driver or sallen_key demo project causes a hard crash of the entire KiCad application. In particular, pressing "Run/Stop Simulation" causes a segmentation fault in libngspice.0.dylib. Stack trace and version information below.
The other two demo simulation projects (rectifier, pspice) do not crash, and seem to give sensible simulation results.
The most obvious difference between the crashing (laser_driver, sallen_key) and working (rectifier, pspice) projects is that the crashing projects include external spice model libraries (e.g. ad8009.lib in laser_driver) and the working projects use only internal modules. My own projects seem to crash if they include external models, but I haven't systematically tested.
Please let me know if I can provide any additional information.
Stack trace:
Crashed Thread: 13
Exception Type: EXC_BAD_ACCESS (SIGSEGV) ADDRESS at 0x00000000000001d0
Exception Codes: KERN_INVALID_
Exception Note: EXC_CORPSE_NOTIFY
...
Thread 13 Crashed: pthread. dylib 0x00007fff71c342eb _pthread_body + 126 pthread. dylib 0x00007fff71c37249 _pthread_start + 66 pthread. dylib 0x00007fff71c3340d thread_start + 13
0 libngspice.0.dylib 0x000000011a962c5d MIFsetup + 109
1 libngspice.0.dylib 0x000000012623f3d6 CKTsetup + 214
2 libngspice.0.dylib 0x00000001262391b1 CKTdoJob + 961
3 libngspice.0.dylib 0x0000000125e48050 if_run + 1296
4 libngspice.0.dylib 0x0000000125e4513e dosim + 894
5 libngspice.0.dylib 0x0000000125e148cb docommand + 299
6 libngspice.0.dylib 0x0000000125e13ece doblock + 126
7 libngspice.0.dylib 0x0000000125e13ca3 cp_evloop + 2547
8 libngspice.0.dylib 0x0000000125e0a531 _thread_run + 65
9 libsystem_
10 libsystem_
11 libsystem_
Version information:
Application: Eeschema 1195-g72308fe16 ), debug build compatible with 2.8)
Version: (5.1.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.6.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (wchar_t,STL containers,
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 9.0.0 with C++ ABI 1002
Build settings: SCRIPTING= ON SCRIPTING_ MODULES= ON SCRIPTING_ PYTHON3= OFF SCRIPTING_ WXPYTHON= ON SCRIPTING_ WXPYTHON_ PHOENIX= OFF SCRIPTING_ ACTION_ MENU=ON GITHUB_ PLUGIN= ON USE_OCE= ON USE_OCC= OFF
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON