CvPCB window freezing on 'filter by pincount'

Bug #1801622 reported by DaveyPocket
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

Opening the "Assign PCB footprints to schematic symbols" window, checking the "Filter footprint list by pin count" button causes the KiCAD to hand for around 15-20 seconds with no results showing up in the right-hand (3rd) pane. Un-checking the button requires another 15-20 seconds but then the issue is resolved. Filtering by any other option does not cause this problem to occur as far as I can tell.

Version information:
Application: kicad
Version: (5.0.1)-3, 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 8 (build 9200), 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
    OpenCASCADE Community Edition: 6.8.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_USE_OCC=OFF
    KICAD_SPICE=ON

summary: - Assign Footprints window freezing on 'filter by pincount'
+ CvPCB window freezing on 'filter by pincount'
Revision history for this message
Mark Robson (markxr) wrote :

+1 affects me exactly as described. Kicad 5.0.1 on Windows-7 64-bit.

Revision history for this message
Mark Robson (markxr) wrote :

Cannot actually seem to filter footprints by pincount. This worked ok on earlier versions of Kicad.

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

This appears to be fixed in the current 5.0 branch nightly build 5.0.1-29-g839ade2c0 at least I cannot reproduce it. It may have been due to an issue with older dependency libraries and build tools that caused the issue. Would someone else confirm this? The installers for this build can be found here: http://downloads.kicad-pcb.org/windows/testing/5.0/

Changed in kicad:
status: New → Incomplete
Revision history for this message
Mark Robson (markxr) wrote :

I installed the latest testing build and the bug is still happening for me:

Version: (5.0.1-33-g76adf7dbe), release build

Mark

Revision history for this message
Nick Østergaard (nickoe) wrote :

@Mark, using the i686 or x86_64 build?

Revision history for this message
Mark Robson (markxr) wrote :

x86_64 build shows the problems.

I tried installing the i686 build on a VM, it seems fine (can't reproduce, it works as expected). I don't know if the difference in behaviour is due to the setup of these Windows machines, or the different architecture build.

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

I'm am not seeing this on my 64 bit builds on windows 10 pro. I wonder if it's a matter of dependency library differences between my builds and the installer builds.

Application: kicad
Version: (6.0.0-rc1-dev-1188-g298a033b9), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.62.0 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.7 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 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.62.0
    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
Nick Østergaard (nickoe) wrote :

@Wayne, I don't think this is about the toolchain. We are using more or less the same now. The report is against the 5.0 branch.

Could you try the build I provide for the 5.0 branch?

http://downloads.kicad-pcb.org/windows/testing/5.0/

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

@Nick, no problem with the latest 5.0 nightly using installer kicad-5.0-jenkins-82-x86_64.exe.

Application: kicad
Version: (5.0.1-33-g76adf7dbe), 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 8 (build 9200), 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_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
Nick Østergaard (nickoe) wrote :

So as you tested with the same or almost same builds, I guess there are some other differences. Maybe the steps to reproduce are not accurate.

Revision history for this message
Mark Robson (markxr) wrote :

I am able to reproduce this on the win7 64-bit Laptop. I guess it is something related to libraries or graphics drivers. A 32-bit VM does not show the bug.

Application: kicad
Version: (5.0.1-33-g76adf7dbe), 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_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
Mark Robson (markxr) wrote :

Is it also possible that this bug is related to Antivirus software?

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

@Mark, I wouldn't think AV would be an issue since the filtering doesn't require any file I/O. You can always temporarily disable your AV and test it. I have my AV (windows defender) disabled.

Revision history for this message
Mark Robson (markxr) wrote :

I found the problem!

It was caused, I think, by an upgrade from an earlier Kicad, the file fp-lib-table had bad contents.

I removed the file %userprofile%\Appdata\Roaming\kicad\fp-lib-table, and now it's working perfectly.

This tip was provided on the eevblog forum here: http://www.eevblog.com/forum/kicad/kicad-5-assigning-foot-freezes/msg1960232/#msg1960232

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

@Mark, do you know if your old fp-lib-table had any github plugin entries?

Revision history for this message
Mark Robson (markxr) wrote :

Yes, it had many, possibly all of them, I think they're all the standard ones. It starts:

(fp_lib_table
  (lib (name Battery_Holders)(type Github)(uri ${KIGITHUB}/Battery_Holders.pretty)(options "")(descr "Batteries and battery holders"))
  (lib (name Buttons_Switches_SMD)(type Github)(uri ${KIGITHUB}/Buttons_Switches_SMD.pretty)(options "")(descr "Buttons and switches, surface mount"))

etc...

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

I'm pretty confident this was your issue. Github libraries can be very slow depending on the quality of your internet connection. This is why there was only a lag the first time you toggled the filter by pin count button. KiCad is now packaged with the libraries to be installed locally so this should eliminate the problem unless you have a very large number of libraries. I'm going to change the status of this to fix committed since this has been fixed by the packaging changes. Please change the status back to new if the problem occurs again.

Changed in kicad:
status: Incomplete → 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.