[Pkg-electronics-devel] Bug#913864: kicad: Backtraces on opening cvpcb

Carsten Schoenert c.schoenert at t-online.de
Tue Dec 25 16:35:16 GMT 2018


Control: tags -1 wontfix

Hello Julien, happy Xmas!

Am 22.12.18 um 07:58 schrieb Julien Goodwin:
> On 15/12/18 5:34 pm, Carsten Schoenert wrote:
>> I tried to reproduce this issue on several machines in preparation for
>> 5.0.2. But I'm unable to get catched by your reported issue on any of my
>> machines. Even if I forced the install the packages python-wxgtk3.0 and
>> libwxgtk3.0-gtk3-0v5!
> 
> For me forcing python-wxgtk3.0_3.0.2.0+dfsg-4 is the way I make things work.

Reading your answer completely it's quite obvious why.

...
>> Are you really sure you are using a binary from the Debian archive? Can
> Yes.
> 
> I just upgraded to 5.0.2+dfsg1-1 last night, and before that played around.
> 
> Having a python plugin (in .kicad/scripting/plugins, and specifically
> InteractiveHtmlBom[1]) seems to be what triggers this.

I've looked into the symbol table while KiCad is running and there are
no GTK+3 related symbols loaded. So the clashing mus come from elsewhere.

Starting KiCad, open EEschema with some ordinary schematic and open
Cvpcb ...

> $ grep libwx /proc/$(pidof kicad)/maps
> 7fea4d7d7000-7fea4d802000 r--p 00000000 103:01 1057723                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.4.0
> 7fea4d802000-7fea4d9e1000 r-xp 0002b000 103:01 1057723                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.4.0
> 7fea4d9e1000-7fea4da17000 r--p 0020a000 103:01 1057723                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.4.0
> 7fea4da17000-7fea4da1e000 r--p 0023f000 103:01 1057723                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.4.0
> 7fea4da1e000-7fea4da1f000 rw-p 00246000 103:01 1057723                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.4.0
> 7fea4da22000-7fea4da26000 r--p 00000000 103:01 1056297                   /usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0.4.0
> 7fea4da26000-7fea4da2e000 r-xp 00004000 103:01 1056297                   /usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0.4.0
> 7fea4da2e000-7fea4da31000 r--p 0000c000 103:01 1056297                   /usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0.4.0
> 7fea4da31000-7fea4da32000 ---p 0000f000 103:01 1056297                   /usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0.4.0
> 7fea4da32000-7fea4da33000 r--p 0000f000 103:01 1056297                   /usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0.4.0
> 7fea4da33000-7fea4da34000 rw-p 00010000 103:01 1056297                   /usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0.4.0
> 7fea4da34000-7fea4da96000 r--p 00000000 103:01 1052315                   /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0.4.0
> 7fea4da96000-7fea4dc38000 r-xp 00062000 103:01 1052315                   /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0.4.0
> 7fea4dc38000-7fea4dcc3000 r--p 00204000 103:01 1052315                   /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0.4.0
> 7fea4dcc3000-7fea4dcc4000 ---p 0028f000 103:01 1052315                   /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0.4.0
> 7fea4dcc4000-7fea4dccf000 r--p 0028f000 103:01 1052315                   /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0.4.0
> 7fea4dccf000-7fea4dcd3000 rw-p 0029a000 103:01 1052315                   /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0.4.0
> 7fea4dce0000-7fea4dcf1000 r--p 00000000 103:01 1054165                   /usr/lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0.4.0
> 7fea4dcf1000-7fea4dd18000 r-xp 00011000 103:01 1054165                   /usr/lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0.4.0
> 7fea4dd18000-7fea4dd25000 r--p 00038000 103:01 1054165                   /usr/lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0.4.0
> 7fea4dd25000-7fea4dd26000 ---p 00045000 103:01 1054165                   /usr/lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0.4.0
> 7fea4dd26000-7fea4dd28000 r--p 00045000 103:01 1054165                   /usr/lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0.4.0
> 7fea4dd28000-7fea4dd29000 rw-p 00047000 103:01 1054165                   /usr/lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0.4.0
> 7fea4dd2a000-7fea4df3d000 r--p 00000000 103:01 1057066                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.4.0
> 7fea4df3d000-7fea4e20e000 r-xp 00213000 103:01 1057066                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.4.0
> 7fea4e20e000-7fea4e30f000 r--p 004e4000 103:01 1057066                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.4.0
> 7fea4e30f000-7fea4e381000 r--p 005e4000 103:01 1057066                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.4.0
> 7fea4e381000-7fea4e389000 rw-p 00656000 103:01 1057066                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.4.0
> 7fea4e395000-7fea4e3d5000 r--p 00000000 103:01 1057407                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.4.0
> 7fea4e3d5000-7fea4e43e000 r-xp 00040000 103:01 1057407                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.4.0
> 7fea4e43e000-7fea4e460000 r--p 000a9000 103:01 1057407                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.4.0
> 7fea4e460000-7fea4e46c000 r--p 000ca000 103:01 1057407                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.4.0
> 7fea4e46c000-7fea4e46f000 rw-p 000d6000 103:01 1057407                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.4.0
> 7fea4e470000-7fea4e51c000 r--p 00000000 103:01 1056439                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.4.0
> 7fea4e51c000-7fea4e5ea000 r-xp 000ac000 103:01 1056439                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.4.0
> 7fea4e5ea000-7fea4e633000 r--p 0017a000 103:01 1056439                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.4.0
> 7fea4e633000-7fea4e634000 ---p 001c3000 103:01 1056439                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.4.0
> 7fea4e634000-7fea4e654000 r--p 001c3000 103:01 1056439                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.4.0
> 7fea4e654000-7fea4e657000 rw-p 001e3000 103:01 1056439                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.4.0
> 7fea4e65b000-7fea4e68b000 r--p 00000000 103:01 1056716                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.4.0
> 7fea4e68b000-7fea4e6d2000 r-xp 00030000 103:01 1056716                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.4.0
> 7fea4e6d2000-7fea4e6eb000 r--p 00077000 103:01 1056716                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.4.0
> 7fea4e6eb000-7fea4e6f3000 r--p 0008f000 103:01 1056716                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.4.0
> 7fea4e6f3000-7fea4e6f4000 rw-p 00097000 103:01 1056716                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.4.0
> 7fea4e6f6000-7fea4e703000 r--p 00000000 103:01 1057359                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.4.0
> 7fea4e703000-7fea4e709000 r-xp 0000d000 103:01 1057359                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.4.0
> 7fea4e709000-7fea4e70c000 r--p 00013000 103:01 1057359                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.4.0
> 7fea4e70c000-7fea4e70d000 ---p 00016000 103:01 1057359                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.4.0
> 7fea4e70d000-7fea4e70f000 r--p 00016000 103:01 1057359                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.4.0
> 7fea4e70f000-7fea4e710000 rw-p 00018000 103:01 1057359                   /usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.4.0

Searching the packages the libraries comes from.

> $ for lib in baseu_xml gtk2u_stc baseu_net gtk2u_core gtk2u_html gtk2u_adv gtk2u_aui gtk2u_gl ; do dpkg -S /usr/lib/x86_64-linux-gnu/libwx_$lib-3.0.so.0.4.0; done
> libwxbase3.0-0v5:amd64: /usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0.4.0
> libwxgtk3.0-0v5:amd64: /usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.4.0
> libwxbase3.0-0v5:amd64: /usr/lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0.4.0
> libwxgtk3.0-0v5:amd64: /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.4.0
> libwxgtk3.0-0v5:amd64: /usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.4.0
> libwxgtk3.0-0v5:amd64: /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.4.0
> libwxgtk3.0-0v5:amd64: /usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.4.0
> libwxgtk3.0-0v5:amd64: /usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.4.0

All these libraries are the GTK+2 variants. I see no problems on the
KiCad packaging side.

> So if python is intended to be disabled it's clearly not.
> 
> 1: https://github.com/openscopeproject/InteractiveHtmlBom

Yeah, looking at this add-on you see that it is including the modules
'wx' and 'wx.aui' which are provided by the package python-wxgtk3.0 and
voilĂ , here we have the symbol clashing.

This add-on is simply doing no checks at all if the environment is ready
for get running this python scripting! And there is already a bug report
in the issue tracker about the problem you do experience!

https://github.com/openscopeproject/InteractiveHtmlBom/issues/47

But I hardly disagree with the rationale the author is writing, it's not
the job of the KiCad devs to ensure that his add-on is working with
KiCad, it's the responsibility of the author of this Python scripting to
not just simply assume that KiCad is build with Python GTK+3 ready
scripting support.

All this add-on have to do is checking if KiCad is build with GTK+3
support and compare this with the GTK version of python-wxgtk3.0 comes.
In the Debian packaging this can be found in
/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/build/build_options.py

It might be that python-kicad is currently missing some information
about the build environment, so this should be than addressed to the
KiCad devs to implement this.

As there is nothing to be done within the packaging I've tagged this
report with wontfix.

-- 
Regards
Carsten Schoenert



More information about the Pkg-electronics-devel mailing list