pcbnew crash if "backing" up and place via

Bug #1721590 reported by Nicholas Savenlid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Unassigned

Bug Description

so lets try to explain:

1 track on F.fab already in place.

Tracks end mid air.

I want to continue routing on this track
(0.1mm wide)

but i want to place a via 1 step up the trace.

so i try to route the track backwards to make it shorter (0.05mm grid)
1 step diagonally up to the left.

but the trace budge and will not let itself be shortedned in lenght just because i trace backwards over itself,

I think to myself, ok no problem, i put down my via here and cut the remainder later.

crash.

Tags: pcbnew
Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

Application: kicad
Version: (2017-09-19 revision dddaa7e69)-makepkg, release build
Libraries:
    wxWidgets 3.0.3
    libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.60.0
    Curl: 7.54.1
    Compiler: GCC 7.1.0 with C++ ABI 1011

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_SPICE=ON

Revision history for this message
Tomasz Wlostowski (twlostow) wrote : Re: [Bug 1721590] [NEW] pcbnew crash if "backing" up and place via

On 05.10.2017 19:00, Nicholas Savenlid wrote:
> Public bug reported:
>
> so lets try to explain:
>
> 1 track on F.fab already in place.
>
> Tracks end mid air.
>
> I want to continue routing on this track
> (0.1mm wide)
Any chance you can record a video and/or a stack trace?

Tom

Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

This one still haunts me to this day, its the only bug in pcbnew that crash otherwise pcbnew is very stable under windows.

I can reproduce this one 100% now (again) if someone wants the design to try it out for yourselves.

I will not drop the design here, but i can email it, its not public domain.

Application: kicad
Version: (2018-01-30 revision 342197bb3)-makepkg, release build
Libraries:
    wxWidgets 3.0.3
    libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.60.0
    Curl: 7.54.1
    Compiler: GCC 7.1.0 with C++ ABI 1011

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_SPICE=ON

Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

video attached

trying to put down a via where pcbnew dont want you to put it down is a sure way to crash it.

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Nicholas, would you send me the board? My e-mail address is available on my launchpad profile page (https://launchpad.net/~orsonmmz).

tags: added: pcbnew
Changed in kicad:
importance: Undecided → Critical
milestone: none → 5.0.0-rc2
Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

User information
Launchpad Id:
orsonmmz
Email:
No public address provided.

Member since:
2013-03-12

cant find your email

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Sorry, it is maciej<dot>suminski<at>cern<dot>ch

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Nicholas, thank you - I got your PCB. I noticed that you are using two weeks old build and there were several fixes to PNS, which may have solved the problem.

I cannot recreate the crash while trying to follow the steps presented in the video. I did my best to select the same settings (starting layer, grid size, via location, highlight collision mode), but it always worked fine. Could you try a newer build?

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

I am going to revert to 342197bb3 to see if I can reproduce the crash there.

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Ok, I just tried 342197bb3 and cannot reproduce the crash either, so it means that most likely I am unable to recreate the exact conditions. In such case I rely on your further tests.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

ok

here is another video showing same problem

recorded earlier

Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

first i could not recreate it but then i look my old vdeio and no problem

try to wedge the via between 2 traces

BOOM

Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

new video on the the design i sent you

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Is it the newest nightly build? I just exactly followed your actions, yet it works here. Tested on Linux and Windows 7 x86_64.

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Does it also happen if you open the board in pcbnew standalone?

Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

not sure what standalone means in this context or how its invoked.
i always start pcbnew from main menu, never from within schematic.

used version =

Application: kicad
Version: (2018-01-30 revision 342197bb3)-makepkg, release build
Libraries:
    wxWidgets 3.0.3
    libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.60.0
    Curl: 7.54.1
    Compiler: GCC 7.1.0 with C++ ABI 1011

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_SPICE=ON

Revision history for this message
Nicholas Savenlid (nicholas-z) wrote :

I did watch your video

its amazing to see

it would have crashed 100% at my end.

I did update to latest version, it does not crash anymore.

Application: kicad
Version: (2018-02-15 revision 29b28de31)-makepkg, release build
Libraries:
    wxWidgets 3.0.3
    libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.60.0
    Curl: 7.54.1
    Compiler: GCC 7.1.0 with C++ ABI 1011

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_SPICE=ON

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

You can launch pcbnew either from KiCad launcher (project manager) or directly from the Start menu, the latter is standalone.

I think we can mark this bug as fixed, unless you find some other way to crash pcbnew. Thank you for your patience and help investigating the problem.

Changed in kicad:
status: Incomplete → Fix Committed
Jeff Young (jeyjey)
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.