I can reproduce this every time with the latest steps. Here is a full back trace from gdb:
Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000080795252 in KIGFX::VIEW_GROUP::ViewDraw (this=0x1ecb8668,
aLayer=133, aView=0x143352f0)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view_group.cpp:125
125 item->ViewGetLayers( item_layers, item_layers_count );
(gdb) bt
#0 0x0000000080795252 in KIGFX::VIEW_GROUP::ViewDraw (this=0x1ecb8668,
aLayer=133, aView=0x143352f0)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view_group.cpp:125
#1 0x000000008079315b in KIGFX::VIEW::draw (this=0x143352f0, aItem=
0x1ecb8668, aLayer=133, aImmediate=false)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view.cpp:1049
#2 0x0000000080933cf2 in KIGFX::VIEW::drawItem::operator() (this=0x849ccf0,
aItem=0x1ecb8668)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view.cpp:980
#3 0x000000008093bf6d in RTree<KIGFX::VIEW_ITEM*, int, 2, double, 8, 4>::Search<KIGFX::VIEW::drawItem> (this=0x143836d0, a_node=0x14383720,
a_rect=0x849cc40, a_visitor=..., a_foundCount=@0x849cc3c: 0)
at C:/msys64/home/wstambaugh/src/kicad-trunk/include/geometry/rtree.h:499
#4 0x000000008093c03b in RTree<KIGFX::VIEW_ITEM*, int, 2, double, 8, 4>::Search<KIGFX::VIEW::drawItem> (this=0x143836d0, a_min=0x849cca8, a_max=0x849cca0,
a_visitor=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/include/geometry/rtree.h:154
#5 0x000000008092f274 in KIGFX::VIEW_RTREE::Query<KIGFX::VIEW::drawItem> (
this=0x143836d0, aBounds=..., aVisitor=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/include/view/view_rtree.h:98
#6 0x0000000080792fef in KIGFX::VIEW::redrawRect (this=0x143352f0, aRect=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view.cpp:1019
#7 0x00000000807936a2 in KIGFX::VIEW::Redraw (this=0x143352f0)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/view/view.cpp:1163
#8 0x00000000807d8134 in EDA_DRAW_PANEL_GAL::onPaint (this=0x13152640)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/draw_panel_gal.cpp:208
#9 0x000000006a4c2f24 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#10 0x000000006a62cd42 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#11 0x000000006a62d14d in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#12 0x000000006a62d1e2 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#13 0x000000006a62d28d in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#14 0x000000006a62d321 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#15 0x000000006a62de09 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#16 0x000000006a4c513f in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#17 0x00000000807a4d91 in TOOL_MANAGER::ProcessEvent (this=0x1ec94650,
aEvent=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_manager.cpp:786
#18 0x000000008079d31d in CONTEXT_MENU::onMenuEvent (this=0x1edfa110,
aEvent=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/context_menu.cpp:393
#19 0x000000006a4c2f24 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#20 0x000000006a62cd42 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#21 0x000000006a62d14d in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#22 0x000000006a62d1e2 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#23 0x000000006a62d28d in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#24 0x000000006a62d321 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#25 0x000000006a62d05b in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#26 0x0000000008e11f77 in ?? ()
from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#27 0x0000000008ccf065 in ?? ()
from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#28 0x0000000008c5c16a in ?? ()
from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#29 0x0000000008caea70 in ?? ()
from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#30 0x00007ff9ee386d41 in USER32!CallWindowProcW ()
from C:\WINDOWS\System32\user32.dll
#31 0x00007ff9ee386713 in USER32!DispatchMessageW ()
from C:\WINDOWS\System32\user32.dll
#32 0x0000000008c587d1 in ?? ()
from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#33 0x0000000008e60c30 in ?? ()
from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#34 0x000000008089f837 in wxWindowBase::PopupMenu (this=0x13274390,
menu=0x1edfa110, pos=...)
at C:/msys64/mingw64/include/wx-3.0/wx/window.h:1216
#35 0x00000000807a4776 in TOOL_MANAGER::dispatchContextMenu (this=0x1ec94650,
aEvent=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_manager.cpp:704
#36 0x00000000807a5498 in TOOL_MANAGER::processEvent (this=0x1ec94650,
aEvent=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_manager.cpp:931
#37 0x00000000807a4cd6 in TOOL_MANAGER::ProcessEvent (this=0x1ec94650,
aEvent=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_manager.cpp:773
#38 0x00000000807a0000 in TOOL_DISPATCHER::handleMouseButton (
this=0x1ecb7840, aEvent=..., aIndex=1, aMotion=false)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_dispatcher.cpp:241
#39 0x00000000807a048c in TOOL_DISPATCHER::DispatchWxEvent (this=0x1ecb7840,
aEvent=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/tool/tool_dispatcher.cpp:353
#40 0x00000000807d9279 in EDA_DRAW_PANEL_GAL::OnEvent (this=0x13152640,
aEvent=...)
at C:/msys64/home/wstambaugh/src/kicad-trunk/common/draw_panel_gal.cpp:455
#41 0x000000006a4c2f24 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#42 0x000000006a62cd42 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#43 0x000000006a62d14d in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#44 0x000000006a62d1e2 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#45 0x000000006a62d28d in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#46 0x000000006a62d321 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#47 0x000000006a62de09 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#48 0x000000006a4c513f in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#49 0x000000006a4fc5f0 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#50 0x000000006a4fc6d0 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#51 0x000000006a4fc339 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#52 0x000000006a4c68fa in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#53 0x00000000004b2d18 in APP_KICAD::OnRun (this=0x9221a20)
at C:/msys64/home/wstambaugh/src/kicad-trunk/kicad/kicad.cpp:267
#54 0x000000006a547977 in ?? ()
from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#55 0x0000000008b7a24b in ?? ()
from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#56 0x0000000000409ca5 in WinMain (hInstance=0x400000, hPrevInstance=0x0,
nCmdShow=10)
at C:/msys64/home/wstambaugh/src/kicad-trunk/kicad/kicad.cpp:298
#57 0x00000000004df962 in main (flags=<optimized out>,
cmdline=<optimized out>, inst=<optimized out>)
at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18
#58 0x00000000004013a5 in __tmainCRTStartup ()
at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:339
#59 0x00000000004014db in WinMainCRTStartup ()
at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:195
I can reproduce this every time with the latest steps. Here is a full back trace from gdb:
Thread 1 received signal SIGSEGV, Segmentation fault. VIEW_GROUP: :ViewDraw (this=0x1ecb8668, home/wstambaugh /src/kicad- trunk/common/ view/view_ group.cpp: 125 yers( item_layers, item_layers_count ); VIEW_GROUP: :ViewDraw (this=0x1ecb8668, home/wstambaugh /src/kicad- trunk/common/ view/view_ group.cpp: 125 home/wstambaugh /src/kicad- trunk/common/ view/view. cpp:1049 VIEW::drawItem: :operator( ) (this=0x849ccf0, 0x1ecb8668) home/wstambaugh /src/kicad- trunk/common/ view/view. cpp:980 :VIEW_ITEM* , int, 2, double, 8, 4>::Search< KIGFX:: VIEW::drawItem> (this=0x143836d0, a_node=0x14383720, 0x849cc40, a_visitor=..., a_foundCount= @0x849cc3c: 0) home/wstambaugh /src/kicad- trunk/include/ geometry/ rtree.h: 499 :VIEW_ITEM* , int, 2, double, 8, 4>::Search< KIGFX:: VIEW::drawItem> (this=0x143836d0, a_min=0x849cca8, a_max=0x849cca0, home/wstambaugh /src/kicad- trunk/include/ geometry/ rtree.h: 154 VIEW_RTREE: :Query< KIGFX:: VIEW::drawItem> ( 0x143836d0, aBounds=..., aVisitor=...) home/wstambaugh /src/kicad- trunk/include/ view/view_ rtree.h: 98 VIEW::redrawRec t (this=0x143352f0, aRect=...) home/wstambaugh /src/kicad- trunk/common/ view/view. cpp:1019 home/wstambaugh /src/kicad- trunk/common/ view/view. cpp:1163 PANEL_GAL: :onPaint (this=0x13152640) home/wstambaugh /src/kicad- trunk/common/ draw_panel_ gal.cpp: 208 mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll :ProcessEvent (this=0x1ec94650, home/wstambaugh /src/kicad- trunk/common/ tool/tool_ manager. cpp:786 MENU::onMenuEve nt (this=0x1edfa110, home/wstambaugh /src/kicad- trunk/common/ tool/context_ menu.cpp: 393 mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxmsw30u_ core_gcc_ custom. dll mingw64\ bin\wxmsw30u_ core_gcc_ custom. dll mingw64\ bin\wxmsw30u_ core_gcc_ custom. dll mingw64\ bin\wxmsw30u_ core_gcc_ custom. dll CallWindowProcW () System32\ user32. dll DispatchMessage W () System32\ user32. dll mingw64\ bin\wxmsw30u_ core_gcc_ custom. dll mingw64\ bin\wxmsw30u_ core_gcc_ custom. dll :PopupMenu (this=0x13274390, 0x1edfa110, pos=...) mingw64/ include/ wx-3.0/ wx/window. h:1216 :dispatchContex tMenu (this=0x1ec94650, home/wstambaugh /src/kicad- trunk/common/ tool/tool_ manager. cpp:704 :processEvent (this=0x1ec94650, home/wstambaugh /src/kicad- trunk/common/ tool/tool_ manager. cpp:931 :ProcessEvent (this=0x1ec94650, home/wstambaugh /src/kicad- trunk/common/ tool/tool_ manager. cpp:773 ::handleMouseBu tton ( 0x1ecb7840, aEvent=..., aIndex=1, aMotion=false) home/wstambaugh /src/kicad- trunk/common/ tool/tool_ dispatcher. cpp:241 ::DispatchWxEve nt (this=0x1ecb7840, home/wstambaugh /src/kicad- trunk/common/ tool/tool_ dispatcher. cpp:353 PANEL_GAL: :OnEvent (this=0x13152640, home/wstambaugh /src/kicad- trunk/common/ draw_panel_ gal.cpp: 455 mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxbase30u_ gcc_custom. dll home/wstambaugh /src/kicad- trunk/kicad/ kicad.cpp: 267 mingw64\ bin\wxbase30u_ gcc_custom. dll mingw64\ bin\wxmsw30u_ core_gcc_ custom. dll 0x400000, hPrevInstance=0x0, home/wstambaugh /src/kicad- trunk/kicad/ kicad.cpp: 298 <optimized out>, inst=<optimized out>) mingw-w64- crt-git/ src/mingw- w64/mingw- w64-crt/ crt/crt0_ c.c:18 mingw-w64- crt-git/ src/mingw- w64/mingw- w64-crt/ crt/crtexe. c:339 mingw-w64- crt-git/ src/mingw- w64/mingw- w64-crt/ crt/crtexe. c:195
0x0000000080795252 in KIGFX::
aLayer=133, aView=0x143352f0)
at C:/msys64/
125 item->ViewGetLa
(gdb) bt
#0 0x0000000080795252 in KIGFX::
aLayer=133, aView=0x143352f0)
at C:/msys64/
#1 0x000000008079315b in KIGFX::VIEW::draw (this=0x143352f0, aItem=
0x1ecb8668, aLayer=133, aImmediate=false)
at C:/msys64/
#2 0x0000000080933cf2 in KIGFX::
aItem=
at C:/msys64/
#3 0x000000008093bf6d in RTree<KIGFX:
a_rect=
at C:/msys64/
#4 0x000000008093c03b in RTree<KIGFX:
a_visitor=...)
at C:/msys64/
#5 0x000000008092f274 in KIGFX::
this=
at C:/msys64/
#6 0x0000000080792fef in KIGFX::
at C:/msys64/
#7 0x00000000807936a2 in KIGFX::VIEW::Redraw (this=0x143352f0)
at C:/msys64/
#8 0x00000000807d8134 in EDA_DRAW_
at C:/msys64/
#9 0x000000006a4c2f24 in ?? ()
from C:\msys64\
#10 0x000000006a62cd42 in ?? ()
from C:\msys64\
#11 0x000000006a62d14d in ?? ()
from C:\msys64\
#12 0x000000006a62d1e2 in ?? ()
from C:\msys64\
#13 0x000000006a62d28d in ?? ()
from C:\msys64\
#14 0x000000006a62d321 in ?? ()
from C:\msys64\
#15 0x000000006a62de09 in ?? ()
from C:\msys64\
#16 0x000000006a4c513f in ?? ()
from C:\msys64\
#17 0x00000000807a4d91 in TOOL_MANAGER:
aEvent=...)
at C:/msys64/
#18 0x000000008079d31d in CONTEXT_
aEvent=...)
at C:/msys64/
#19 0x000000006a4c2f24 in ?? ()
from C:\msys64\
#20 0x000000006a62cd42 in ?? ()
from C:\msys64\
#21 0x000000006a62d14d in ?? ()
from C:\msys64\
#22 0x000000006a62d1e2 in ?? ()
from C:\msys64\
#23 0x000000006a62d28d in ?? ()
from C:\msys64\
#24 0x000000006a62d321 in ?? ()
from C:\msys64\
#25 0x000000006a62d05b in ?? ()
from C:\msys64\
#26 0x0000000008e11f77 in ?? ()
from C:\msys64\
#27 0x0000000008ccf065 in ?? ()
from C:\msys64\
#28 0x0000000008c5c16a in ?? ()
from C:\msys64\
#29 0x0000000008caea70 in ?? ()
from C:\msys64\
#30 0x00007ff9ee386d41 in USER32!
from C:\WINDOWS\
#31 0x00007ff9ee386713 in USER32!
from C:\WINDOWS\
#32 0x0000000008c587d1 in ?? ()
from C:\msys64\
#33 0x0000000008e60c30 in ?? ()
from C:\msys64\
#34 0x000000008089f837 in wxWindowBase:
menu=
at C:/msys64/
#35 0x00000000807a4776 in TOOL_MANAGER:
aEvent=...)
at C:/msys64/
#36 0x00000000807a5498 in TOOL_MANAGER:
aEvent=...)
at C:/msys64/
#37 0x00000000807a4cd6 in TOOL_MANAGER:
aEvent=...)
at C:/msys64/
#38 0x00000000807a0000 in TOOL_DISPATCHER
this=
at C:/msys64/
#39 0x00000000807a048c in TOOL_DISPATCHER
aEvent=...)
at C:/msys64/
#40 0x00000000807d9279 in EDA_DRAW_
aEvent=...)
at C:/msys64/
#41 0x000000006a4c2f24 in ?? ()
from C:\msys64\
#42 0x000000006a62cd42 in ?? ()
from C:\msys64\
#43 0x000000006a62d14d in ?? ()
from C:\msys64\
#44 0x000000006a62d1e2 in ?? ()
from C:\msys64\
#45 0x000000006a62d28d in ?? ()
from C:\msys64\
#46 0x000000006a62d321 in ?? ()
from C:\msys64\
#47 0x000000006a62de09 in ?? ()
from C:\msys64\
#48 0x000000006a4c513f in ?? ()
from C:\msys64\
#49 0x000000006a4fc5f0 in ?? ()
from C:\msys64\
#50 0x000000006a4fc6d0 in ?? ()
from C:\msys64\
#51 0x000000006a4fc339 in ?? ()
from C:\msys64\
#52 0x000000006a4c68fa in ?? ()
from C:\msys64\
#53 0x00000000004b2d18 in APP_KICAD::OnRun (this=0x9221a20)
at C:/msys64/
#54 0x000000006a547977 in ?? ()
from C:\msys64\
#55 0x0000000008b7a24b in ?? ()
from C:\msys64\
#56 0x0000000000409ca5 in WinMain (hInstance=
nCmdShow=10)
at C:/msys64/
#57 0x00000000004df962 in main (flags=<optimized out>,
cmdline=
at C:/repo/
#58 0x00000000004013a5 in __tmainCRTStartup ()
at C:/repo/
#59 0x00000000004014db in WinMainCRTStartup ()
at C:/repo/