pcbnew DRC crashes after importing HydraBus 1.0 Rev1.3

Bug #1808578 reported by Benjamin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Expired
Undecided
Unassigned

Bug Description

The project HydraBus with eagle files required for this issue is open hardware and available on github in following link:
https://github.com/hydrabus/hydrabus/tree/master/hardware/HydraBus_1_0_Rev1_3

When we import this project with KiCad 6.0 nightly of even KiCad 5.0x there is different issues
So let's do it step by step with KiCad nightly kicad-r11991-11Dec2018 (http://downloads.kicad-pcb.org/windows/nightly/kicad-r11991.9490fd9d3-x86_64.exe)
1) git clone https://github.com/hydrabus/hydrabus.git to hydrabus_git

2) Launch KiCad and Import Eagle Project Files => Choose hydrabus_git\hardware\HydraBus_1_0_Rev1_3\HydraBus_1_0_Rev1_3.brd

3) Choose project destination (create directory HydraBus_1_0_Rev1_3_Kicad) => hydrabus_git\hardware\HydraBus_1_0_Rev1_3_Kicad
kicad Information open with lot of warning about tKeepout(39) which is converted to Dwgs.User layer
As KiCad does not support KeepOut it is OK and it is minor issue
so click on OK
Now the board is displayed correctly so save it

4) If we do "Perform design rule check", KiCad crash with a window kicad.exe has stopped working

5) We restart KiCad and we do again "Perform design rule check" no there is no any crash.

Tags: eagle import
Benjamin (bvernoux)
description: updated
description: updated
description: updated
summary: - EAGLE CAD issue when importing HydraBus 1.0 Rev1.3
+ EAGLE CAD import issues when importing HydraBus 1.0 Rev1.3
tags: added: eagle import
Revision history for this message
Seth Hillbrand (sethh) wrote :

I am splitting this report as the issues are separate.

I cannot recreate the crash issue using linux. @Benjamin, please add your KiCad version information from Help->About KiCad->Copy Version Information.

Application: kicad
Version: (6.0.0-rc1-dev-1390-g0a2638890-dirty), release build
Libraries:
    wxWidgets 3.0.4
Platform: Linux 4.18.0-3-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.9.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=OFF
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

description: updated
summary: - EAGLE CAD import issues when importing HydraBus 1.0 Rev1.3
+ pcbnew DRC crashes after importing HydraBus 1.0 Rev1.3
Seth Hillbrand (sethh)
Changed in kicad:
status: New → Incomplete
Revision history for this message
Benjamin (bvernoux) wrote :

See my KiCad information:
I'm using Windows 7 SP1 64bits
Application: kicad
Version: (6.0.0-rc1-dev-1376-g9490fd9d3), release build
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.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    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_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

@Benjaman, please include the kicad version information. I just tested this using the development branch of kicad and the DRC crash does not happen.

The fully enclosed polygon is most likely a bug in the board layout. KiCad expects the polygon that defines the board outline to be fully enclosed. This most likely indicates that the line end points that define the board outline in eagle are not enclosed due to small gaps.

AFAIK, graphic image import from eagles schematics is not supported.

I do see the dashed crossed line in the schematic. I'm not sure why they are there. Does eagle support hidden lines? If so that could be an issue because kicad does not support hidden lines.

For future reference, please do not file multiple bugs in a single report. It is not possible to close part of a bug report in launchpad.

Revision history for this message
Benjamin (bvernoux) wrote :

I confirm i retried again and the crash does not appears
So it seems hard to reproduce

Revision history for this message
Benjamin (bvernoux) wrote :

In fact after a second try with 3D Viewer kept open and go to PCbnew => Perform design rule check it crash

Revision history for this message
Benjamin (bvernoux) wrote :

I have catched the crash with Visual Studio 2013 but as it is a release there is no debug symbol
Unhandled exception at 0x0000000013B80178 (_pcbnew.kiface) in kicad.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x0000000000033F80).
0000000013B80178 movaps xmmword ptr [rsp],xmm6
0000000013B8017C movaps xmmword ptr [rsp+10h],xmm7
0000000013B80181 movaps xmmword ptr [rsp+20h],xmm8
0000000013B80187 movaps xmmword ptr [rsp+30h],xmm9
0000000013B8018D movaps xmmword ptr [rsp+40h],xmm10
0000000013B80193 movaps xmmword ptr [rsp+50h],xmm11
0000000013B80199 movaps xmmword ptr [rsp+60h],xmm12
0000000013B8019F movaps xmmword ptr [rsp+70h],xmm13
0000000013B801A5 movaps xmmword ptr [rsp+80h],xmm14
0000000013B801AE movaps xmmword ptr [rsp+90h],xmm15

I can provide a dump if you want but I think the best will be to try with a debug version
I'm waiting your feedback

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1808578] Re: pcbnew DRC crashes after importing HydraBus 1.0 Rev1.3

Even with the 3D view open, I still do not get a crash on DRC. I just
get a DRC warning about the fully enclosed board outline.

On 12/14/18 3:57 PM, Benjamin wrote:
> In fact after a second try with 3D Viewer kept open and go to PCbnew =>
> Perform design rule check it crash
>

Revision history for this message
Benjamin (bvernoux) wrote :

After lot of retry from scratch, removing the directory HydraBus_1_0_Rev1_3_Kicad and doing step 1) to 5) I cannot reproduce it (so far I have reproduced it only 3 times with at least 50 tries...
So we can say it is a pseudo random crash / very hard to reproduce bug
The most important is to know how to fix this polygon not enclosed with wrong coordinate 0.00 ...
?
Maybe it is linked to the fact the Edge.Cuts is part of a footprint U$1 ?
Also the Edge.Cuts line thickness is 0 so it is very hard to select it...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for KiCad because there has been no activity for 60 days.]

Changed in kicad:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.