FP Editor and 3D viewer Segmentation fault
Description
Steps to reproduce
- Open FP Editor,
open a footprint in canvas - Open 3D viewer ( alt+3 )
- Switch back to Footprint Editor and select a footprint
Backtrace:
Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x00007fffd24385a2 in std::_Base_bitset<1ul>::_M_getword(unsigned long) const () from /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
(gdb) bt
#0 0x00007fffd24385a2 in std::_Base_bitset<1ul>::_M_getword(unsigned long) const () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#1 0x00007fffd24392a0 in std::bitset<60ul>::_Unchecked_test(unsigned long) const () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#2 0x00007fffd27f0b4d in std::bitset<60ul>::operator[](unsigned long) const () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#3 0x00007fffd2a58874 in BOARD_DESIGN_SETTINGS::IsLayerEnabled(PCB_LAYER_ID) const () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#4 0x00007fffd323688a in BOARD::IsLayerVisible(PCB_LAYER_ID) const () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#5 0x00007fffd30ece09 in BOARD_ADAPTER::GetVisibleLayers() const () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#6 0x00007fffd316b963 in APPEARANCE_CONTROLS_3D::UpdateLayerCtls() () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#7 0x00007fffd30850ee in EDA_3D_VIEWER_FRAME::ReloadRequest() () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#8 0x00007fffd31dafbf in PCB_BASE_FRAME::Update3DView(bool, bool, wxString const*) () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#9 0x00007fffd29c5dd7 in FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(LIB_ID) () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#10 0x00007fffd2c80b50 in FOOTPRINT_TREE_PANE::onComponentSelected(wxCommandEvent&) () at /home/aris-kimi/swdev/kicad/build/release/pcbnew/_pcbnew.kiface
#11 0x00007ffff73e93d1 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/local/lib/libwx_baseu-3.2.so.0
#12 0x00007ffff73e986e in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /usr/local/lib/libwx_baseu-3.2.so.0
#13 0x00007ffff73e9bf4 in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/local/lib/libwx_baseu-3.2.so.0
#14 0x00007ffff73e9c9f in wxEvtHandler::ProcessEventLocally(wxEvent&) () at /usr/local/lib/libwx_baseu-3.2.so.0
#15 0x00007ffff73e9da1 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/local/lib/libwx_baseu-3.2.so.0
#16 0x00007ffff7adafce in wxWindowBase::TryAfter(wxEvent&) () at /usr/local/lib/libwx_gtk3u_core-3.2.so.0
#17 0x00007ffff73eade9 in wxEvtHandler::ProcessPendingEvents() () at /usr/local/lib/libwx_baseu-3.2.so.0
#18 0x00007ffff724708a in wxAppConsoleBase::ProcessPendingEvents() () at /usr/local/lib/libwx_baseu-3.2.so.0
#19 0x00007ffff78749f5 in wxApp::DoIdle() () at /usr/local/lib/libwx_gtk3u_core-3.2.so.0
#20 0x00007ffff7874ac7 in wxapp_idle_callback () at /usr/local/lib/libwx_gtk3u_core-3.2.so.0
#21 0x00007ffff54f504e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff54f5400 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff54f56f3 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007ffff5b6312d in gtk_main () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#25 0x00007ffff7893375 in wxGUIEventLoop::DoRun() () at /usr/local/lib/libwx_gtk3u_core-3.2.so.0
#26 0x00007ffff7285ad1 in wxEventLoopBase::Run() () at /usr/local/lib/libwx_baseu-3.2.so.0
#27 0x00007ffff724874a in wxAppConsoleBase::MainLoop() () at /usr/local/lib/libwx_baseu-3.2.so.0
#28 0x00005555558fe628 in APP_KICAD::OnRun() ()
#29 0x00007ffff72e105a in wxEntry(int&, wchar_t**) () at /usr/local/lib/libwx_baseu-3.2.so.0
#30 0x00005555558fa20b in main ()
KiCad Version
Application: KiCad x86_64 on x86_64
Version: 8.0.0-rc2-203-gad5305f21d, release build
Libraries:
wxWidgets 3.2.3
FreeType 2.10.1
HarfBuzz 2.6.4
FontConfig 2.13.1
Platform: Linux Mint 20.3, 64 bit, Little endian, wxGTK, X11, cinnamon, x11
wxWidgets: 3.2.3 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.2
Curl: 7.68.0
ngspice: 40+
Compiler: GCC 10.5.0 with C++ ABI 1014
Build settings:
KICAD_STDLIB_DEBUG=ON
KICAD_SANITIZE_ADDRESS=OFF
KICAD_SANITIZE_THREADS=OFF
Edited by aris-kimi