eeschema crash open Edit Spice model (linux specific)

Bug #1853161 reported by Martin Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
Undecided
jean-pierre charras

Bug Description

When I open the "Edit Spice Model" Dialog it appeas and crash.

Application: KiCad
Version: (5.99.0-398-g0717cedd3), debug build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.52.1 OpenSSL/1.0.2t zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Platform: Linux 5.3.8-mt x86_64, 64 bit, Little endian, wxGTK
Build Info:
    Build date: Nov 19 2019 10:43:16
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.52.1
    Compiler: GCC 6.3.0 with C++ ABI 1010

Build settings:
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF

gdb kicad
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kicad...done.
(gdb) r
Starting program: /usr/local/bin/kicad
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

(kicad:7107): Gtk-WARNING **: Im Modulpfad »adwaita« konnte keine Themen-Engine gefunden werden,

(kicad:7107): Gtk-WARNING **: Im Modulpfad »adwaita« konnte keine Themen-Engine gefunden werden,
[New Thread 0x7fffe4ce8700 (LWP 7111)]
[New Thread 0x7fffdffff700 (LWP 7112)]
LoadAllLibraries: lib_names:
 dp-cache
[New Thread 0x7fffdcf60700 (LWP 7129)]
[New Thread 0x7fffd67b2700 (LWP 7130)]
[New Thread 0x7fffd5fb1700 (LWP 7131)]
[New Thread 0x7fffd57b0700 (LWP 7132)]
[Thread 0x7fffd5fb1700 (LWP 7131) exited]
[Thread 0x7fffd67b2700 (LWP 7130) exited]
[Thread 0x7fffdcf60700 (LWP 7129) exited]
[Thread 0x7fffd57b0700 (LWP 7132) exited]
ShowQuasiModal: optimal parent: 14SCH_EDIT_FRAME
The program 'kicad' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 33463 error_code 3 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x0000555555b04850 in ?? ()
(gdb) backtrace
#0 0x0000555555b04850 in ?? ()
#1 0x00007ffff6404bfc in wxMBConv::FromWChar(char*, unsigned long, wchar_t const*, unsigned long) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2 0x00007ffff6411998 in wxString::AsChar(wxMBConv const&) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3 0x00007ffff63c5275 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4 0x00007ffff63c6f02 in wxFileName::CreateTempFileName(wxString const&, wxFile*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5 0x00007ffff6398498 in wxTempFile::Open(wxString const&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6 0x00007ffff63993f9 in wxTempFile::wxTempFile(wxString const&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7 0x00007ffff639f1b6 in wxFileConfig::Flush(bool) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8 0x00007ffff639f9fe in wxFileConfig::~wxFileConfig() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#9 0x00007ffff639fa99 in wxFileConfig::~wxFileConfig() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#10 0x000055555568ea8a in std::default_delete<wxConfigBase>::operator() (this=0x555555ae6998 <program+312>, __ptr=0x555555bee860) at /usr/include/c++/6/bits/unique_ptr.h:76
#11 0x000055555568e9dd in std::unique_ptr<wxConfigBase, std::default_delete<wxConfigBase> >::reset (this=0x555555ae6998 <program+312>, __p=0x555555bee860)
    at /usr/include/c++/6/bits/unique_ptr.h:347
#12 0x000055555568e6af in BIN_MOD::End (this=0x555555ae6990 <program+304>) at /home/mthomas/daten/git/kicad/kicad-source-mirror/common/bin_mod.cpp:71
#13 0x000055555565427a in PGM_KICAD::Destroy (this=0x555555ae6860 <program>) at /home/mthomas/daten/git/kicad/kicad-source-mirror/kicad/kicad.cpp:199
#14 0x0000555555655335 in PGM_KICAD::~PGM_KICAD (this=0x555555ae6860 <program>, __in_chrg=<optimized out>) at /home/mthomas/daten/git/kicad/kicad-source-mirror/kicad/pgm_kicad.h:49
#15 0x00007ffff37ab940 in __run_exit_handlers (status=1, listp=0x7ffff3b0f5d8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:83
#16 0x00007ffff37ab99a in __GI_exit (status=<optimized out>) at exit.c:105
#17 0x00007ffff2eda0c4 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#18 0x00007ffff292a23d in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#19 0x00007ffff2927167 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#20 0x00007ffff2927225 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#21 0x00007ffff2927b25 in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#22 0x00007ffff29197e7 in XPending () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#23 0x00007ffff2ecfe2e in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#24 0x00007ffff21aaedd in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffff21ab91b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffff21abd82 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffff325c3b7 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#28 0x00007ffff6c41e65 in wxGUIEventLoop::DoRun() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#29 0x00007ffff638627b in wxEventLoopBase::Run() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#30 0x00007ffff6cc4bcd in wxDialog::ShowModal() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#31 0x00007fffde73f8d8 in DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnEditSpiceModel (this=0x55555bcccc00, event=...)
    at /home/mthomas/daten/git/kicad/kicad-source-mirror/eeschema/dialogs/dialog_edit_component_in_schematic.cpp:290
#32 0x00007ffff634440e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#33 0x00007ffff64c9ea5 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#34 0x00007ffff64ca29d in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#35 0x00007ffff64ca31f in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#36 0x00007ffff64ca3d3 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#37 0x00007ffff64ca435 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#38 0x00007ffff64ca1a7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#39 0x00007ffff6cb77d7 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#40 0x00007ffff2c34f75 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#41 0x00007ffff2c47053 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#42 0x00007ffff2c4fbdc in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#43 0x00007ffff2c4ffbf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#44 0x00007ffff31ba0c5 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#45 0x00007ffff2c34f75 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#46 0x00007ffff2c4695c in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#47 0x00007ffff2c4fbdc in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#48 0x00007ffff2c4ffbf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#49 0x00007ffff31b9029 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#50 0x00007ffff325e7bc in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#51 0x00007ffff2c34f75 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#52 0x00007ffff2c4737d in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#53 0x00007ffff2c4f67f in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#54 0x00007ffff2c4ffbf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#55 0x00007ffff33768ac in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#56 0x00007ffff325cf84 in gtk_propagate_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#57 0x00007ffff325d33b in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#58 0x00007ffff2ed2cbc in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#59 0x00007ffff21ab7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007ffff21aba60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007ffff21abd82 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007ffff325c3b7 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#63 0x00007ffff6c41e65 in wxGUIEventLoop::DoRun() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#64 0x00007ffff638627b in wxEventLoopBase::Run() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#65 0x00007fffdeb38da9 in DIALOG_SHIM::ShowQuasiModal (this=0x55555bcccc00) at /home/mthomas/daten/git/kicad/kicad-source-mirror/common/dialog_shim.cpp:390
#66 0x00007fffdea2acd0 in SCH_EDIT_TOOL::Properties (this=0x555559db4890, aEvent=...) at /home/mthomas/daten/git/kicad/kicad-source-mirror/eeschema/tools/sch_edit_tool.cpp:1194
#67 0x00007fffdea30a04 in std::__invoke_impl<int, int (SCH_EDIT_TOOL::* const&)(TOOL_EVENT const&), SCH_EDIT_TOOL*&, TOOL_EVENT const&> (__f=
    @0x555559e707d0: (int (SCH_EDIT_TOOL::*)(SCH_EDIT_TOOL * const, const TOOL_EVENT &)) 0x7fffdea2abec <SCH_EDIT_TOOL::Properties(TOOL_EVENT const&)>,
    __t=@0x555559e707e0: 0x555559db4890, __args#0=...) at /usr/include/c++/6/functional:227
#68 0x00007fffdea30855 in std::__invoke<int (SCH_EDIT_TOOL::* const&)(TOOL_EVENT const&), SCH_EDIT_TOOL*&, TOOL_EVENT const&> (__fn=
    @0x555559e707d0: (int (SCH_EDIT_TOOL::*)(SCH_EDIT_TOOL * const, const TOOL_EVENT &)) 0x7fffdea2abec <SCH_EDIT_TOOL::Properties(TOOL_EVENT const&)>,
    __args#0=@0x555559e707e0: 0x555559db4890, __args#1=...) at /usr/include/c++/6/functional:251
#69 0x00007fffdea3067f in std::_Mem_fn_base<int (SCH_EDIT_TOOL::*)(TOOL_EVENT const&), true>::operator()<SCH_EDIT_TOOL*&, TOOL_EVENT const&> (this=0x555559e707d0,
    __args#0=@0x555559e707e0: 0x555559db4890, __args#1=...) at /usr/include/c++/6/functional:604
#70 0x00007fffdea30409 in std::_Bind<std::_Mem_fn<int (SCH_EDIT_TOOL::*)(TOOL_EVENT const&)> (SCH_EDIT_TOOL*, std::_Placeholder<1>)>::__call<int, TOOL_EVENT const&, 0ul, 1ul>(std::tuple<TOOL_EVENT const&>&&, std::_Index_tuple<0ul, 1ul>) (this=0x555559e707d0, __args=<unknown type in /usr/local/bin/_eeschema.kiface, CU 0x2ed707c, DIE 0x2f3b85c>)
    at /usr/include/c++/6/functional:934
#71 0x00007fffdea30135 in std::_Bind<std::_Mem_fn<int (SCH_EDIT_TOOL::*)(TOOL_EVENT const&)> (SCH_EDIT_TOOL*, std::_Placeholder<1>)>::operator()<TOOL_EVENT const&, int>(TOOL_EVENT const&)
    (this=0x555559e707d0, __args#0=...) at /usr/include/c++/6/functional:993
#72 0x00007fffdea2ff2e in std::_Function_handler<int (TOOL_EVENT const&), std::_Bind<std::_Mem_fn<int (SCH_EDIT_TOOL::*)(TOOL_EVENT const&)> (SCH_EDIT_TOOL*, std::_Placeholder<1>)> >::_M_invoke(std::_Any_data const&, TOOL_EVENT const&) (__functor=..., __args#0=...) at /usr/include/c++/6/functional:1717
#73 0x00007fffdec14669 in std::function<int (TOOL_EVENT const&)>::operator()(TOOL_EVENT const&) const (this=0x555555e14c80, __args#0=...) at /usr/include/c++/6/functional:2127
#74 0x00007fffdec1189f in COROUTINE<int, TOOL_EVENT const&>::callerStub (aData=140737488338784) at /home/mthomas/daten/git/kicad/kicad-source-mirror/include/tool/coroutine.h:350
#75 0x000055555576ead1 in make_fcontext ()
#76 0x0000000000000000 in ?? ()

tags: added: eeschema
Revision history for this message
Nick Østergaard (nickoe) wrote :

What exavt platform is this on and did you build yourself?

tags: added: ngspice
Revision history for this message
Martin Thomas (mtlaunchpad) wrote :

I compiled it myself. I used the skirpt from Maciej to get the nspice lib and compiled it from the git source yesterday.

Revision history for this message
Michael Kavanagh (michaelkavanagh) wrote :

Can you provide example files?

Changed in kicad:
status: New → Incomplete
Revision history for this message
Martin Thomas (mtlaunchpad) wrote :

Here is the example

Changed in kicad:
milestone: none → 5.1.6
summary: - eeschema crash open Edit Spice model
+ eeschema crash open Edit Spice model (linux specific)
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision e6346c7408e368e95b25e69a4ed08ad951f4a78d
https://git.launchpad.net/kicad/patch/?id=e6346c7408e368e95b25e69a4ed08ad951f4a78d

Changed in kicad:
status: Incomplete → Fix Committed
assignee: nobody → jean-pierre charras (jp-charras)
tags: added: gtk
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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