eeschema: Crash on opening schematic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Committed
|
Critical
|
Jeff Young |
Bug Description
As of commit 2466b4363 (bisected) eeschema crashes while opening a "more complex" schematic.
The pic_programmer demo can be opened without any issues. But "bigger" projects lead to an immediate crash. Reverting the commit resolves this issue.
With one project there is a "kicad Error" dialog with the message "Unhandled exception class: St9bad_alloc what: std::bad_alloc"
Steps to reproduce:
1. Open demo project "complex_hierarchy" with kicad launcher.
2. Click on "Schematic Layout Editor" tool button -> crash
Backtrace:
#0 0x00007fffd5861eae in SCH_CONNECTION:
#1 0x00007fffd59230e0 in SCH_CONNECTION:
#2 0x00007fffd585b8d0 in CONNECTION_
#3 0x00007fffd5858950 in CONNECTION_
at /data/src/
#4 0x00007fffd59b9b5d in SCH_EDIT_
#5 0x00007fffd5896381 in SCH_EDIT_
#6 0x00005555556082cc in KICAD_MANAGER_
#7 0x00005555556086ba in KICAD_MANAGER_
#8 0x00007ffff67754be in wxEvtHandler:
#9 0x00007ffff67755c3 in wxEventHashTabl
#10 0x00007ffff677598b in wxEvtHandler:
#11 0x000055555564829e in EDA_BASE_
#12 0x00007ffff6775783 in wxEvtHandler:
#13 0x00007ffff6775a75 in wxEvtHandler:
#14 0x00007ffff70a518b in wxWindowBase:
#15 0x00007ffff70a518b in wxWindowBase:
#16 0x00007ffff67757d7 in wxEvtHandler:
#17 0x00007ffff6f234b7 in () at /usr/lib/
#18 0x00007ffff488910d in g_closure_invoke () at /usr/lib/
#19 0x00007ffff489bbf1 in () at /usr/lib/
#20 0x00007ffff48a4715 in g_signal_
#21 0x00007ffff48a512f in g_signal_emit () at /usr/lib/
#22 0x00007ffff4e0f6f5 in () at /usr/lib/
#23 0x00007ffff488910d in g_closure_invoke () at /usr/lib/
#24 0x00007ffff489c12e in () at /usr/lib/
#25 0x00007ffff48a4715 in g_signal_
#26 0x00007ffff48a512f in g_signal_emit () at /usr/lib/
#27 0x00007ffff4e0e679 in () at /usr/lib/
#28 0x00007ffff4eb438b in () at /usr/lib/
#29 0x00007ffff488910d in g_closure_invoke () at /usr/lib/
#30 0x00007ffff489bde8 in () at /usr/lib/
#31 0x00007ffff48a40af in g_signal_
#32 0x00007ffff48a512f in g_signal_emit () at /usr/lib/
#33 0x00007ffff4fca2bc in () at /usr/lib/
#34 0x00007ffff4eb262c in gtk_propagate_event () at /usr/lib/
#35 0x00007ffff4eb2a2b in gtk_main_do_event () at /usr/lib/
#36 0x00007ffff4b2802c in () at /usr/lib/
#37 0x00007ffff413e387 in g_main_
#38 0x00007ffff413e5c0 in () at /usr/lib/
#39 0x00007ffff413e8d2 in g_main_loop_run () at /usr/lib/
#40 0x00007ffff4eb1a37 in gtk_main () at /usr/lib/
#41 0x00007ffff6ec2b05 in wxGUIEventLoop:
#42 0x00007ffff6631a93 in wxEventLoopBase
#43 0x00007ffff65f90a6 in wxAppConsoleBas
#44 0x0000555555605c51 in APP_KICAD::OnRun() (this=0x5555559
#45 0x00007ffff6683ae9 in wxEntry(int&, wchar_t**) () at /usr/lib/
#46 0x0000555555604597 in main(int, char**) (argc=1, argv=0x7fffffff
Version info:
Application: kicad
Version: (5.1.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.58.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 4.15.0-46-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.65.1
OpenCASCADE Community Edition: 6.9.1
Curl: 7.58.0
Compiler: GCC 7.3.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=OFF
Changed in kicad: | |
importance: | Undecided → High |
Changed in kicad: | |
importance: | High → Critical |
I'm seeing this as well, but I also can't open the pic_programmer.
Application: kicad 106-g5eb2a3349) , debug build compatible with 2.8)
Version: (5.1.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.5.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (UTF-8,STL containers,
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 10.0.1 with C++ ABI 1002
Build settings: WX_GRAPHICS_ CONTEXT= ON WX_OVERLAY= ON SCRIPTING= OFF SCRIPTING_ MODULES= OFF SCRIPTING_ PYTHON3= OFF SCRIPTING_ WXPYTHON= OFF SCRIPTING_ WXPYTHON_ PHOENIX= OFF SCRIPTING_ ACTION_ MENU=OFF GITHUB_ PLUGIN= ON USE_OCE= ON USE_OCC= OFF
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON