freezes on OSX

Bug #1628879 reported by Jonatan Liljedahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

Testing kicad-20160928-222523.904ae20-c4osx to try out the new simulator, but it freezes every now and then. Force quit required. Not sure exactly what triggers the freeze, seems to happen randomly after a couple of minutes. Once it froze when I tried to save, another while editing the schema, and now by just sitting idle in the background while I was writing this bug report.

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

Some investigations: when running kicad under lldb it does not freeze, but shows a wxWidgets Debug Alert (see attached). Clicking Yes to stop the program does not reveal anything useful in the backtrace, it simply stops in kill called by libwx_osx_cocoau_core-3.0.0.dylib`wxGUIAppTraitsBase::ShowAssertDialog(wxString const&)..

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

Ok, after playing around a bit more I managed to get a freeze while running in lldb. I was trying to start the simulation (which worked fine many times before) after assigning the generic opamp spice model from the simulator demos.

```
* thread #1: tid = 0x1e6956, 0x00007fff98b76f8a libsystem_kernel.dylib`__read_nocancel + 10, stop reason = signal SIGSTOP
  * frame #0: 0x00007fff98b76f8a libsystem_kernel.dylib`__read_nocancel + 10
    frame #1: 0x00007fff9e96c155 libsystem_c.dylib`_sread + 16
    frame #2: 0x00007fff9e96b769 libsystem_c.dylib`__srefill1 + 24
    frame #3: 0x00007fff9e964a60 libsystem_c.dylib`fgets + 106
    frame #4: 0x000000010c5e8beb libngspice.0.dylib`promptreturn + 109
    frame #5: 0x000000010c5e8d5b libngspice.0.dylib`out_send + 237
    frame #6: 0x000000010c5e8e04 libngspice.0.dylib`out_vprintf + 38
    frame #7: 0x000000010c5e8eb4 libngspice.0.dylib`out_printf + 148
    frame #8: 0x000000010c5c29a2 libngspice.0.dylib`inp_dodeck + 1063
    frame #9: 0x000000010c5c210b libngspice.0.dylib`inp_spsource + 4852
    frame #10: 0x000000010c5c3549 libngspice.0.dylib`create_circbyline + 223
    frame #11: 0x000000010c5a9387 libngspice.0.dylib`ngSpice_Circ + 93
    frame #12: 0x000000010be478b8 _eeschema.kiface`NGSPICE::LoadNetlist(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 3032
    frame #13: 0x000000010be257f2 _eeschema.kiface`SIM_PLOT_FRAME::StartSimulation() + 1170
```

doing a continue in lldb it would continue to run again.

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

And another time:

```
* thread #1: tid = 0x1e6956, 0x00007fff98b76f8a libsystem_kernel.dylib`__read_nocancel + 10, stop reason = signal SIGSTOP
  * frame #0: 0x00007fff98b76f8a libsystem_kernel.dylib`__read_nocancel + 10
    frame #1: 0x00007fff9e96c155 libsystem_c.dylib`_sread + 16
    frame #2: 0x00007fff9e96b769 libsystem_c.dylib`__srefill1 + 24
    frame #3: 0x00007fff9e964a60 libsystem_c.dylib`fgets + 106
    frame #4: 0x000000010c5e8beb libngspice.0.dylib`promptreturn + 109
    frame #5: 0x000000010c5e8d5b libngspice.0.dylib`out_send + 237
    frame #6: 0x000000010c5e8e04 libngspice.0.dylib`out_vprintf + 38
    frame #7: 0x000000010c5e8eb4 libngspice.0.dylib`out_printf + 148
    frame #8: 0x000000010c5c29a2 libngspice.0.dylib`inp_dodeck + 1063
    frame #9: 0x000000010c5b6066 libngspice.0.dylib`doblock + 911
    frame #10: 0x000000010c5b59b1 libngspice.0.dylib`cp_evloop + 1972
    frame #11: 0x000000010c5a925b libngspice.0.dylib`runc + 422
    frame #12: 0x000000010c5a908b libngspice.0.dylib`ngSpice_Command + 63
    frame #13: 0x000000010be47f3e _eeschema.kiface`NGSPICE::Command(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 238
    frame #14: 0x000000010be44510 _eeschema.kiface`NGSPICE::Init() + 176
    frame #15: 0x000000010be217c8 _eeschema.kiface`SIM_PLOT_FRAME::SIM_PLOT_FRAME(KIWAY*, wxWindow*) + 1704
    frame #16: 0x000000010be24fc5 _eeschema.kiface`SIM_PLOT_FRAME::SIM_PLOT_FRAME(KIWAY*, wxWindow*) + 37
    frame #17: 0x000000010bc7cb8a _eeschema.kiface`SCH::IFACE::CreateWindow(wxWindow*, int, KIWAY*, int) + 378
    frame #18: 0x00000001000a497d kicad`KIWAY::Player(FRAME_T, bool, KIWAY_PLAYER*) + 541
    frame #19: 0x000000010be19303 _eeschema.kiface`SCH_EDIT_FRAME::OnSimulate(wxCommandEvent&) + 67
```

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

Are there any kicad developers on OSX that might have a look at this? It makes it quite frustrating to test it..

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi Jonatan,

This is much more helpful, thank you. Where have you obtained libngspice library?

tags: added: eeschema osx spice
Revision history for this message
Jonatan Liljedahl (kymatica) wrote :

As far as I can see, it was bundled with KiCad:

(lldb) image list
...
[291] 0E2AFABD-30BD-36D5-969E-8D7A3249A272 0x000000010be78000 /Applications/Kicad/kicad.app/Contents/Frameworks/libngspice.0.dylib
...

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

Seems to be fixed in kicad-20161002-030037.278ee7d-c4osx.dmg

Changed in kicad:
status: New → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.