← Back to team overview

kicad-developers team mailing list archive

Issues building PCBNew on Windows 10/Msys: fatal exception

 

Sorry if this is a bit long and thanks in advance for the help. I decided to move to a new laptop and create a debug version of Kicad so I can work on integrating my software. I believe I carefully followed the build instructions I suspect this may be related to a version mismatch but I don’t know how to fix it.

I installed Msys2, downloaded Kicad source and compiled a debug build. It compiled without errors but I get a warning

     C:/msys32/mingw32/lib/python2.7/site-packages/wx-3.0-msw/wx/_core.py:16633: UserWarning: wxPython/wxWidgets release number mismatch
  	warnings.warn("wxPython/wxWidgets release number mismatch")

I get the same error building the release and debug versions and the release version appears to work fine, except for complaints about 
version mismatch.

However, with the debug build I can run Kicad and invoke eeSchema and all the other applications from the Kicad menu except 
PCBNew and  the symbol editor. When I run these, I get errors:

     Application failed to load: 
  	IO_ERROR: Failed to load kiface library "C:\msys32\mingw32\bin\_pcbnew.kiface".
     from kiway.cpp : KiFACE() line:213

If I run PCBNew from the debug directory I get the same result but with details I can copy.

     Details:
     17:18:15: Failed to load shared library 'C:\kicad-source\build\debug\pcbnew\_pcbnew.kiface' (error 127: the specified procedure could not be found.)
     17:18:15: IO_ERROR: Failed to load kiface library “C:\kicad-source\build\debug\pcbnew\_pcbnew.kiface”.

This PC has 32 GB of DRAM installed and 'C:\msys32\mingw32\bin\_pcbnew.kiface' is present.

When I run PCBNew standalone in msys2, I get this message 

$ pcbnew
     C:/msys32/mingw32/lib/python2.7/site-packages/wx-3.0-msw/wx/_core.py:16633: UserWarning: wxPython/wxWidgets release number mismatch
 	 warnings.warn("wxPython/wxWidgets release number mismatch")
     Exception code=0xc0000005 flags=0x0 at 0x05A28FDE. Access violation - attempting to read data at address 0x00000000
     Segmentation fault

When I run this command 
$ pacman -Qs wx   I get
     local/mingw-w64-i686-wxPython 3.0.2.0-9
    	A wxWidgets GUI toolkit for Python (mingw-w64)
     local/mingw-w64-i686-wxWidgets 3.0.4-3
    	A C++ library that lets developers create applications for Windows, Linux and UNIX (mingw-w64)

Here is the version info:

Application: KiCad
Version: 5.99.0-unknown, debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.66.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.2
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    Build date: Oct 19 2019 09:19:25
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.71.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.66.0
    Compiler: GCC 9.2.0 with C++ ABI 1013

Build settings:
    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
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF



Follow ups