I was just able to reproduce this on the Fedora release build for 5.1.2. I had to uncheck all the options, and it was set to meters. When I had the options checked it wouldn't crash. I tried briefly on the HEAD of the 5.1 branch, but it didn't crash. I was running that as a debug build though, so it could be this is release build specific.
I was just able to reproduce this on the Fedora release build for 5.1.2. I had to uncheck all the options, and it was set to meters. When I had the options checked it wouldn't crash. I tried briefly on the HEAD of the 5.1 branch, but it didn't crash. I was running that as a debug build though, so it could be this is release build specific.
It crashes on: c++/9/bits/ stl_vector. h:1042: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc> ::operator[ ](std:: vector< _Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator< int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_ expect( __n < this->size(), true)' failed.
/usr/include/
The relevant backtrace is: replacement_ assert( char const*, int, char const*, char const*) file=__ file@entry= 0x7fffd7815558 "/usr/include/ c++/9/bits/ stl_vector. h", __line= __line@ entry=1042, __function= __function@ entry=0x7fffd78 218d8 "std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc> ::operator[ ](std:: vector< _Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator< int>; std::vector<_Tp, _Alloc>::reference = int&;"..., __condition= __condition@ entry=0x7fffd78 155a8 "__builtin_ expect( __n < this->size(), true)") c++/9/x86_ 64-redhat- linux/bits/ c++config. h:2510 ](unsigned long) (__n=0, this=0x7fffffff 74d0) at /usr/src/ debug/kicad- 5.1.2-1. fc30.x86_ 64/pcbnew/ exporters/ export_ vrml.cpp: 1853 vrml_shell( IFSG_TRANSFORM& , VRML_COLOR_INDEX, VRML_LAYER*, double, double) (PcbOutput=..., colorID= VRML_COLOR_ TIN, layer=<optimized out>, top_z=<optimized out>, bottom_z=<optimized out>) debug/kicad- 5.1.2-1. fc30.x86_ 64/pcbnew/ exporters/ export_ vrml.cpp: 1833 MODEL_VRML& , char const*, std::ofstream*, BOARD*) (aModel= 0x555557eb5cb0 "/home/ imcinerney/ Documents/ dev/kicad/ testItems/ BugSpecific/ 1838448/ 00_pr_invest/ 00_pr_invest. wrl", aOutputFile= aOutputFile@ entry=0x0, aPcb=<optimized out>) debug/kicad- 5.1.2-1. fc30.x86_ 64/pcbnew/ exporters/ export_ vrml.cpp: 525 FRAME:: ExportVRML_ File(wxString const&, double, bool, bool, bool, wxString const&, double, double) <optimized out>, aFullFileName=..., aMMtoWRMLunit= <optimized out>, aExport3DFiles= <optimized out>, aUseRelativePat hs=<optimized out>, aUsePlainPCB= <optimized out>, a3D_Subdir=..., aXRef=<optimized out>, aYRef=<optimized out>) wx-3.0/ wx/buffer. h:157 FRAME:: OnExportVRML( wxCommandEvent& ) () at /usr/src/ debug/kicad- 5.1.2-1. fc30.x86_ 64/pcbnew/ dialogs/ dialog_ export_ vrml.cpp: 249 :ProcessEventIf MatchesId( wxEventTableEnt ryBase const&, wxEvtHandler*, wxEvent&) () at /lib64/ libwx_baseu- 3.0.so. 0 e::HandleEvent( wxEvent& , wxEvtHandler*) () at /lib64/ libwx_baseu- 3.0.so. 0 :TryHereOnly( wxEvent& ) () at /lib64/ libwx_baseu- 3.0.so. 0 FRAME:: ProcessEvent( wxEvent& ) (this=0x5555574 e1270, aEvent=...) at /usr/src/ debug/kicad- 5.1.2-1. fc30.x86_ 64/common/ eda_base_ frame.cpp: 173 :DoTryChain( wxEvent& ) () at /lib64/ libwx_baseu- 3.0.so. 0 :ProcessEvent( wxEvent& ) () at /lib64/ libwx_baseu- 3.0.so. 0 :TryAfter( wxEvent& ) () at /lib64/ libwx_gtk3u_ core-3. 0.so.0 :SafelyProcessE vent(wxEvent& ) () at /lib64/ libwx_baseu- 3.0.so. 0 :SendEvent( int, int) () at /lib64/ libwx_gtk3u_ core-3. 0.so.0
#0 0x00007ffff6cafe75 in raise () at /lib64/libc.so.6
#1 0x00007ffff6c9a895 in abort () at /lib64/libc.so.6
#2 0x00007fffd6cd8a28 in std::__
(__
at /usr/include/
#3 0x00007fffd6efbd94 in std::vector<int, std::allocator<int> >::operator[
#4 0x00007fffd6efbd94 in create_
at /usr/src/
#5 0x00007fffd6efc6e8 in write_layers(
..., aFileName=
at /usr/src/
#6 0x00007fffd6f0260a in PCB_EDIT_
(this=
at /usr/include/
#7 0x00007fffd6d611f8 in PCB_EDIT_
#8 0x00007ffff746df0b in wxEvtHandler:
#9 0x00007ffff746e013 in wxEventHashTabl
#10 0x00007ffff746e380 in wxEvtHandler:
#11 0x00007fffd7668a00 in EDA_BASE_
#12 0x00007ffff746e1e3 in wxEvtHandler:
#13 0x00007ffff746e4b1 in wxEvtHandler:
#14 0x00007ffff7a1223a in wxWindowBase:
#15 0x00007ffff746e23b in wxEvtHandler:
#16 0x00007ffff79c205e in wxMenuBase: