Still crashes on commit c8a6878eb8de4d9b135b70ef4773b8a9f3c4af4c. P.S.: the file attached before is not the one on which I had the crash first, but a simpler one that still crashes (less sheets etc). Running with valgrind (on the big schematic): ==28614== Memcheck, a memory error detector ==28614== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==28614== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info ==28614== Command: ../../usr/bin/kicad ==28614== ==28614== Conditional jump or move depends on uninitialised value(s) ==28614== at 0x17A1A259: ??? (in /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libpixmap.so) ==28614== by 0x17A1B047: ??? (in /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libpixmap.so) ==28614== by 0x17A1B0F2: ??? (in /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libpixmap.so) ==28614== by 0x17A17E09: ??? (in /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libpixmap.so) ==28614== by 0x17A18F9A: ??? (in /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libpixmap.so) ==28614== by 0x960B552: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.31) ==28614== by 0x95CB7BB: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.31) ==28614== by 0x9DA7ECE: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.3) ==28614== by 0x9DBA37C: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.3) ==28614== by 0x9DC267E: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.3) ==28614== by 0x9DC2FBE: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.3) ==28614== by 0x96E38AB: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.31) ==28614== ==28614== Conditional jump or move depends on uninitialised value(s) ==28614== at 0x4C32EA6: rawmemchr (vg_replace_strmem.c:1402) ==28614== by 0x91713C1: _IO_str_init_static_internal (strops.c:41) ==28614== by 0x9164B96: vsscanf (iovsscanf.c:40) ==28614== by 0x915F306: sscanf (sscanf.c:32) ==28614== by 0xE5E7E4A: ??? (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0) ==28614== by 0xE5E8182: ??? (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0) ==28614== by 0xE5EBBF8: drmGetDevice (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0) ==28614== by 0x7A952D6: ??? (in /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0) ==28614== by 0x7A94694: ??? (in /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0) ==28614== by 0x7A68988: ??? (in /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0) ==28614== by 0x7A63F10: glXQueryVersion (in /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0) ==28614== by 0x4E47556: wxGLCanvasX11::GetGLXVersion() (in /usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.2.0) ==28614== ==28614== Invalid read of size 8 ==28614== at 0x1E56CD60: EE_SELECTION_TOOL::selectMultiple() (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56DF1B: EE_SELECTION_TOOL::Main(TOOL_EVENT const&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E7ADF2F: COROUTINE::callerStub(long) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x289550: make_fcontext (in /home/dinoghi/SANDBOXKICAD5/usr/bin/kicad) ==28614== Address 0x21148180 is 16 bytes inside a block of size 1,024 free'd ==28614== at 0x4C2D2DB: operator delete(void*) (vg_replace_malloc.c:576) ==28614== by 0x1E56F6E9: void std::vector, std::allocator > >::_M_emplace_back_aux(SCH_SHEET_PIN*&&, int&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56CDF0: EE_SELECTION_TOOL::selectMultiple() (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56DF1B: EE_SELECTION_TOOL::Main(TOOL_EVENT const&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E7ADF2F: COROUTINE::callerStub(long) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x289550: make_fcontext (in /home/dinoghi/SANDBOXKICAD5/usr/bin/kicad) ==28614== Block was alloc'd at ==28614== at 0x4C2C21F: operator new(unsigned long) (vg_replace_malloc.c:334) ==28614== by 0x1E777F0C: void std::vector, std::allocator > >::_M_emplace_back_aux >(std::pair&&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E778111: bool RTree::Search, std::allocator > > > >(RTree::Node*, RTree::Rect*, KIGFX::queryVisitor, std::allocator > > >&, int&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E77803D: bool RTree::Search, std::allocator > > > >(RTree::Node*, RTree::Rect*, KIGFX::queryVisitor, std::allocator > > >&, int&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E77803D: bool RTree::Search, std::allocator > > > >(RTree::Node*, RTree::Rect*, KIGFX::queryVisitor, std::allocator > > >&, int&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E770DCD: KIGFX::VIEW::Query(BOX2 > const&, std::vector, std::allocator > >&) const (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56CD3C: EE_SELECTION_TOOL::selectMultiple() (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56DF1B: EE_SELECTION_TOOL::Main(TOOL_EVENT const&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E7ADF2F: COROUTINE::callerStub(long) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x289550: make_fcontext (in /home/dinoghi/SANDBOXKICAD5/usr/bin/kicad) ==28614== ==28614== Invalid read of size 4 ==28614== at 0x1E56CD94: EE_SELECTION_TOOL::selectMultiple() (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56DF1B: EE_SELECTION_TOOL::Main(TOOL_EVENT const&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E7ADF2F: COROUTINE::callerStub(long) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x289550: make_fcontext (in /home/dinoghi/SANDBOXKICAD5/usr/bin/kicad) ==28614== Address 0x211482e8 is 376 bytes inside a block of size 1,024 free'd ==28614== at 0x4C2D2DB: operator delete(void*) (vg_replace_malloc.c:576) ==28614== by 0x1E56F6E9: void std::vector, std::allocator > >::_M_emplace_back_aux(SCH_SHEET_PIN*&&, int&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56CDF0: EE_SELECTION_TOOL::selectMultiple() (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56DF1B: EE_SELECTION_TOOL::Main(TOOL_EVENT const&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E7ADF2F: COROUTINE::callerStub(long) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x289550: make_fcontext (in /home/dinoghi/SANDBOXKICAD5/usr/bin/kicad) ==28614== Block was alloc'd at ==28614== at 0x4C2C21F: operator new(unsigned long) (vg_replace_malloc.c:334) ==28614== by 0x1E777F0C: void std::vector, std::allocator > >::_M_emplace_back_aux >(std::pair&&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E778111: bool RTree::Search, std::allocator > > > >(RTree::Node*, RTree::Rect*, KIGFX::queryVisitor, std::allocator > > >&, int&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E77803D: bool RTree::Search, std::allocator > > > >(RTree::Node*, RTree::Rect*, KIGFX::queryVisitor, std::allocator > > >&, int&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E77803D: bool RTree::Search, std::allocator > > > >(RTree::Node*, RTree::Rect*, KIGFX::queryVisitor, std::allocator > > >&, int&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E770DCD: KIGFX::VIEW::Query(BOX2 > const&, std::vector, std::allocator > >&) const (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56CD3C: EE_SELECTION_TOOL::selectMultiple() (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E56DF1B: EE_SELECTION_TOOL::Main(TOOL_EVENT const&) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x1E7ADF2F: COROUTINE::callerStub(long) (in /home/dinoghi/SANDBOXKICAD5/usr/bin/_eeschema.kiface) ==28614== by 0x289550: make_fcontext (in /home/dinoghi/SANDBOXKICAD5/usr/bin/kicad) ==28614== ==28614== ==28614== HEAP SUMMARY: ==28614== in use at exit: 41,535,228 bytes in 42,699 blocks ==28614== total heap usage: 7,122,404 allocs, 7,079,705 frees, 21,432,460,770 bytes allocated ==28614== ==28614== LEAK SUMMARY: ==28614== definitely lost: 34,058,480 bytes in 1,414 blocks ==28614== indirectly lost: 332,513 bytes in 7,126 blocks ==28614== possibly lost: 4,717,950 bytes in 3,786 blocks ==28614== still reachable: 2,246,269 bytes in 29,218 blocks ==28614== of which reachable via heuristic: ==28614== length64 : 8,256 bytes in 126 blocks ==28614== newarray : 2,192 bytes in 57 blocks ==28614== suppressed: 0 bytes in 0 blocks ==28614== Rerun with --leak-check=full to see details of leaked memory ==28614== ==28614== For counts of detected and suppressed errors, rerun with: -v ==28614== Use --track-origins=yes to see where uninitialised values come from ==28614== ERROR SUMMARY: 62 errors from 4 contexts (suppressed: 0 from 0) **************************************************************** Application: Eeschema Version: (5.99.0-60-gc8a6878eb), release build Libraries: wxWidgets 3.0.2 libcurl/7.52.1 OpenSSL/1.0.2s zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3 Platform: Linux 4.9.0-8-amd64 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.69.0 OpenCASCADE Community Edition: 6.8.0 Curl: 7.52.1 Compiler: GCC 6.3.0 with C++ ABI 1010 Build settings: KICAD_SCRIPTING=ON KICAD_SCRIPTING_MODULES=ON KICAD_SCRIPTING_PYTHON3=OFF KICAD_SCRIPTING_WXPYTHON=ON KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF KICAD_SCRIPTING_ACTION_MENU=ON BUILD_GITHUB_PLUGIN=ON KICAD_USE_OCE=ON KICAD_USE_OCC=OFF KICAD_SPICE=ON