Calculating dielectric thickness in stackup editor crashes

Bug #1843131 reported by eelik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
Critical
jean-pierre charras

Bug Description

I have a (old) 2 layer board. Board thickness is 1mm and current thickness from stackup 1.6mm when I open the stackup editor. Core is 1.51mm by default.

If I lock the Core and try to Set Dielectric Thickness, KiCad gives a message that it can't be calculated (target thickness < stackup thickness). When I dismiss the dialog KiCad crashes.

(Linux, GTK3.)

Application: Pcbnew
Version: (5.99.0-92-g14c417504), release build
Libraries:
    wxWidgets 3.0.4
Platform: Linux 4.15.0-60-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.22
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Compiler: GCC 7.4.0 with C++ ABI 1011

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

Tags: pcbnew
Revision history for this message
jean-pierre charras (jp-charras) wrote :

If you lock the dielectric thickness of a 2 layers board, the stack manager has not dielectric layer to adjust.
So it cannot adjust the stackup thickness.
However the crash should not happens.
Can you share your board?

Changed in kicad:
milestone: none → 6.0.0-rc1
importance: Undecided → Critical
Revision history for this message
eelik (eelik) wrote :

It's not project dependent. I created a new one from scratch. Went to stackup editor. Changed Board thickness to smaller than the current from stackup. Locked the Core layer. Clicked Set Dielectric Thickness. Clicked OK in the information dialog.

KiCad crashes every time with floating point exception.

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

Fixed in revision 37fac7a8f2edf13f0433625bb4fb3e67656610a3
https://git.launchpad.net/kicad/patch/?id=37fac7a8f2edf13f0433625bb4fb3e67656610a3

Changed in kicad:
status: New → Fix Committed
assignee: nobody → jean-pierre charras (jp-charras)
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.