← Back to team overview

kicad-developers team mailing list archive

Debug assertions from wx

 

I hope these are harmless, however they pop up using the debug build of
wx.

When opening the Dimensions/Pad Mask Clearance:

ASSERT INFO:
./src/common/sizer.cpp(1377): assert "Assert failure" failed in DoInsert(): too many items (13 > 3*4) in grid sizer (maybe you should omit the number of either rows or columns?)

BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, wxString const&)
[2] wxGridSizer::DoInsert(unsigned long, wxSizerItem*)
[3] wxSizer::Add(wxSizerItem*)
[4] wxSizer::Add(wxWindow*, int, int, int, wxObject*)
[5] DIALOG_PADS_MASK_CLEARANCE_BASE::DIALOG_PADS_MASK_CLEARANCE_BASE(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)
[6] DIALOG_PADS_MASK_CLEARANCE::DIALOG_PADS_MASK_CLEARANCE(PCB_EDIT_FRAME*)
[7] PCB_EDIT_FRAME::Process_Config(wxCommandEvent&)


Another one which pops up somewhat often (this is opening the 'Change Module(s) Dialog'

ASSERT INFO:
./src/gtk/textctrl.cpp(846): assert "IsSingleLine()" failed in GetEditable(): shouldn't be called for multiline

BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, char const*)
[2] wxTextCtrl::GetEditable() const
[3] wxTextEntry::SetMaxLength(unsigned long)
[4] DIALOG_EXCHANGE_MODULE_BASE::DIALOG_EXCHANGE_MODULE_BASE(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)
[5] DIALOG_EXCHANGE_MODULE::DIALOG_EXCHANGE_MODULE(PCB_EDIT_FRAME*, MODULE*)
[6] PCB_EDIT_FRAME::InstallExchangeModuleFrame(MODULE*)
[7] DIALOG_MODULE_BOARD_EDITOR::ExchangeModule(wxCommandEvent&)

Shouldn't all the responsible code generated by the form editor? a bug in
formbuilder or simply it's not aware of these rules? no idea

-- 
Lorenzo Marcantonio
Logos Srl