KiCad crashing when selecting footprint on Footprint Editor. Load footprint from library, Select by Browser on the second time.

Bug #1816256 reported by Alexey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

In footprint editor choose "Load footprint from library" > "Select by Browser"
If the action performed first time everything works fine. On the second time it crashes KiCad.

Windows 8.1
KiCad 5.0.2_1 x86_64
KiCad 5.0.2_2 x86_64
KiCad 5.0.2_3 x86_64

Revision history for this message
eelik (eelik) wrote :

(I'm not a KiCad developer.)

This doesn't happen for me with 5.0.2 flatpak package on Kubuntu. 5.1 will have different UI, there's no "Load footprint from library", so this is hardly relevant for 5.1. Can you test nightly builds and see if there's anything which could be affected?

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

Please include your kicad version information. The package information you provided is not the same thing.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Alexey (gav-9) wrote :

Application: kicad
Version: (5.0.2-dirty)-3, 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
Seth Hillbrand (sethh) wrote :

@Alexey- Can you please try with an official release from the KiCad website?

http://kicad-pcb.org/download/windows/

Revision history for this message
Alexey (gav-9) wrote :

Also craches.

Application: kicad
Version: (5.0.2)-1, 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
Seth Hillbrand (sethh) wrote :

Thank you for checking. Can you try with one of the nightly Windows builds? We are very close to releasing version 5.1, so 5.0.2 will not receive bug fixes at this point. If this is reproducible with v5.1, we can try to track down the issue.

Revision history for this message
Alexey (gav-9) wrote :

Now I can get the same by Pcbnew->Open in Footprint Editor. On the second time it also crashes...

Unfortunatelly my Windows has only russian language, but may be this crash report will help:
Сигнатура проблемы:
  Имя события проблемы: APPCRASH
  Имя приложения: kicad.exe
  Версия приложения: 0.0.0.0
  Отметка времени приложения: 00000000
  Имя модуля с ошибкой: ig7icd64.dll
  Версия модуля с ошибкой: 10.18.10.3408
  Отметка времени модуля с ошибкой: 52d82da8
  Код исключения: c0000005
  Смещение исключения: 0000000000209e3e
  Версия ОС: 6.3.9600.2.0.0.768.100
  Код языка: 1049
  Дополнительные сведения 1: 2493
  Дополнительные сведения 2: 2493de491cf41974ab26ff3e9fa110ed
  Дополнительные сведения 3: 632d
  Дополнительные сведения 4: 632dbbd35c3d62c4d7ad0fce284ba712

Ознакомьтесь с заявлением о конфиденциальности в Интернете:
  http://go.microsoft.com/fwlink/?linkid=280262

Если заявление о конфиденциальности в Интернете недоступно, ознакомьтесь с его локальным вариантом:
  C:\WINDOWS\system32\ru-RU\erofflps.txt

Application: kicad
Version: (5.1.0-rc1-81-g27b4f2fbe), 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_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
Seth Hillbrand (sethh) wrote :

This does help, thank you. The issue is with your intel graphics driver. Please update it from Microsoft and/or intel.

Changed in kicad:
status: Incomplete → New
Revision history for this message
Jeff Young (jeyjey) wrote :

@Seth, is there something for us to do here, or should we close this one?

Revision history for this message
Seth Hillbrand (sethh) wrote :

I think we close this one. I was hoping that Alexey could let us know whether updating solved his issue.

Oddly, despite this crashing inside the Intel driver dll, I have some suspicion that this may have been solved in KiCad by separating the OpenGL shader contexts. That is, the driver should have been able to handle reloading the shader from a different context but if it didn't, it may have crashed before and shouldn't now.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Alexey (gav-9) wrote :

As I wrote before 5.1.0-rc1-81-g27b4f2fbe crashes. But this bug is only on my ASUS x553ma laptop and it has no opportunity to reinstall video driver. I've tried to install KiCad on 3 other PCs with Windows 10 and iMac. There is no bug on nightly build and official release. The only thing I've found - 3dviewer on MacOS shows grey screen in fullscreen mode, window mode works as expected.
I'll try to reinstall latest night build and let you know the results.

Revision history for this message
Seth Hillbrand (sethh) wrote :

Thanks Alexey.

You can also try with a new (2/26 or newer) nightly build on your ASUS laptop. If I'm right, the new nightly build handles the driver differently and may prevent crashes.

Revision history for this message
Alexey (gav-9) wrote :

I've just installed the latest version. Bug is fixed. Thanks.

Application: kicad
Version: (5.1.0-rc2-4-g73f0b3087), 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_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
Seth Hillbrand (sethh) wrote :

Excellent! Thanks for reporting back.

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