← Back to team overview

kicad-developers team mailing list archive

Re: Module editor upgrade

 

Hi Orson

The video ĺooks nice. :)

I just tried to build it today, but it failed when I enabled the
sripting. I don't know if you have tested that yourself, so I won't
tell the details now.

I did manage to build without scripting, but there are some segfaults.
But I get no segfault by just switching to opengl. I get a segfault if
I start pcbnew from the kicad app on a project. But if I open pcbnew
directly it do not segfault and I am able to go to opengl and open the
module editor just fine.

But running from the kicad app, I get another bt compared to Kaspar, I
have attached it. I happend when I hit the icon for the module editor
in the top toolbar.

Version: (2014-06-26 BZR 5056)-module_editor Release build
wxWidgets: Version 3.0.1 (debug,wchar_t,compiler with C++ ABI 1002,GCC
4.9.0,STL containers,compatible with 2.8)
Platform: Linux 3.15.1-1-ARCH x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.55.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=OFF
         KICAD_SCRIPTING_MODULES=OFF
         KICAD_SCRIPTING_WXPYTHON=OFF
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

2014-06-26 15:58 GMT+02:00 Maciej Sumiński <maciej.suminski@xxxxxxx>:
> Ladies and gentlemen,
>
> We have just reached the next step of our development plan. We would like to
> offer you a refurbished module editor, extended with the GAL and the Tool
> Framework. Besides the new graphic engine, you will find there:
> - layer widget - to select the drawing layer before you start creating
> graphics (including Edge.Cuts layer)
> - drawing tools - already known from the layout editor (draggable items,
> point editor, line splitting, etc.)
> - copy and paste using reference points - feel the power of instant
> replication
> - align/distribute - to save you some time on precise mouse movements
> - pad enumeration tool - that is the missing piece in the lightning fast
> footprint creation process
> - DXF import - we do not blame you if you prefer other graphic utils (it is
> possible mostly due to efforts of Jean-Pierre Charras, the main author of
> DXF import code)
>
> We invite you to watch a short video, in which you may see the new features
> in action. To give you an example, there is a part on how to draw a QFN64
> footprint in less than 2 minutes:
> https://vimeo.com/99235812
>
> The code is available for testing in the repository:
> https://code.launchpad.net/~cern-kicad/kicad/module_editor
> After a period of testing, it will be merged to the product branch. You may
> help shortening the time by letting us know if everything works as expected.
>
> I feel obliged to say thank you to the KiCad community that gave us a few
> thoughts regarding improvements. We should ask you more often, you have
> great ideas.
>
> Regards,
> Orson
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
$ gdb kicad
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kicad...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/kicad 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe867c700 (LWP 29240)]
[New Thread 0x7fffe7e7b700 (LWP 29241)]
[New Thread 0x7fffe767a700 (LWP 29242)]
[New Thread 0x7fffcebcc700 (LWP 29244)]
[New Thread 0x7fffce3cb700 (LWP 29245)]
[New Thread 0x7fffcdbca700 (LWP 29246)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe680aca4 in KIGFX::VIEW::SetCenter(VECTOR2<double> const&) () from /usr/bin/_pcbnew.kiface
(gdb) bt
#0  0x00007fffe680aca4 in KIGFX::VIEW::SetCenter(VECTOR2<double> const&) () from /usr/bin/_pcbnew.kiface
#1  0x00007fffe680c33c in KIGFX::VIEW::SetGAL(KIGFX::GAL*) () from /usr/bin/_pcbnew.kiface
#2  0x00007fffe687d72d in EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL(wxWindow*, int, wxPoint const&, wxSize const&, EDA_DRAW_PANEL_GAL::GalType) () from /usr/bin/_pcbnew.kiface
#3  0x00007fffe65180e6 in PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(wxWindow*, int, wxPoint const&, wxSize const&, EDA_DRAW_PANEL_GAL::GalType) () from /usr/bin/_pcbnew.kiface
#4  0x00007fffe64e6d92 in FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME(KIWAY*, wxWindow*) () from /usr/bin/_pcbnew.kiface
#5  0x00007fffe629e78b in PCB::IFACE::CreateWindow(wxWindow*, int, KIWAY*, int) () from /usr/bin/_pcbnew.kiface
#6  0x0000000000489852 in KIWAY::Player(FRAME_T, bool) ()
#7  0x00007fffe649741f in PCB_EDIT_FRAME::Process_Special_Functions(wxCommandEvent&) () from /usr/bin/_pcbnew.kiface
#8  0x00007ffff66eb29e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib/libwx_baseu-3.0.so.0
#9  0x00007ffff688a7d8 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#10 0x00007ffff688c5c3 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-3.0.so.0
#11 0x00007ffff688c648 in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#12 0x00007fffe6792eda in EDA_BASE_FRAME::ProcessEvent(wxEvent&) () from /usr/bin/_pcbnew.kiface
#13 0x00007ffff688a9a3 in wxEvtHandler::DoTryChain(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#14 0x00007ffff688c735 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#15 0x00007ffff7012268 in wxWindowBase::TryAfter(wxEvent&) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#16 0x00007ffff7ba2338 in wxAuiToolBar::OnLeftUp(wxMouseEvent&) () from /usr/lib/libwx_gtk2u_aui-3.0.so.0
#17 0x00007ffff66eb29e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib/libwx_baseu-3.0.so.0
#18 0x00007ffff688a7d8 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#19 0x00007ffff688c5c3 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-3.0.so.0
#20 0x00007ffff688c648 in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#21 0x00007ffff688c6d3 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#22 0x00007ffff688c735 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#23 0x00007ffff688a9f7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#24 0x00007ffff6e04e92 in ?? () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#25 0x00007ffff55948bf in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x00007ffff4f6e3d8 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#27 0x00007ffff4f7fd5d in ?? () from /usr/lib/libgobject-2.0.so.0
#28 0x00007ffff4f87719 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#29 0x00007ffff4f87d02 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#30 0x00007ffff56abaac in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#31 0x00007ffff5593004 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x00007ffff559349b in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x00007ffff5208e4c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#34 0x00007ffff482eb84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0x00007ffff482edc8 in ?? () from /usr/lib/libglib-2.0.so.0
#36 0x00007ffff482f08a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#37 0x00007ffff5592417 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#38 0x00007ffff6dd7545 in wxGUIEventLoop::DoRun() () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#39 0x00007ffff672fad0 in wxEventLoopBase::Run() () from /usr/lib/libwx_baseu-3.0.so.0
#40 0x00007ffff66edb76 in wxAppConsoleBase::MainLoop() () from /usr/lib/libwx_baseu-3.0.so.0
#41 0x00000000004503e9 in APP_KICAD::OnRun() ()
#42 0x00007ffff678995d in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-3.0.so.0
#43 0x0000000000431eee in main ()
(gdb) 


Follow ups

References