gebrview crashes when opening an empty file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
When I plot my PCB I like to check the resulting gerber files. When I try to open a file that would be empty like "B_SilkS" or one of the "NPTH" the program hangs and I have to force quit.
I am opening the files directly with gerbview and not through kicad.
```
Application: KiCad
Version: (5.99.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.7.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (wchar_t,STL containers,
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 9.0.0 with C++ ABI 1002
Build settings:
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
KICAD_
KICAD_
KICAD_
```
Changed in kicad: | |
status: | New → Incomplete |
Changed in kicad: | |
importance: | Undecided → Unknown |
status: | Expired → Fix Released |
This is the contents of my B_SilkS which causes crash
``` ftware, KiCad,Pcbnew, (5.99.0- 158-g78859b29e) * ,2019-10- 01T13:01: 51-04:00* lightning- protection- pcb-panel, 6c696768- 746e-4696- 9e67-2d70726f74 65,rev? * tes,Original* ,Legend, Bot* ,Positive* 158-g78859b29e) ) date 2019-10-01 13:01:51*
G04 #@! TF.GenerationSo
G04 #@! TF.CreationDate
G04 #@! TF.ProjectId,
G04 #@! TF.SameCoordina
G04 #@! TF.FileFunction
G04 #@! TF.FilePolarity
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.99.0-
%MOMM*%
%LPD*%
G04 APERTURE LIST*
G04 APERTURE END LIST*
M02*
```
This is the NPTH.drl that causes crash/hang
``` 158-g78859b29e) } date Tuesday, October 01, 2019 at 01:01:57 PM ,2019-10- 01T13:01: 57-04:00 ftware, Kicad,Pcbnew, (5.99.0- 158-g78859b29e) ,NonPlated, 1,2,NPTH
M48
; DRILL file {KiCad (5.99.0-
; FORMAT={-:-/ absolute / inch / decimal}
; #@! TF.CreationDate
; #@! TF.GenerationSo
; #@! TF.FileFunction
FMAT,2
INCH
%
G90
G05
T0
M30
```