segfault in eeschema invoking component selection dialog

Bug #1790502 reported by Tomasz Wlostowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Jeff Young

Bug Description

Create an empty schematic, click 'add components'. Baaam!

Application: eeschema
Version: (6.0.0-rc1-dev-447-g0d09128), debug build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.15.0-33-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    Curl: 7.47.0
    Compiler: Clang 6.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=OFF
    KICAD_SCRIPTING_MODULES=OFF
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=OFF
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Thread 1 "eeschema" received signal SIGSEGV, Segmentation fault.
std::vector<std::unique_ptr<FOOTPRINT_INFO, std::default_delete<FOOTPRINT_INFO> >, std::allocator<std::unique_ptr<FOOTPRINT_INFO, std::default_delete<FOOTPRINT_INFO> > > >::size (this=0x10)
    at /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/stl_vector.h:655
655 { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
(gdb) bt
#0 std::vector<std::unique_ptr<FOOTPRINT_INFO, std::default_delete<FOOTPRINT_INFO> >, std::allocator<std::unique_ptr<FOOTPRINT_INFO, std::default_delete<FOOTPRINT_INFO> > > >::size (this=0x10)
    at /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/stl_vector.h:655
#1 0x00007fffe0aff7d9 in FOOTPRINT_LIST::GetCount (this=0x0) at /home/twl/Kicad-dev/kicad-git-master/include/footprint_info.h:217
#2 0x00007fffe0b00e6a in FOOTPRINT_LIST::GetInstance (aKiway=...) at /home/twl/Kicad-dev/kicad-git-master/common/footprint_info.cpp:141
#3 0x00007fffe06ce5ad in DIALOG_CHOOSE_COMPONENT::ConstructRightPanel (this=0x7fffffffba60, aParent=0x1c27c610) at /home/twl/Kicad-dev/kicad-git-master/eeschema/dialogs/dialog_choose_component.cpp:217
#4 0x00007fffe06cd7a7 in DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT (this=0x7fffffffba60, aParent=0x18ec1d0, aTitle=..., aAdapter=..., aDeMorganConvert=1, aAllowFieldEdits=true, aShowFootprints=true,
    aAllowBrowser=true) at /home/twl/Kicad-dev/kicad-git-master/eeschema/dialogs/dialog_choose_component.cpp:120
#5 0x00007fffe08192c2 in SCH_BASE_FRAME::SelectComponentFromLibTree (this=0x18ec1d0, aFilter=0x0, aHistoryList=std::vector of length 0, capacity 0, aAllowBrowser=true, aUnit=1, aConvert=1,
    aShowFootprints=true, aHighlight=0x0, aAllowFields=true) at /home/twl/Kicad-dev/kicad-git-master/eeschema/getpart.cpp:170
#6 0x00007fffe081990e in SCH_EDIT_FRAME::Load_Component (this=0x18ec1d0, aDC=0x7fffffffcd48, aFilter=0x0, aHistoryList=std::vector of length 0, capacity 0, aAllowBrowser=true)
    at /home/twl/Kicad-dev/kicad-git-master/eeschema/getpart.cpp:224
#7 0x00007fffe08935c5 in SCH_EDIT_FRAME::OnLeftClick (this=0x18ec1d0, aDC=0x7fffffffcd48, aPosition=...) at /home/twl/Kicad-dev/kicad-git-master/eeschema/onleftclick.cpp:292
#8 0x00007fffe0ac8ce5 in EDA_DRAW_PANEL::OnMouseEvent (this=0x1923b10, event=...) at /home/twl/Kicad-dev/kicad-git-master/common/draw_panel.cpp:1174
#9 0x00007ffff636f1fe in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#10 0x00007ffff64f56e7 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#11 0x00007ffff64f57db in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#12 0x00007ffff64f5b8b in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#13 0x00007ffff64f5c13 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#14 0x00007ffff64f5c75 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#15 0x00007ffff6ed677b in wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#16 0x00007ffff64f59e7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#17 0x00007ffff6c821cb in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#18 0x00007ffff2f44aec in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#19 0x00007ffff2919fa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff292bfc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff29347f9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007ffff293508f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007ffff305c93c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#24 0x00007ffff2f43284 in gtk_propagate_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#25 0x00007ffff2f4363b in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#26 0x00007ffff2bb7c8c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#27 0x00007ffff1e9b197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffff1e9b3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007ffff1e9b712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007ffff2f42697 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#31 0x00007ffff6c53ed5 in wxGUIEventLoop::DoRun() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#32 0x00007ffff63b1353 in wxEventLoopBase::Run() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#33 0x00007ffff6376666 in wxAppConsoleBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#34 0x00000000004295cf in APP_SINGLE_TOP::OnRun (this=0x78e490) at /home/twl/Kicad-dev/kicad-git-master/common/single_top.cpp:186
#35 0x00007ffff6402f70 in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#36 0x0000000000424be6 in main (argc=1, argv=0x7fffffffdb88) at /home/twl/Kicad-dev/kicad-git-master/common/single_top.cpp:260

Tags: eeschema
Changed in kicad:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Jeff Young (jeyjey) wrote :

Looks like I didn't test with "Show footprints in symbol picker" on. (You can turn it off in preferences as a work-aournd for now....)

Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
Jeff Young (jeyjey)
Changed in kicad:
status: Confirmed → In Progress
tags: added: eeschema
Revision history for this message
Jeff Young (jeyjey) wrote :

I'm going to mark this Fix Committed as the fix has been committed to the only branch the bug existed in.

Changed in kicad:
status: In Progress → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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