Assert in 3d viewer with rounded rectangle pad with 50% radius

Bug #1785823 reported by John Beard
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Seth Hillbrand

Bug Description

Steps:

* Make a footprint with a pad with a rounded rectangle with 50% radius
* Place on a PCB
* Open the 3D viewer
* Assert in CROUNDSEGMENT2D::CROUNDSEGMENT2D(): wxASSERT( aStart != aEnd );

This is presumably a zero-length segment between the radii.

Reproducing minimal PCB attached.

Workaround: use Oval pads.

------

Application: kicad
Version: (6.0.0-rc1-dev-243-g539ca5aa3), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.0 OpenSSL/1.1.0h zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) nghttp2/1.32.0
Platform: Linux 4.17.2-1-ARCH x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.60.0
    Compiler: GCC 8.1.1 with C++ ABI 1012

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    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
John Beard (john-j-beard) wrote :
description: updated
Revision history for this message
Jeff Young (jeyjey) wrote :

There are also some TODOs in the code about fixing the underlying issues, but I ran into them a long time ago so I don't remember where....

Revision history for this message
Jeff Young (jeyjey) wrote :

Is this a duplicate? I thought I saw a commit message regarding something similar....

Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 8efcf81cf56765f72574ce2fd607137e6115e11d
https://git.launchpad.net/kicad/patch/?id=8efcf81cf56765f72574ce2fd607137e6115e11d

Changed in kicad:
status: New → Fix Committed
assignee: nobody → Seth Hillbrand (sethh)
Changed in kicad:
status: Fix Committed → Fix Released
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.