[Pkg-electronics-devel] Bug#895008: kicad: can't start pcbnew

Aurelien Jacobs aurel at gnuage.org
Sun Apr 8 12:41:45 UTC 2018


On Sun, Apr 08, 2018 at 08:00:52AM +0200, Carsten Schoenert wrote:
> Hello Aurelien,
> 
> On Sat, Apr 07, 2018 at 11:37:25PM +0200, Aurelien Jacobs wrote:
> ... 
> > I've tested this new build, and I can now start pcbnew including with
> > latest version python-wxgtk3.0, so this seems to fix the issue. Thanks !
> 
> excellent, thanks for testing, I also experienced no segfaulting issues
> any more while starting.
> 
> > Now this has uncovered another GTK+3 related issue for me in pcbnew.
> > If I enable "Modern Toolset (Accelerated)" in the Preferences menu,
> > pcbnew segfaults. It looks like it might be related to using
> > wxGLCanvasX11 (ie. calling libGLX and libX11) even though this GTK+3
> > build is now using Wayland instead of X11.
> 
> Hmm, I've no deeper knowledge about the internals of wayland vs. X11 so
> I probably can't help much here.
> It's known that pcbnew will crash under Wayland and the Modern Toolset
> in some cases. Please note the information on
> 
> http://kicad-pcb.org/help/known-system-related-issues/#_wayland
> 
> As you got a informative backtrace it mayed be a good idea to add this
> to the bug report mentioned on the above linked section. As this is now
> a different problem to the original bug report here I'd like close this
> report by a upload of this rebuilded version of src:kicad and create
> later a new report with the backtrace information from you.

Sure, this is the way to go.

> If you could spend some time to dig into this new issue under wayland
> I'd really appreciate this!

This is an upstream issue. It is tracked here for kicad:
https://bugs.launchpad.net/kicad/+bug/1755360

But the issue is actually in wxWidgets and is tracked here:
https://trac.wxwidgets.org/ticket/17702

This is not easy to fix, so we will probably have to live with it for
quite some time. It might be good to document this limitation in the
README.Debian the same way kicad just documented it here:
https://github.com/KiCad/kicad-website/pull/276/commits/f1adadb744819ff8fd164ef0446a140f7fd23586
And maybe also document the solution of running:
  GDK_BACKEND=x11 kicad
for those who really want accelerated backend.

> Back to the origin of this report.
> Upstream is planning to release a RC2 of KiCad 5 with a string freeze.
> The feature freeze was done with RC1 so only bugfixing will be done on
> KiCad. I plan to upload these RC2 related version to unstable to get a
> broader base for testing. 
> I don't have plans to upload a rebuild for KiCad 4.0.7 in unstable.

Sounds OK to me, but it might be good in the meantime to upload your
build using libwxgtk3.0-gtk3-dev in experimental (it all depends if
RC2 will be released in just a few days, or several weeks).

Thanks agains.
--
Aurel



More information about the Pkg-electronics-devel mailing list