EEschema crash when loading Eagle schematic instead of importing it
Description
Steps to reproduce
- open eeschema in command line with a eagle schematic as 1th argument sha2017_rev1_0_0.sch
- or if .sch are assigned to be opened with eeschema, just double click on the eagle schematic
- eeschema is opened but closes immediately with segmentation fault
Click to expand gdb trace
gdb --ex=run --args env LD_LIBRARY_PATH=/usr/lib/kicad-nightly/lib/x86_64-linux-gnu/:/usr/lib/kicad-nightly/lib/ KICAD_PATH=/usr/share/kicad-nightly KICAD_CONFIG_HOME="$HOME/.config/kicadnightly" /usr/lib/kicad-nightly/bin/eeschema sha2017_rev1_0_0.sch
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from env...
(No debugging symbols found in env)
Starting program: /usr/bin/env LD_LIBRARY_PATH=/usr/lib/kicad-nightly/lib/x86_64-linux-gnu/:/usr/lib/kicad-nightly/lib/ KICAD_PATH=/usr/share/kicad-nightly KICAD_CONFIG_HOME=/home/stefan/.config/kicadnightly /usr/lib/kicad-nightly/bin/eeschema sha2017_rev1_0_0.sch
process 22011 is executing new program: /usr/lib/kicad-nightly/bin/eeschema
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff0cb2700 (LWP 22015)]
[New Thread 0x7fffebfff700 (LWP 22016)]
[Detaching after vfork from child process 22020]
[Detaching after vfork from child process 22022]
[Detaching after vfork from child process 22024]
[Detaching after vfork from child process 22026]
[Detaching after vfork from child process 22028]
[Detaching after vfork from child process 22030]
[Detaching after vfork from child process 22032]
[Detaching after vfork from child process 22034]
[Detaching after vfork from child process 22036]
[New Thread 0x7fffe8e44700 (LWP 22038)]
[New Thread 0x7fffe3fff700 (LWP 22039)]
[Thread 0x7fffe8e44700 (LWP 22038) exited]
[New Thread 0x7fffe8e44700 (LWP 22042)]
[Thread 0x7fffe8e44700 (LWP 22042) exited]
Thread 1 "eeschema" received signal SIGSEGV, Segmentation fault.
0x00007fffea7938dd in EE_SELECTION_TOOL::CollectHits (this=0x55555667a000, aCollector=..., aWhere=..., aScanTypes=std::vector of length 1, capacity 1 = {...}) at ./kicad/eeschema/tools/ee_selection_tool.cpp:812
812 ./kicad/eeschema/tools/ee_selection_tool.cpp: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0 0x00007fffea7938dd in EE_SELECTION_TOOL::CollectHits(EE_COLLECTOR&, VECTOR2<int> const&, std::vector<KICAD_T, std::allocator<KICAD_T> > const&)
(this=0x55555667a000, aCollector=..., aWhere=..., aScanTypes=std::vector of length 1, capacity 1 = {...}) at ./kicad/eeschema/tools/ee_selection_tool.cpp:812
#1 0x00007fffea79a5ca in EE_SELECTION_TOOL::Main(TOOL_EVENT const&) (this=<optimized out>, aEvent=...) at ./kicad/libs/kimath/include/math/vector2d.h:100
#2 0x00007fffeab03340 in std::function<int (TOOL_EVENT const&)>::operator()(TOOL_EVENT const&) const (__args#0=..., this=0x555556a84300) at /usr/include/c++/9/bits/std_function.h:683
#3 COROUTINE<int, TOOL_EVENT const&>::callerStub(long) (aData=<optimized out>) at ./kicad/include/tool/coroutine.h:428
#4 0x00007fffeabca371 in make_fcontext () at /usr/lib/kicad-nightly/bin/_eeschema.kiface
#5 0x0000000000000000 in ()
(gdb)
correct error message, but due to segmentation error only visible when in gdb
Crash does not happen, when you try to open sha2017_rev1_0_0.sch via the eeschema File->open menu
then you only get this error message:
but eeschema does not crash.
Due to kicad/packaging/kicad-ubuntu-builder/kicad-daily-package#37 (closed)
I still get this message at start of eeschema:
If I open eeschema via command line, I do not have the possibility to close this message before the schematic get's importet and fails with the next message.
That might be a hint for the bug..
KiCad Version
Application: KiCad Schematic Editor x86_64 on x86_64
Version: 6.99.0-unknown-e315eb871c~164~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.2.1
FreeType 2.10.1
HarfBuzz 2.6.4
FontConfig 2.13.1
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux Mint 20.3, 64 bit, Little endian, wxGTK, cinnamon, x11
Build Info:
Date: Jan 6 2023 20:33:02
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.2
Curl: 7.68.0
ngspice: 38
Compiler: GCC 9.4.0 with C++ ABI 1013
Build settings:
KICAD_USE_EGL=ON
KICAD_SPICE=ON