Netlist generation - Assertion failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
High
|
Lorenzo Marcantonio |
Bug Description
Trying to generate netlist from schematics editor causes assertion failure:
ASSERT INFO:
/usr/include/
BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, char const*)
[2] wxArgNormalizer
[3] wxArgNormalizer
[4] wxString wxString:
[5] SCH_EDIT_
[6] SCH_EDIT_
[7] NETLIST_
[8] wxAppConsoleBas
[9] wxEvtHandler:
[10] wxEventHashTabl
[11] wxEvtHandler:
[12] wxEvtHandler:
[13] wxWindowBase:
[14] wxEvtHandler:
[15] g_signal_
[16] g_signal_emit
[17] g_signal_
[18] g_signal_emit
[19] g_closure_invoke
[20] g_signal_
[21] g_signal_emit
[22] gtk_propagate_event
[23] gtk_main_do_event
[24] g_main_
[25] g_main_loop_run
[26] gtk_main
[27] wxGUIEventLoop:
[28] wxDialog:
[29] SCH_EDIT_
[30] wxAppConsoleBas
[31] wxEvtHandler:
[32] wxEventHashTabl
[33] EDA_BASE_
[34] wxEvtHandler:
[35] wxEvtHandler:
[36] wxWindowBase:
[37] wxAuiToolBar:
[38] wxAppConsoleBas
[39] wxEvtHandler:
[40] wxEventHashTabl
[41] wxEvtHandler:
[42] wxEvtHandler:
[43] wxEvtHandler:
[44] g_closure_invoke
[45] g_signal_
[46] g_signal_emit
[47] gtk_propagate_event
[48] gtk_main_do_event
[49] g_main_
[50] g_main_loop_run
[51] gtk_main
i have attached my project as zipfile. I'm using kicad bzr 4094 compiled with gcc 4.7.2. wxGTK version is 2.9.4.1
Changed in kicad: | |
status: | Fix Committed → Fix Released |
On Sat, Apr 13, 2013 at 08:53:28PM -0000, Pekka Harjamäki wrote:
Tried it, and for me it works... however the only format which plausibly
go wrong in BuildNetListBase is this
activity += wxString::Format( _( " net count = %u" ), t.size( ) );
g_NetObjectslis
From the backtrace it seems that it got an unsigned long from size() and
choke on that... is your system 32 or 64 bits? I hope is 32 because
otherwise I have no explanation...
IIRC STL uses size_t for the size() return values, maybe that's the
difference... you could try replacing the %u with %z; I don't know if wx
supports it. Otherwise try with %lu (but then maybe a cast will be
needed for safely work on the other architecture).
--
Lorenzo Marcantonio
Logos Srl