Comment 5 for bug 1822678

complex_heirarchy and pic_programmer now open fine but it crashes once you try and navigate into a hierarchal sheet

wxStringIteratorNode::DoSet(wxString const*, std::__1::__wrap_iter<char const*>*, std::__1::__wrap_iter<char*>*) string.h:4276
wxStringIteratorNode::wxStringIteratorNode(wxString const*, std::__1::__wrap_iter<char const*>*) string.h:365
wxStringIteratorNode::wxStringIteratorNode(wxString const*, std::__1::__wrap_iter<char const*>*) string.h:365
wxString::const_iterator::const_iterator(wxString const*, std::__1::__wrap_iter<char const*>) string.h:1010
wxString::const_iterator::const_iterator(wxString const*, std::__1::__wrap_iter<char const*>) string.h:1010
wxString::end() const string.h:1395
wxString::length() const string.h:1434
wxString::Len() const string.h:1491
SCH_FIELD::IsVoid() const sch_field.h:118
KIGFX::SCH_PAINTER::draw(SCH_FIELD*, int) sch_painter.cpp:1192
KIGFX::SCH_PAINTER::draw(SCH_COMPONENT*, int) sch_painter.cpp:1165
KIGFX::SCH_PAINTER::Draw(KIGFX::VIEW_ITEM const*, int) sch_painter.cpp:204
KIGFX::VIEW::updateItemGeometry(KIGFX::VIEW_ITEM*, int) view.cpp:1317
KIGFX::VIEW::invalidateItem(KIGFX::VIEW_ITEM*, int) view.cpp:1247
KIGFX::VIEW::UpdateItems() view.cpp:1435
EDA_DRAW_PANEL_GAL::onPaint(wxPaintEvent&) draw_panel_gal.cpp:182
SCH_DRAW_PANEL::onPaint(wxPaintEvent&) sch_draw_panel.cpp:704
wxEvtHandler::SearchDynamicEventTable(wxEvent&) 0x0000000105f3a9de
wxEvtHandler::ProcessEventLocally(wxEvent&) 0x0000000105f3a75b
wxEvtHandler::ProcessEvent(wxEvent&) 0x0000000105f3a604
wxEvtHandler::ProcessPendingEvents() 0x0000000105f3a1be
wxAppConsoleBase::ProcessPendingEvents() 0x0000000105de2e97
wxCFEventLoop::OSXCommonModeObserverCallBack(__CFRunLoopObserver*, int, void*) 0x0000000105f06372
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 0x00007fff45b71e88
__CFRunLoopDoObservers 0x00007fff45b71dbd
__CFRunLoopRun 0x00007fff45b144d0
CFRunLoopRunSpecific 0x00007fff45b13e0e
RunCurrentEventLoopInMode 0x00007fff44e009db
ReceiveNextEventCommon 0x00007fff44e0061d
_BlockUntilNextEventMatchingListInModeWithFilter 0x00007fff44e004a6
_DPSNextEvent 0x00007fff4319affb
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 0x00007fff43199d93
-[NSApplication run] 0x00007fff43193eb0
wxGUIEventLoop::OSXDoRun() 0x000000010586fedf
wxCFEventLoop::DoRun() 0x0000000105f06cd1
wxEventLoopBase::Run() 0x0000000105e28cc2
wxAppConsoleBase::MainLoop() 0x0000000105de2053
wxApp::OnRun() 0x0000000105802e1a
APP_KICAD::OnRun() kicad.cpp:267
wxEntry(int&, wchar_t**) 0x0000000105e6fe4a
main kicad.cpp:298
start 0x00007fff71f8c3d5
start 0x00007fff71f8c3d5