kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #38078
[RFC] wxPhoenix support
-
To:
KiCad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Thomas Pointhuber <thomas.pointhuber@xxxxxx>
-
Date:
Sun, 21 Oct 2018 12:46:30 +0200
-
Autocrypt:
addr=thomas.pointhuber@xxxxxx; prefer-encrypt=mutual; keydata= xsFNBFKxhfoBEADDCVK/vsBRi6BnOVSNa+2+xDQt+rBZt7D7BiTm6vaH/NYh+MFyujViIwIt dducp1y09Bkheqfy1tZVBznAC9L/+scePboOeTRTOMtghp041RXC6K7B4J3RMO0++9XdgDlC KLkNhpyPhb2uKVtGBzZjAPyV9udScv5AnQGrPvE1fIs7CreUPj+sSnRYb0sp5qZRaSpXSmKU NyTFEQtuaR1RXl0Dekj4BfXOr+RBdy8oewvGL64uJYd1ddsJ+uKLURbAZCd4n76g/7y1M+T+ Z0fsO7JT8HPA/4O9FrYHEl6dQTgCos3HsWqqP0xHzW9eR/xTXtNGJ8NSMO11Fla6U27Fb6os XFutSczwkoF3bkhLufodg1y9z+MZ3G5hBidYKRJMxFBLcKqtmcgwfSFI9IP50XH0RY1aOLXJ YsSO/1U+h5LHIYWirLvy6UvWdPD/+cSZgG6JxrHnd/gz0YxzNy8RNo9eGZx34+UTVw6OlKfP CnHvT56Dd9ntRxZ+okKvxSE2/Lc97/xrQj/L1Lgqo6QeHRRmn0V7tAGQR5iYTTVzitjnwGxm St8W4rUJRGdOhpig4r5vy8tZvZ9sJlNkQ2ah1iVTCV1+YBivuKi9EtMCEIoks9AfAPs9iFgl ftmT+5GKq5AA6QuXH9wwlgzJZKQi1UeB4i8RxKnN0De1tINesQARAQABzSxUaG9tYXMgUG9p bnRodWJlciA8dGhvbWFzLnBvaW50aHViZXJAZ214LmF0PsLBfQQTAQgAJwUCVvw/jgIbIwUJ CWYBgAULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAKCRDHCdh07a8lVokjD/wJ2fP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CBV FdEOvji9IfCEHM6isRXc4NnOVj9rtQMtDYFnHktT9gpNceJiR/h4u1DmvAqInaGeoKg8JtuM i9OLlNh5Stam/2qqzXaXwt9HSgj3JOzhtegl4eYNKjKCfKMBpAyo+Ze9wlpr8+d424TuXD0j 3niSS+5Cnqxv3GThLRoMrgxoBB2cNrCyNPZmIa13uNYqIprES241Cc1ehvapoICAjyx8Ql1F LTxL9HrFf42+pBQaLr12jVJXILplbfejLIq5taSMZnm7i1gBLS7GpnJdChF9EfO8wj0C5d0A EQEAAcLBZQQYAQIADwUCUrGF+gIbDAUJCWYBgAAKCRDHCdh07a8lVp3ND/48bcYCVbSZPVhZ Ii/4SLmCNa3He0NP7kfPfpGGLWSuqknKJ4HlfrNDV7duJTewydZ9O/3dL/gO2QqcCRP41OYZ m/JySmtxiFxRRM3oGozRTi2XO4UB2mMBroPElBMhGKpag+QrtHh2AseNZII9a4pOmVwpFABc yfffGirag+TGlQttbSiCq+8ZFxv/ao+5QkjFgyxG1fnF2SpnIchB7y6bkk2HPeVM7ZesCZTn CU7i8bT3XMu40+dmFFcbxyK6hxE8YcsgPzN+vynu7jmHjrZenKFyR4QiTyimTPHA1395sBuA k/KD3A7HooIQTqHU2wUo2PwBuY51KbGF6CI4kvTIaRg3Ain6Qc/t9oD3I1dFzsIA6iarnZrD H0dTVSVpO8n0bWVxzLz87PFkPJqlqQOYSYpxIupqOPI/AriVX0mAtH2V6VR4i0WGi2pf+A7v UXwkD7OdZzrv9GPOdM/oh2MpAfOTxPJZrkzkwx4lflNMnNTTEttwQdJRDQDrth7JGWVbCiWw 62x3Y12OdDRWu3t0ishZfO171R2PoLopC6p/28QAeOH4+zwABRVaSz6lCdAhZqfl/tUwo0Zh 6iNx3gjpI8ioj36IxpPHw/h3sERwgCICl9lOQTviPT/H9xiJazIjmH92eYH/Les/3I07/jVA Pm/7xjyRQ7uil90nCFwzjw==
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1
Hi,
Now with Python 3 merged it would be nice to get support for (optional)
wxPhoenix support into 5.1 as well. I have a preliminary branch running,
which works on Linux quite well (wx3.0.4+GTK3+python3.7+wxPhoenix). It's
mainly based on
patch-sets @mmccoo wrote some time ago.
https://github.com/pointhi/kicad-source-mirror/tree/wx-python
For windows, nickoe helped me to get a first build of this branch with
Python2+wxPython to ensure the old stack is not broken. Unfortunately,
closing the scripting console causes pcbnew to hang and then crash.
https://jenkins.simonrichter.eu/job/windows-kicad-msys2-patch/169/
I was able to reproduce the problem on Linux with
(wx3.0.4+GTK3+python2.7+wxPython). It seems some mutex is not
initialized, but I don't know how to fix this issue. The bug is likely
introduced due to the fact that the new code uses wx.FindWindowById to
find the parent instead of providing a direct reference to the window.
Unfortunately, keeping the old code-path would require us to include
wxpy_api.h (which will be included in the next wxPhoenix release) and
the introduction of SIP as new dependency.
```
[Thread 0x7fffd6739700 (LWP 29045) exited]
12:39:51: Debug: pthread_mutex_[timed]lock(): mutex not initialized
Thread 1 "pcbnew" received signal SIGSEGV, Segmentation fault.
0x00007ffff7492d50 in wxMutex::Lock() () from /usr/lib/libwx_baseu-3.0.so.0
(gdb) backtrace
#0 0x00007ffff7492d50 in wxMutex::Lock() () at
/usr/lib/libwx_baseu-3.0.so.0
#1 0x00007ffff7826cfb in wxApp::DoIdle() () at
/usr/lib/libwx_gtk3u_core-3.0.so.0
#2 0x00007ffff7826e94 in () at /usr/lib/libwx_gtk3u_core-3.0.so.0
#3 0x00007ffff52ee271 in g_main_context_dispatch () at
/usr/lib/libglib-2.0.so.0
#4 0x00007ffff52eff89 in () at /usr/lib/libglib-2.0.so.0
#5 0x00007ffff52f0f62 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#6 0x00007ffff58e41af in gtk_main () at /usr/lib/libgtk-3.so.0
#7 0x00007ffff7843c46 in wxGUIEventLoop::DoRun() () at
/usr/lib/libwx_gtk3u_core-3.0.so.0
#8 0x00007ffff7390bae in wxEventLoopBase::Run() () at
/usr/lib/libwx_baseu-3.0.so.0
#9 0x00007ffff7355517 in wxAppConsoleBase::MainLoop() () at
/usr/lib/libwx_baseu-3.0.so.0
#10 0x0000555555589955 in APP_SINGLE_TOP::OnRun() (this=0x5555556b1f50)
at kicad/common/single_top.cpp:186
#11 0x00007ffff73dd4c8 in wxEntry(int&, wchar_t**) () at
/usr/lib/libwx_baseu-3.0.so.0
#12 0x0000555555584a50 in main(int, char**) (argc=1,
argv=0x7fffffffd9e8) at kicad/common/single_top.cpp:260
```
Regards,
Thomas
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups