pcbnew crashes when trying to fill/refill all zones

Bug #1386892 reported by Matt Anderson
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

Build:(2014-jul-16 BZR unknown)-product on 64 bit Ubuntu Trusty

When I click fill or refill all zones a dialog quickly pops up and then the entier KiCad suite crashes. Feels like a seg fault.

Revision history for this message
Matt Anderson (wmattanderson) wrote :

Upgraded to the 2014-09-25 BZR 5147 snapshot from http://kicad.nosoftware.cz/ and this problem went away. Still seems a little scary because I couldn't find any bug report on this issue after July 2014, hopefully it was really fixed and won't show back up again...this kind of thing will turn people away from Kicad.

Revision history for this message
Felix Vollmer (felixvollmer) wrote :

I also had the problem that zone fill (and drc) would segfault. For me the problem was solved by updating to wxwidgets 3.0.2.

According to mailing list (https://lists.launchpad.net/kicad-developers/msg14310.html) this was the bug: http://trac.wxwidgets.org/ticket/16423#ticket

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

Matt, what was the version you used originally? The unknows indicated the build source was fetched from the git mirror.

Can you try to reproduce that bug or cofirm that wx 3.0.2 fixes it?

Revision history for this message
Matt Anderson (wmattanderson) wrote :

I was installing from http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu, who I assume just builds the code for ubuntu from the bzr or git mirror. The version information I listed was from the about->build screen, I am not aware of anywhere else versioning is reported (it probably should be there).
I first updated to the snapshot listed above to see if that fixed the issue, then went back to the ppa and updated to newest version and can no longer reproduce the error.

At this point the about listing in KiCad says:

Build: (2014-jul-16 BZR unknown)-product
wxWidgest 3.0.1 Unicode and boost C++ libraries
on 64 Bits GNU/Linux

I don't see how bugs can be tracked if version information doesn't get reported, probably I just don't know where to look.

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

Tell me what version of wxwidgets was used in the 2014-09-25 BZR 5147 snapshot from http://kicad.nosoftware.cz/ as mentionen in comment #1.

Revision history for this message
Max (m-rest) wrote :

I am also highly affected by this bug.

I run Kicad from the daily built ppa http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu trusty main and updated wxWidgets according to this website: http://codelite.org/LiteEditor/WxWidgets30Binaries

Kicad about says

Build 0.201501270101+5388~20~ubuntu14.04.1 - product
wxWidgets 3.0.1 Unicode and boost C++ libraries
on 64 Bits GNU/Linux

I don't get the reason why wx-widgets 3.0.1 packages from ubuntu are also still installed. I don't happen to be able to remove them without apt-get wanting to remove kicad also.

Revision history for this message
Max (m-rest) wrote :

For the Daily PPA it seems like this patch needs to be applied either to the existing wxWidgets-3.0.1 package or wxWidgets needs to be updated to 3.0.2 to solve this bug.

The package maintainer is already informed.

Revision history for this message
Max (m-rest) wrote :
Revision history for this message
Matt Anderson (wmattanderson) wrote :

This problem is back again on Build:(2015-02-11 BZR 5414)-product. Most the time when you fill or refill all zones the whole Kicad suite goes down. If you do it enough times it will eventually succeed.

Revision history for this message
Max (m-rest) wrote :

I sent the patch mentioned above to the package maintainer of the Trusty backport of wxWidgets, Adam Wolf.

He wanted to upload a fixed package to the ppa. Maybe you want to send him a message and ask about the progress? It is immediately fixed forever with the patch. Contact me if you are in urgent need for a patched .deb package.

Revision history for this message
Matt Anderson (wmattanderson) wrote :

Just so I'm clear, I need a patched version of wxWidgets?

I now build Kicad from source, but I still have this problem, wxWidgets is 3.0.1

Revision history for this message
Max (m-rest) wrote :

Exactly. Simply apply the patch from [http://trac.wxwidgets.org/changeset/77082/svn-wx] to wxWidgets 3.0.1. You can then also use the daily ppa again.

Do something like this:

- download the source packages from
https://launchpad.net/ubuntu/+source/wxwidgets3.0/3.0.1-3

- dpkg-source -x wxwidgets3.0_3.0.1-3.dsc

- edit window.cpp according to http://trac.wxwidgets.org/changeset/77082/svn-wx

- try dpkg-source -b wxwidgets3.0-3.0.1/ - it fails, but you get the path to the patch in /tmp/.... from it's output

- change the patch description to your needs, copy it to /debian/patches/wx-fix_stackpointer.patch and add the name to the 'series' file

- build all packages with dpkg-buildpackage -us -uc

- install libwxgtk3.0-0_3.0.1-3_amd64.deb and libwxbase3.0-0_3.0.1-3_amd64.deb as those contain the libs used by Kicad.

Revision history for this message
Adam Wolf (adamwolf) wrote :

I will update wxwidgets in https://launchpad.net/~adamwolf/+archive/ubuntu/kicad-trusty-backports over the weekend and that should fix the issue for everyone.

Revision history for this message
Adam Wolf (adamwolf) wrote :

(For posterity's sake, I pushed those packages a while ago.)

Changed in kicad:
status: New → Fix Released
Revision history for this message
Max (m-rest) wrote :

Thanks Adam, solved for me with your updated version.

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.