← Back to team overview

kicad-developers team mailing list archive

Unchecked condition in eeschema component editor

 

ASSERT INFO:
/home/mrclnz/cvswork/kicad-bzr/eeschema/class_library.cpp(273): assert
"wxAssertFailure" failed in AddComponent(): Cannot add component
<RELAY_BBAA> to library <automation> due to name conflict.

BACKTRACE:
[1] CMP_LIBRARY::AddComponent(LIB_COMPONENT*)
[2] LIB_EDIT_FRAME::SaveOnePartInMemory()
[3] LIB_EDIT_FRAME::Process_Special_Functions(wxCommandEvent&)
[4] wxAppConsole::HandleEvent(wxEvtHandler*, void
(wxEvtHandler::*)(wxEvent&), wxEvent&) cons)
[5] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&)
[6] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[7] wxEvtHandler::ProcessEvent(wxEvent&)
[8] EDA_BASE_FRAME::ProcessEvent(wxEvent&)
[9] wxEvtHandler::ProcessEvent(wxEvent&)
[10] wxWindowBase::TryParent(wxEvent&)
[11] wxEvtHandler::ProcessEvent(wxEvent&)
[12] wxAuiToolBar::OnLeftUp(wxMouseEvent&)
[13] wxAppConsole::HandleEvent(wxEvtHandler*, void
(wxEvtHandler::*)(wxEvent&), wxEvent&) cons)
[14] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&)
[15] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[16] wxEvtHandler::ProcessEvent(wxEvent&)
[17] wxWindow::GTKProcessEvent(wxEvent&) cons)

How to reproduce:
----------------

In the component editor Import a component with a new name *and* an
alias equal to an existing component. Then try to use the 'Update
current component' to save it.

I propose to run the same checks done for the 'Create a new component
from the current one' to components imported; IIRC it handles aliases
conflicts correctly

Workaround:
----------

Remove the offending alias(es) before trying to save it...

-- 
Lorenzo Marcantonio
Logos Srl