Bug 1022819 - kicad doesn´t start / coredumps at start
kicad doesn´t start / coredumps at start
Status: RESOLVED DUPLICATE of bug 953017
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Current
x86-64 SUSE Other
: P5 - None : Critical (vote)
: ---
Assigned To: Dave Plater
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-31 13:30 UTC by Andreas Könecke
Modified: 2017-02-19 13:29 UTC (History)
7 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments
Output ldd $(which kicad) (4.61 KB, text/plain)
2017-01-31 13:35 UTC, Andreas Könecke
Details
Output strace kicad (56.63 KB, text/plain)
2017-01-31 13:37 UTC, Andreas Könecke
Details
Output zypper se -si kicad (1.32 KB, text/plain)
2017-01-31 13:46 UTC, Andreas Könecke
Details
Output zypper se -si wx (5.17 KB, text/plain)
2017-01-31 13:54 UTC, Andreas Könecke
Details
Output ldd $(which pcbnew) (4.52 KB, text/plain)
2017-02-03 22:35 UTC, Andreas Könecke
Details
Output strace pcbnew (436.95 KB, text/plain)
2017-02-03 22:36 UTC, Andreas Könecke
Details
Output zypper (13.85 KB, text/plain)
2017-02-07 13:26 UTC, Andreas Könecke
Details
Output zypper -v in -f python-wxWidgets (2.48 KB, text/plain)
2017-02-07 16:40 UTC, Andreas Könecke
Details
strace pcbnew (437.03 KB, text/plain)
2017-02-08 14:41 UTC, Andreas Könecke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Könecke 2017-01-31 13:30:51 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build Identifier: 

kicad never starts from KDE Application Menu.
If I try to start kicad from konsole it outputs:

akoenecke@kocom:~> kicad
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,STL containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,STL containers,compatible with 2.8).
Abgebrochen (Speicherabzug geschrieben)


Reproducible: Always

Steps to Reproduce:
1. Enter ´kicad´ in konsole

Actual Results:  
akoenecke@kocom:~> kicad
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,STL containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,STL containers,compatible with 2.8).
Abgebrochen (Speicherabzug geschrieben)

Expected Results:  
A running kicad

openSUSE Tumbleweed 20170129 64bit upgraded from openSUSE 13.2

kicad-Version: kicad-4.0.5-1.1.x86_64
KDE-Plasma_Version: 5.8.5
KDE-Frameworks-Version: 5.29.0
Qt-Version: 5.7.1
Kernel-Version: 4.9.6-1-default
prop. NVIDIA-Driver 375.26
Comment 1 Andreas Könecke 2017-01-31 13:35:13 UTC
Created attachment 712267 [details]
Output ldd $(which kicad)
Comment 2 Andreas Könecke 2017-01-31 13:37:46 UTC
Created attachment 712268 [details]
Output strace kicad
Comment 3 Andreas Könecke 2017-01-31 13:46:10 UTC
Created attachment 712270 [details]
Output zypper se -si kicad
Comment 4 Andreas Könecke 2017-01-31 13:54:20 UTC
Created attachment 712271 [details]
Output zypper se -si wx
Comment 5 Andreas Könecke 2017-02-03 22:31:19 UTC
Meanwhile I upgraded to kicad-4.0.5-38.1 from the electronics-Repository.
Now kicad itself starts and the schematiceditor works but trying to start the footprinteditor or pcbnew crashes kicad.

Starting pcbnew from konsole shows:

akoenecke@kocom:~> pcbnew
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,STL containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1010,STL containers,compatible with 2.8).
Abgebrochen (Speicherabzug geschrieben)
Comment 6 Andreas Könecke 2017-02-03 22:35:11 UTC
Created attachment 712868 [details]
Output ldd $(which pcbnew)
Comment 7 Andreas Könecke 2017-02-03 22:36:36 UTC
Created attachment 712869 [details]
Output strace pcbnew
Comment 8 Dave Plater 2017-02-07 10:47:42 UTC
Interesting, I had the same problem from codeblocks rpm that I built on my local machine but when I installed the same version from home:plater it ran. I assumed that a library was present on my local system that wasn't present in the online build. This is a wxWidgets issue.
Comment 9 Dave Plater 2017-02-07 11:03:14 UTC
Try refreshing your repositories and executing :
zypper -v in -f libwx_baseu-suse1 libwx_baseu-suse1 libwx_baseu-suse1 libwx_baseu_net-suse1 libwx_baseu_xml-suse1 libwx_baseu_xml-suse1 libwx_baseu_xml-suse1 libwx_gtk2u_adv-suse1 libwx_gtk2u_aui-suse1 libwx_gtk2u_core-suse1 libwx_gtk2u_gl-suse1 libwx_gtk2u_html-suse1 libwx_gtk2u_media-suse1 libwx_gtk2u_propgrid-suse1 libwx_gtk2u_qa-suse1 libwx_gtk2u_ribbon-suse1 libwx_gtk2u_richtext-suse1 libwx_gtk2u_stc-suse1 libwx_gtk2u_webview-suse1 libwx_gtk2u_xrc-suse1 kicad

If there are conflicts please post them.
Comment 10 Andreas Könecke 2017-02-07 13:25:59 UTC
OK, done. No conflicts or errors as I can see. (zypper output attached.)
But pcbnew aborts with same message:

akoenecke@kocom:~> pcbnew 
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,STL containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1010,STL containers,compatible with 2.8).
Abgebrochen (Speicherabzug geschrieben)
Comment 11 Andreas Könecke 2017-02-07 13:26:49 UTC
Created attachment 713189 [details]
Output zypper
Comment 12 Dave Plater 2017-02-07 15:08:44 UTC
Sorry I didn't look hard enough, can you also :
zypper -v in python-wxWidgets-3_0
That's hopefully where the build mismatch is
Comment 13 Andreas Könecke 2017-02-07 16:39:29 UTC
OK, no problem...

...but same error.
Comment 14 Andreas Könecke 2017-02-07 16:40:42 UTC
Created attachment 713220 [details]
Output zypper -v in -f python-wxWidgets
Comment 15 Andreas Könecke 2017-02-07 17:24:03 UTC
I´ve made a fresh installation of Tumbleweed in Virtualbox, installed kicad and pcbnew aborts with the same (old) error...
Comment 16 Dave Plater 2017-02-07 17:45:59 UTC
The latest kicad should be in Tumbleweed by now, did you install wxWidgets python-wxWidgets and kicad from the official Tumbleweed repository?
I'm busy trying to duplicate this problem.
Comment 17 Andreas Könecke 2017-02-07 18:03:52 UTC
The wxWidgets-packages are from 
http://download.opensuse.org/tumbleweed/repo/oss/
and the kicad-packages are from 
http://download.opensuse.org/repositories/electronics/openSUSE_Tumbleweed/
Comment 18 Andreas Könecke 2017-02-07 18:10:56 UTC
pcbnew from the kicad-package from 
http://download.opensuse.org/tumbleweed/repo/oss/
aborts with the same error message.
Comment 19 Dave Plater 2017-02-08 06:16:36 UTC
Please execute these steps

zypper ar -c http://download.opensuse.org/repositories/home:/plater/openSUSE_Tumbleweed plater

zypper -v in -f --from plater libwx_baseu-suse1 libwx_baseu-suse1 libwx_baseu-suse1 libwx_baseu_net-suse1 libwx_baseu_xml-suse1 libwx_baseu_xml-suse1 libwx_baseu_xml-suse1 libwx_gtk2u_adv-suse1 libwx_gtk2u_aui-suse1 libwx_gtk2u_core-suse1 libwx_gtk2u_gl-suse1 libwx_gtk2u_html-suse1 libwx_gtk2u_media-suse1 libwx_gtk2u_propgrid-suse1 libwx_gtk2u_qa-suse1 libwx_gtk2u_ribbon-suse1 libwx_gtk2u_richtext-suse1 libwx_gtk2u_stc-suse1 libwx_gtk2u_webview-suse1 libwx_gtk2u_xrc-suse1 kicad wxWidgets-3_0-devel python-wxWidgets-3_0 python-wxWidgets-3_0-devel

Then execute strace pcbnew and if this still fails I will build debugable versions.
Comment 20 Dave Plater 2017-02-08 06:19:51 UTC
Sorry, you must execute zypper ref after adding the repo with zypper ar
Comment 21 Dave Plater 2017-02-08 10:42:56 UTC
Building non language package version, will let you know when it's published.
Comment 22 Dave Plater 2017-02-08 10:43:38 UTC
(In reply to Dave Plater from comment #21)
Sorry wrong bug
Comment 23 Dave Plater 2017-02-08 12:09:58 UTC
wxhexeditor-0.23+git20161226-27.1 doesn't have language and conflicts the language package, it's in home:plater
Comment 24 Dave Plater 2017-02-08 12:11:02 UTC
sorry wrong bug again
Comment 25 Andreas Könecke 2017-02-08 14:40:55 UTC
OK, done.
Unfortunately the same error message.
Comment 26 Andreas Könecke 2017-02-08 14:41:54 UTC
Created attachment 713371 [details]
strace pcbnew
Comment 27 Bruno Friedmann 2017-02-13 17:32:54 UTC
How to prove wxWidget and python-wxWidget are completely broken on TW

python
import wxversion
wxversion.select(['3.0', '2.8', '2.6'])
import wx 

(SEGV)

In the grass building there a more interesting message

Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,STL containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1010,STL containers,compatible with 2.8).
Comment 28 Dmitry Roshchin 2017-02-13 17:47:01 UTC
Oh, again wx ABI problems.

Dominique, can you trigger rebuild of openSUSE:Factory/wxWidgets-3_0 and openSUSE:Factory/wxWidgets-3_0-nostl ?
Comment 29 Dominique Leuenberger 2017-02-13 21:56:05 UTC
(In reply to Dmitry Roshchin from comment #28)
> Oh, again wx ABI problems.
> 
> Dominique, can you trigger rebuild of openSUSE:Factory/wxWidgets-3_0 and
> openSUSE:Factory/wxWidgets-3_0-nostl ?

Done - rebuilds will be part of the 0214 snapshot
Comment 30 Dave Plater 2017-02-14 05:04:55 UTC
I can only duplicate this on 42.2 by doing a local rpmbuild of the codeblocks package, the package that builds in home:plater runs fine.
The part of wxWidgets that results in this error is:
src/common/appbase - wxAppConsoleBase::CheckBuildOptions(const char *optionsSignature,
const char *componentName)

The ABI values come from WX_BUILD_OPTIONS_SIGNATURE but I haven't yet determined how these values are created, WX_BUILD_OPTIONS_SIGNATURE is defined in include/wx/build.h
This is as far as I've reached in solving this bug.
Comment 31 Dave Plater 2017-02-14 05:17:23 UTC
I'm not sure if the rebuild of wxWidgets/wxPython is going to solve this as the reporter has reinstalled from controled rebuilds in home:plater. see comment#19
The problem may stem from GTK2.
Comment 32 Dave Plater 2017-02-14 05:50:57 UTC
I've removed the relax-abi.diff patch from wxWidgets-3_0 in home:plater and after everything has rebuilt and published, this can be tested.
Comment 33 Dave Plater 2017-02-14 10:24:37 UTC
After refreshing the home:plater repository can you reinstall these packages and see if the problem is fixed.

zypper -v in -f --from plater libwx_baseu-suse1 libwx_baseu-suse1 libwx_baseu-suse1 libwx_baseu_net-suse1 libwx_baseu_xml-suse1 libwx_baseu_xml-suse1 libwx_baseu_xml-suse1 libwx_gtk2u_adv-suse1 libwx_gtk2u_aui-suse1 libwx_gtk2u_core-suse1 libwx_gtk2u_gl-suse1 libwx_gtk2u_html-suse1 libwx_gtk2u_media-suse1 libwx_gtk2u_propgrid-suse1 libwx_gtk2u_qa-suse1 libwx_gtk2u_ribbon-suse1 libwx_gtk2u_richtext-suse1 libwx_gtk2u_stc-suse1 libwx_gtk2u_webview-suse1 libwx_gtk2u_xrc-suse1 kicad wxWidgets-3_0-devel python-wxWidgets-3_0 python-wxWidgets-3_0-devel
Comment 34 Andreas Könecke 2017-02-14 14:24:16 UTC
OK, pcbnew now starts without error message and is working. Also, kicad don´t crash if I try to open the footprinteditor.
Thank you.

But now other wxWidgets programs as wxcam (from packman repository) and wxHexEditor (from Tumbleweed repository) abort with the well known error message.
wxHexEditor from home:plater is running.
Comment 35 Dave Plater 2017-02-15 04:36:39 UTC
Removing the relax-abi.diff patch definitely fixes this bug and a completely rebuilt kicad, wxWidgets-3_0 and python-wxWidgets-3_0 with patch in place doesn't fix therefore there must be something wrong with the patch. A clue is that this bug doesn't happen with Leap:42.2 with the same wxWidgets/kicad mix.
Can you assist?
Comment 36 Dave Plater 2017-02-15 12:58:29 UTC
(In reply to Andreas Könecke from comment #34)
You can try wxcam from:
http://pmbs-api.links2linux.org:8080/home:/davepl/openSUSE_Tumbleweed/
It should match with your installed wxWidgets-3_0
Let me know the outcome.
Comment 37 Bruno Friedmann 2017-02-15 16:57:11 UTC
New wx build are available for TW and Factory 

I retry to build again grasss
but it is still complaining about mismatch

Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,STL containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1010,STL containers,compatible with 2.8).
make: *** [../../include/Make/Html.make:14: d.rast.edit.tmp.html] Error 1
rm d.rast.edit.tmp.html

Perhaps python-wxWidget need also a rebuild.

Dominique just trigger a rebuild 
All package of this list will get updated

http://paste.opensuse.org/76028302

and in snapshot 215
Comment 38 Dave Plater 2017-02-15 17:20:26 UTC
(In reply to Bruno Friedmann from comment #37)
I don't hold much hope for the rebuild, python-wxWidgets-3_0 faithfully rebuilds with wxWidgets-3_0.
Comment 39 Dominique Leuenberger 2017-02-15 17:31:25 UTC
FTR: kicad out of TW runs just fine - so, me too, I doubt any rebuild in TW has any impact here.

It rather seems some be some repo-mismatch on the machines you use
Comment 40 Dave Plater 2017-02-15 18:31:26 UTC
(In reply to Dominique Leuenberger from comment #39)
But if you read through the bug you'll see the reporter first synchronized with Tumbleweed then installed from my repo, which I made sure was completely and freshly rebuilt for wxWidgets-3_0 and python variant also kicad and still had the issue. I tested the same on 42.2 with no bug.
Only after the removal of the patch did the reporter have a correctly functioning kicad but packman's wxcam then had a mismatch.
The patch definitely has an effect on this bug.
Comment 41 Andreas Könecke 2017-02-15 20:32:50 UTC
(In reply to Dave Plater from comment #36)

I can´t install:

#rpm -U wxcam-1.1-5.2.x86_64.rpm 
warning: wxcam-1.1-5.2.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c3e84d08: NOKEY
error: Failed dependencies:
        libwx_baseu-suse.so.3()(64bit) is needed by wxcam-1.1-5.2.x86_64
        libwx_baseu-suse.so.3(WXU_3.0)(64bit) is needed by wxcam-1.1-5.2.x86_64
        libwx_gtk2u_adv-suse.so.3()(64bit) is needed by wxcam-1.1-5.2.x86_64
        libwx_gtk2u_adv-suse.so.3(WXU_3.0)(64bit) is needed by wxcam-1.1-5.2.x86_64
        libwx_gtk2u_core-suse.so.3()(64bit) is needed by wxcam-1.1-5.2.x86_64
        libwx_gtk2u_core-suse.so.3(WXU_3.0)(64bit) is needed by wxcam-1.1-5.2.x86_64

and 
#rpm -q --provides libwx_baseu-suse1-3.0.2-81.2.x86_64
libwx_baseu-suse.so.1()(64bit)
libwx_baseu-suse.so.1(WXU_3.0)(64bit)
libwx_baseu-suse.so.1(WXU_3.0.1)(64bit)
libwx_baseu-suse.so.1(WXU_3.0.2)(64bit)
libwx_baseu-suse1 = 3.0.2-81.2
libwx_baseu-suse1(x86-64) = 3.0.2-81.2
wxWidgets = 3.0.2
Comment 42 Jan Engelhardt 2017-02-15 22:16:31 UTC
The switch to the suse3 suffix is supposed to force a guaranteed rebuild of everything (as suse1 disappears, packages get into a state where they are not installable, which should hopefully kick some scheduler to schedule them for rebuild even in the face of rebuild=local in prjmeta).
Comment 43 Jan Engelhardt 2017-02-15 22:16:53 UTC
Same as 953017.

*** This bug has been marked as a duplicate of bug 953017 ***
Comment 44 Dave Plater 2017-02-16 06:13:28 UTC
(In reply to Andreas Könecke from comment #41)
The wxWidgets in my packman home weren't published. If you need wxcam now, it will most probably install but you will need to change kicad as well to match the new libraries. You will need to synchronize these packages with Tumbleweed after bug#953017 is resolved to get a stable system again.
Comment 45 Andreas Könecke 2017-02-16 20:32:29 UTC
(In reply to Dave Plater from comment #44)
> (In reply to Andreas Könecke from comment #41)
> The wxWidgets in my packman home weren't published. If you need wxcam now,
> it will most probably install but you will need to change kicad as well to
> match the new libraries. You will need to synchronize these packages with
> Tumbleweed after bug#953017 is resolved to get a stable system again.

I doesn´t need wxcam now. I´m happy and satisfied with a working kicad.

Thanks again for your effort.
Comment 46 Bernhard Wiedemann 2017-02-17 17:01:43 UTC
This is an autogenerated message for OBS integration:
This bug (1022819) was mentioned in
https://build.opensuse.org/request/show/458710 Factory / python-wxWidgets-3_0
Comment 47 Johannes Studt 2017-02-19 12:50:55 UTC
(In reply to Dominique Leuenberger from comment #39)
> FTR: kicad out of TW runs just fine - so, me too, I doubt any rebuild in TW
> has any impact here.
> 
> It rather seems some be some repo-mismatch on the machines you use

Here kicad out of TW croaks with the above described error:

hannes@gurkenkiste:~> zypper se -si libwx wxwidgets kicad
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S | Name                       | Typ   | Version      | Arch   | Repository    
--+----------------------------+-------+--------------+--------+---------------
i | kicad                      | Paket | 4.0.5-2.2    | x86_64 | Tumbleweed_OSS
i | kicad-doc                  | Paket | 4.0.5-1.2    | noarch | Tumbleweed_OSS
i | kicad-doc-de               | Paket | 4.0.5-1.2    | noarch | Tumbleweed_OSS
i | kicad-doc-en               | Paket | 4.0.5-1.2    | noarch | Tumbleweed_OSS
i | kicad-footprints           | Paket | 4.0.5-1.1    | noarch | Tumbleweed_OSS
i | kicad-lang-de              | Paket | 4.0.3-1.1    | noarch | Tumbleweed_OSS
i | kicad-library              | Paket | 4.0.5-1.1    | noarch | Tumbleweed_OSS
i | kicad-library-install      | Paket | 4.0.5-2.2    | x86_64 | Tumbleweed_OSS
i | libwx_baseu-suse1          | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_baseu_net-suse1      | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_baseu_xml-suse1      | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_adv-suse1      | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_aui-suse1      | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_core-suse1     | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_gl-suse1       | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_html-suse1     | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_media-suse1    | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_propgrid-suse1 | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_richtext-suse1 | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_stc-suse1      | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_webview-suse1  | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | libwx_gtk2u_xrc-suse1      | Paket | 3.0.2-9.2    | x86_64 | Tumbleweed_OSS
i | python-wxWidgets-3_0       | Paket | 3.0.2.0-2.11 | x86_64 | Tumbleweed_OSS
i | python-wxWidgets-3_0-lang  | Paket | 3.0.2.0-2.11 | x86_64 | Tumbleweed_OSS
hannes@gurkenkiste:~> pcbnew 
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,STL containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1010,STL containers,compatible with 2.8).
Abgebrochen (Speicherabzug geschrieben)
Comment 48 Bruno Friedmann 2017-02-19 13:27:16 UTC
You have to wait (like all of us) the publication of the new python3-wxWidgets to tumbleweed.
It's going to happen normally in less than a few days (1,2)
Comment 49 Bruno Friedmann 2017-02-19 13:29:56 UTC
You have to wait (like all of us) the publication of the new python3-wxWidgets to tumbleweed.
It's going to happen normally in less than a few days (1,2)