EEschema crash when I hit ERC button

Bug #1492513 reported by lichee
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Unassigned

Bug Description

EEschema crashes when I hit ERC in whatever project I opened. the button on the toolbar and in the menu are same.

The latest version I tried without this problem is "kicad-product-r5989.9b9c794-i686.exe"

Application: kicad
Version: (2015-09-03 BZR 6154, Git 4636d8d)-product release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.2.0,wx containers,compatible with 2.8)
Platform: Windows XP (build 2600, Service Pack 3), 32 bit, Little endian, wxMSW
Boost version: 1.57.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

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

I cannot duplicate this. If possible, please include a minimal schematic that causes the problem. I've tested most of my schematics and most of the kicad demo schematics without an issue.

Changed in kicad:
importance: Undecided → High
Revision history for this message
lichee (luleier) wrote :

I tested demo projects in "KiCad\share\kicad\demos" with BZR 6154

* complex_hierarchy
* flat_hierarchy
* electric
* kit-dev-coldfire-xilinx_5213
* pic_programmer

all crash.

And I came from this post.
https://forum.kicad.info/t/drc-in-eeschema-bzr-6115-6127-crashes/1221

Can I dump something from the crash?
I attached the screenshot when program crash.

Revision history for this message
elektrouwe (uwe-schueler) wrote :

I 'm the original poster from
https://forum.kicad.info/t/drc-in-eeschema-bzr-6115-6127-crashes/1221
the problem occurs in all schematics, even an empty one from a new project
When I draw a small schematic and hit the middle empty button in the ERC windows, ERC seems to work.
when I hit refresh in the ERC settings window even the 3 empty buttons disappear ( see ERCproblem2.jpg).
I asked a friend to check this on his PC. he installed a recent KICAD version, and eeschema even crashed, when starting ERC.
Both machines Win7 64bit KICAD 32 bit

PS: Thank you developers for KICAD, the best freeware EE design software ever !

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

I cannot duplicate this issue (W7, 32 bits).

It look like a build issue, or some incompatible library.

Have you built Kicad yourself on you computer?
If no, where is the source of these binaries?

Revision history for this message
lichee (luleier) wrote :

I download them from

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

and old versions from

http://www2.futureware.at/~nickoe/

I have tried several versions and I think there must be some code difference lead to this problem, because ERC are working on old versions I tested:

kicad-product-r5528.036404d-i686.exe
kicad-product-r5989.9b9c794-i686.exe

I perform uninstall and then check the kicad folder is deleted each time I try. So I think the enviroment on my PC is the same for old and latest versions.

I am trying to build the debug versin of KiCad using "kicad-winbuilder-3.4" now. I will tell you guys if I find something usefull.

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

I can confirm the snapshot from http://downloads.kicad-pcb.org/windows/ does not work on my computer (W7 32 bits).
Here is something wrong in a library.

Revision history for this message
elektrouwe (uwe-schueler) wrote :

I did exactly the same lichee did, exept that I don't want to install and manage the build chain :-)
error still there in r6171 (GIT1869401)
how could I help to get rid of this problem ?

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

You mean BZR 6167 Git 168940, BZR 6171is in the future at the current time.

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

@Jean-Pierre, can you provide more information about the issue with the library?

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

I am on this issue.

On Windows 7 32 bits, I have 2 build chains (both using wxWidgets 3.0.2).
- if I build Kicad with the latest "native" msys2 install (with gcc 5.2.0) I have this issue.
- If I build Kicad with a previous msys2 install (with gcc 5.2.0) 4.9.2 and wxWidgets build by myself (my usual build chain), all works fine.

- Winbuilder build also works fine.

There is the reason I am thinking there is a build/library issue, but I did not find exactly the reason.
(Built a full kicad version + a full wxWidgets version is very time consuming)

I cannot try the 64 bits build version.

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

Ok, nice to hear Jean-Pierre. I was trying to debug it yesterday but all I found was that it did not crash on the 64-bit build. But they were not really testing the same revision, but now the new nighties have a 32- and 64-bit build of the same revision. The compiler version should be the same, but I can try to verify that later.

Revision history for this message
elektrouwe (uwe-schueler) wrote :

Just installed BZR 6170 from http://downloads.kicad-pcb.org/windows/ both 32- and 64-bit version : can confirm ERC in 64-bit version ok; 32-bit: problem still there

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

Gcc 5.2.0 and wx 3.0.2 is used for both builds on the build server FWIW.

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

Can you try rev 6177 ?

Revision history for this message
lichee (luleier) wrote :

Problem solved ! The BZR 6177 version which I download from

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

do not crash on ERC.

Thanks to all your work.

PS1: My build debug version kicad work has failed many times on linking some pcbnew modules , and I tried 2 times from a fresh new start, servel times with pcbnew folder deleted in debug folder. At last I give up on this.

PS2: I am doing placement until now on my PCB Project on KiCad, I have to say it is intuitive to use, before that I remember when I learn PADS, I even read the manual to find how to use mouse in layout interface.

Application: kicad
Version: (2015-09-10 BZR 6177, Git 24409c6)-product release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.2.0,wx containers,compatible with 2.8)
Platform: Windows XP (build 2600, Service Pack 3), 32 bit, Little endian, wxMSW
Boost version: 1.57.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

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

@lichee, thank your for testing. I will mark this as fixed then.

Changed in kicad:
status: New → Fix Committed
Revision history for this message
elektrouwe (uwe-schueler) wrote :

great, thanks a lot for fixing it!

Jon Neal (reportingsjr)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.