GerbView crashes while loading Gerber file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Medium
|
jean-pierre charras |
Bug Description
GerbView crashes while loading one particular Gerber file, which is attached. This file has been obtained from the "PCB fabrication data - Example 1.zip" archive on Ucamco's Gerber downloads page [1].
Hundreds of failed assertions are reported by the program. The following detail was seen with GDB:
warning: D:/private-
If all these assert messages are ignored, the program finally crashes with the following detail:
Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000008960304 in KIGFX::
this=
at D:/private-
204 vertex->z = aDepth;
A backtrace of the crash has been obtained using GDB and is copied below at [2].
-------
[1] https:/
[2] Backtrace:
#0 0x0000000008960304 in KIGFX::
this=
at D:/private-
#1 0x000000000895b33d in KIGFX::
this=
at D:/private-
#2 0x00000000088dc78c in KIGFX::
at D:/private-
#3 0x00000000088680c3 in GERBVIEW_
this=
at D:/private-
#4 0x0000000008867c02 in GERBVIEW_
this=
at D:/private-
#5 0x000000000884a93a in GERBVIEW_
aLayer=1, doLayerWidgetUp
at D:/private-
#6 0x000000000884295f in GERBVIEW_
this=
at D:/private-
#7 0x0000000008841ddb in GERBVIEW_
aFullFileNa
at D:/private-
#8 0x0000000008840bc5 in GERBVIEW_
event=...) at D:/private-
#9 0x000000006a4c2f24 in ?? ()
from C:\msys64\
#10 0x000000006a62cd42 in ?? ()
from C:\msys64\
#11 0x000000006a62ce48 in ?? ()
from C:\msys64\
#12 0x000000006a62d254 in ?? ()
from C:\msys64\
#13 0x00000000088b29f9 in EDA_BASE_
aEvent=...)
at D:/private-
#14 0x000000006a62d003 in ?? ()
from C:\msys64\
#15 0x000000006a62d321 in ?? ()
from C:\msys64\
#16 0x00000000064b449f in ?? ()
from C:\msys64\
#17 0x000000006a62d05b in ?? ()
from C:\msys64\
#18 0x0000000006461f8d in ?? ()
from C:\msys64\
#19 0x00000000062fea70 in ?? ()
from C:\msys64\
#20 0x00007ffc4f44b85d in USER32!
from C:\Windows\
#21 0x00007ffc4f44b1ef in USER32!
from C:\Windows\
#22 0x00000000062f5e8b in ?? ()
from C:\msys64\
#23 0x000000006a4fc6d0 in ?? ()
from C:\msys64\
#24 0x000000006a4fc339 in ?? ()
from C:\msys64\
#25 0x000000006a4c68fa in ?? ()
from C:\msys64\
#26 0x0000000000435a82 in APP_SINGLE_
at D:/private-
#27 0x000000006a547977 in ?? ()
from C:\msys64\
#28 0x00000000061ca24b in ?? ()
from C:\msys64\
#29 0x00000000004016ec in WinMain (hInstance=
nCmdShow=10)
at D:/private-
#30 0x000000000045c502 in main (flags=<optimized out>,
cmdline=
at C:/repo/
#31 0x00000000004013a5 in __tmainCRTStartup ()
at C:/repo/
#32 0x00000000004014db in WinMainCRTStartup ()
at C:/repo/
[3] Version information:
Application: gerbview
Version: (6.0.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.33.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.68.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.61.1
Compiler: GCC 8.2.0 with C++ ABI 1013
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
Changed in kicad: | |
status: | Fix Committed → Fix Released |
I get the following assertion:
ASSERT INFO: code/kicad/ kicad-launchpad /gerbview/ am_primitive. cpp(70) : assert "params.size() && params[ 0].IsImmediate( )" failed in IsAMPrimitiveEx posureOn( ).
/home/seth/
BACKTRACE: e::CallEventHan dler(wxEvtHandl er*, wxEventFunctor&, wxEvent&) const :ProcessEventIf MatchesId( wxEventTableEnt ryBase const&, wxEvtHandler*, wxEvent&) e::HandleEvent( wxEvent& , wxEvtHandler*) :TryHereOnly( wxEvent& ) :DoTryChain( wxEvent& ) :ProcessEvent( wxEvent& ) :TryAfter( wxEvent& ) :SafelyProcessE vent(wxEvent& ) :SendEvent( int, int) emit_valist shell_activate_ item emit_valist context_ dispatch :DoRun( ) ::Run() e::MainLoop( )
[1] wxAppConsoleBas
[2] wxEvtHandler:
[3] wxEventHashTabl
[4] wxEvtHandler:
[5] wxEvtHandler:
[6] wxEvtHandler:
[7] wxWindowBase:
[8] wxEvtHandler:
[9] wxMenuBase:
[10] g_closure_invoke
[11] g_signal_
[12] g_signal_emit
[13] gtk_widget_activate
[14] gtk_menu_
[15] g_closure_invoke
[16] g_signal_
[17] g_signal_emit
[18] gtk_propagate_event
[19] gtk_main_do_event
[20] g_main_
[21] g_main_loop_run
[22] gtk_main
[23] wxGUIEventLoop:
[24] wxEventLoopBase
[25] wxAppConsoleBas
[26] wxEntry(int&, wchar_t**)
[27] __libc_start_main
[28] _start
Application: gerbview rc1-dev- 722-gf11cb736e) , debug build compatible with 2.8) GTK+ 2.24
Version: (6.0.0-
Libraries:
wxWidgets 3.0.2
libcurl/7.52.1 OpenSSL/1.0.2l 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,
Boost: 1.62.0
Curl: 7.52.1
Compiler: GCC 6.3.0 with C++ ABI 1010
Build settings: WX_GRAPHICS_ CONTEXT= OFF WX_OVERLAY= OFF SCRIPTING= OFF SCRIPTING_ MODULES= OFF SCRIPTING_ WXPYTHON= OFF SCRIPTING_ ACTION_ MENU=OFF GITHUB_ PLUGIN= ON USE_OCE= OFF USE_OCC= OFF
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=OFF