Re: [Kicad-developers] hard crash with pcbnew
On May 6, 2015, at 12:55 PM, Andy Peters de...@latke.net wrote: Using Adam’s nightly OS X builds, most recently BZR 5645, pcbnew is repeatedly crashing. It happens on both my 10.9 machine and my 10.10 machine. In OpenGL mode, it seems to get confused about menus, or something. It happens if I right-click to do something. I am not exactly sure what conditions cause it. Attached is the relevant part of the bug report: Crashed Thread:0 Dispatch queue: com.apple.main-thread Exception Type:EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Menu to be set as submenu is already a submenu of some menu.' abort() called terminating with uncaught exception of type NSException OK, I have come up with a sequence that will kill pcbnew dead every time. It happens with my builds, it happens with the nightlies. In the openGL canvas, select a footprint. Either left-click on it so it is highlighted, or right-click on it to bring up the context menu. Either select something from the context menu, or click the canvas to clear the selection, doesn’t matter. Then right-click on any footprint or element in the design. Bang — pcbnew will crash with the “Menu to be set as submenu is already a submenu of some menu.” The dispatch queue for the thread that crashes is here: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib0x7fff918e5866 __pthread_kill + 10 1 libsystem_pthread.dylib 0x7fff8baca35c pthread_kill + 92 2 libsystem_c.dylib 0x7fff88eb6b1a abort + 125 3 libc++abi.dylib 0x7fff92228f31 abort_message + 257 4 libc++abi.dylib 0x7fff9224e952 default_terminate_handler() + 264 5 libobjc.A.dylib 0x7fff9200c30d _objc_terminate() + 103 6 libc++abi.dylib 0x7fff9224c1d1 std::__terminate(void (*)()) + 8 7 libc++abi.dylib 0x7fff9224bc5b __cxa_throw + 124 8 libobjc.A.dylib 0x7fff9200bfa1 objc_exception_throw + 343 9 com.apple.CoreFoundation 0x7fff8f6b7038 +[NSException raise:format:arguments:] + 104 10 com.apple.Foundation 0x7fff8ef25361 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189 11 com.apple.AppKit 0x7fff95f17912 -[NSMenuItem setSubmenu:] + 203 12 libwx_osx_cocoau_core-3.0.0.dylib 0x00010d608d5a wxMenuCocoaImpl::InsertOrAppend(wxMenuItem*, unsigned long) + 202 13 libwx_osx_cocoau_core-3.0.0.dylib 0x00010d560f6a wxMenu::DoInsertOrAppend(wxMenuItem*, unsigned long) + 122 14 libwx_osx_cocoau_core-3.0.0.dylib 0x00010d5615c9 wxMenu::DoAppend(wxMenuItem*) + 41 15 _pcbnew.kiface0x0001137a8f17 CONTEXT_MENU::Add(CONTEXT_MENU*, wxString const, bool) + 423 16 _pcbnew.kiface0x0001131f48b4 CONDITIONAL_MENU::Generate(SELECTION) + 212 17 _pcbnew.kiface0x0001131ea6db SELECTION_TOOL::Main(TOOL_EVENT const) + 571 18 _pcbnew.kiface0x00011379ec46 COROUTINEint, TOOL_EVENT const::callerStub(long) + 38 19 _pcbnew.kiface0x0001138da537 make_fcontext + 55 so basically what I think is happening is that the previous context menu hasn’t been “released.” This is where my application-programming fu is very thin. -a ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] KiCad feature videos?
On May 12, 2015, at 8:48 AM, Adam Wolf adamw...@feelslikeburning.com wrote: Hi folks, I'm preparing a presentation on KiCad for Maker Faire Bay Area this weekend. (Fun fact: the presentation after me is someone designing a Raspberry Pi daughterboard *on KiCad on a Raspberry Pi*). The audience will be folks who may be interested in making PCBs, and may work with fancy pants PCB designers, but are probably closer to the beginner side. I'm hoping to cover a little of KiCad history, newish features (openGL, Python, PS routing, differential routing), upcoming features (eeschema revamp...), and the new release rhythm and nightlies. I know there's the longish videos by the CERN folks on the differential routing, but does anyone have fun videos of openGL mode being awesome, or the PS routing? I can make my own, but if someone already has them and is willing to share, I'd love to include them. I hate to offer this, but if anyone else has suggestions on things I should mention, feel free to send them on. Thanks everyone! You should mention: A) Libraries. B) Libraries. C) Libraries! because that always seems to be the biggest sticking point with anyone trying to use any new PCB CAD package. Perhaps talk about library management schemes, and why one might prefer a custom library over the Kicad- (or other vendor-) provided libraries. -a ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] Generating Gerbers from Python Scripts
Hello all, I'm working on a custom circuit board printer - the Voltera V-One ( http://voltera.io/). We're working hard to ensure full compatibility with KiCad - would anyone be willing to explain how gerber file generation works with KiCad python scripting? Any help would be much appreciated. Thanks everyone! Arjun Bali ar...@voltera.io ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] KiCad feature videos?
This is an old video, and its totally unrelated to the latest kicad goodness, but it has some charm. Nowdays we have a *much* better 3D export. If you like it feel free to use or remove the last seconds. https://vimeo.com/62033928 https://vimeo.com/66485823 It was made with kicad+freecad+recordmydesktop. Regards Marcos On Tue, May 12, 2015 at 12:48 PM, Adam Wolf adamw...@feelslikeburning.com wrote: Hi folks, I'm preparing a presentation on KiCad for Maker Faire Bay Area this weekend. (Fun fact: the presentation after me is someone designing a Raspberry Pi daughterboard *on KiCad on a Raspberry Pi*). The audience will be folks who may be interested in making PCBs, and may work with fancy pants PCB designers, but are probably closer to the beginner side. I'm hoping to cover a little of KiCad history, newish features (openGL, Python, PS routing, differential routing), upcoming features (eeschema revamp...), and the new release rhythm and nightlies. I know there's the longish videos by the CERN folks on the differential routing, but does anyone have fun videos of openGL mode being awesome, or the PS routing? I can make my own, but if someone already has them and is willing to share, I'd love to include them. I hate to offer this, but if anyone else has suggestions on things I should mention, feel free to send them on. Thanks everyone! Adam Wolf Cofounder and Engineer WL ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Generating Gerbers from Python Scripts
Arjun, there is an example script made by JP Charras at demos/python_scripts_examples ( https://github.com/KiCad/kicad-source-mirror/tree/master/demos/python_scripts_examples ). It generates Gerbers and drill files. 2015-05-12 13:32 GMT-03:00 Arjun Bali ar...@voltera.io: Hello all, I'm working on a custom circuit board printer - the Voltera V-One ( http://voltera.io/). We're working hard to ensure full compatibility with KiCad - would anyone be willing to explain how gerber file generation works with KiCad python scripting? Any help would be much appreciated. Thanks everyone! Arjun Bali ar...@voltera.io ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp -- Paulo Henrique Silva Curta Circuitos Brazil ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] Help needed to fix a minor issue in GAL mode
Hi, Orson. I need your help to fix a minor but very strange issue in Pcbnew, in GAL mode, relative to hot keys. This is about grid selection from hotkeys (next and previous grid selection with 'N' and 'shift N' keys, and also fast grid selection). In legacy mode, all is OK, but in GAL mode the actual grid on screen is not updated. When PCB_BASE_FRAME::SetNextGrid() and PCB_BASE_FRAME::SetPrevGrid() are called from the OnHotKey(), the grid combo box is updated as expected, but the grid shown on screen does not change (is not updated). I made some tests, and if these same functions are called from for instance a dialog, the grid shown on screen is updated. This is only when these functions are called from a hotkey the issue appears. In other words, for me the call: GetToolManager()-RunAction( common.Control.gridPreset, true, value); works fine when called from a dlg (or combo box) event, but not from OnHotKey() (called from a wxKeyEvent event ). Currently, I am unable to fix this minor issue. Thanks for your help. -- Jean-Pierre CHARRAS ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Help needed to fix a minor issue in GAL mode
Le 12/05/2015 12:06, Maciej Sumiński a écrit : Hi Jean-Pierre, Thank you for noting, it should be fixed in revision 5652. Regards, Orson Thanks. Works fine now. -- Jean-Pierre CHARRAS ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] KiCad feature videos?
You might mention that for those who need to interact with mechanical designers KiCad can export IDF interchange files. For those who like to roll their own, FreeCAD will read the files; for those who send the files to another shop, they can convert the IDF file to VRML and view it with a VRML viewer - no need to install FreeCAD. Plus: coming up (maybe towards the end of this year), KiCad will be able to export to IGES to provide the mechanical designers with a much more accurate 3D model of the project. IDF only represents components as simple extrusions, but IGES can provide accurate 3D models. I made component models for the demo projects 'video' and 'pic_programmer' to show the IDF exporter at work. If you wish I can send you a tarball of the IDF files and the resulting VRML files as produced by the idf2vrml tool. Making a few comparisons to Eagle: 1. KiCad has a native IDF exporter, Eagle requires the user to install a ULP. 2. KiCad: 32 copper layers, 16 tech layers; Eagle: 16 copper (I don't know the limit on tech layers). 3. KiCad: free + no artificial limits placed on capabilities; Eagle: artificial limits placed depending on license fees. Although the feature is still in development, once KiCad can export IGES models I expect this to become a free built-in capability. With Eagle you need to pay an *annual* license to a third party for IGES or STEP export. Note: I don't expect KiCad to have STEP export for at least another 2 years unless someone else with time on their hands is inspired to code it; I mean a meaningful STEP export which maintains product relationships and a proper assembly heirarchy, not the flat file produced by FreeCAD/ OpenCascade which is absolutely useless to mechanical designers. - Cirilo On Wed, May 13, 2015 at 1:48 AM, Adam Wolf adamw...@feelslikeburning.com wrote: Hi folks, I'm preparing a presentation on KiCad for Maker Faire Bay Area this weekend. (Fun fact: the presentation after me is someone designing a Raspberry Pi daughterboard *on KiCad on a Raspberry Pi*). The audience will be folks who may be interested in making PCBs, and may work with fancy pants PCB designers, but are probably closer to the beginner side. I'm hoping to cover a little of KiCad history, newish features (openGL, Python, PS routing, differential routing), upcoming features (eeschema revamp...), and the new release rhythm and nightlies. I know there's the longish videos by the CERN folks on the differential routing, but does anyone have fun videos of openGL mode being awesome, or the PS routing? I can make my own, but if someone already has them and is willing to share, I'd love to include them. I hate to offer this, but if anyone else has suggestions on things I should mention, feel free to send them on. Thanks everyone! Adam Wolf Cofounder and Engineer WL ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] hard crash with pcbnew
Hi Orson, if you talk about the “onrightclick.cpp” fix in 5648, then I think this one only would address the other problem reported by Andy (if at all, that was just a guess of mine): NSInvalidArgumentException, reason: ‘Unlocking Focus on wrong view (wxNSView:0x60800366fc0), expected wxNSButton: 0x608000563180’ abort() called terminating with uncaught exception of type NSException The still open *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Menu to be set as submenu is already a submenu of some menu.' abort() called terminating with uncaught exception of type NSException is in my opinion a race condition resp. synchronisation problem of the COROUTINE stuff… at least in the “click second time before context menu had opened” case. Regards, Bernhard On 12 May 2015, at 09:24, Maciej Sumiński maciej.sumin...@cern.ch wrote: Hi Andy, Have you upgraded source code recently (revision =5648)? Jean-Pierre has committed a potential fix for the problem. Regards, Orson On 05/12/2015 08:37 AM, Andy Peters wrote: On May 6, 2015, at 12:55 PM, Andy Peters de...@latke.net wrote: Using Adam’s nightly OS X builds, most recently BZR 5645, pcbnew is repeatedly crashing. It happens on both my 10.9 machine and my 10.10 machine. In OpenGL mode, it seems to get confused about menus, or something. It happens if I right-click to do something. I am not exactly sure what conditions cause it. Attached is the relevant part of the bug report: Crashed Thread:0 Dispatch queue: com.apple.main-thread Exception Type:EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Menu to be set as submenu is already a submenu of some menu.' abort() called terminating with uncaught exception of type NSException OK, I have come up with a sequence that will kill pcbnew dead every time. It happens with my builds, it happens with the nightlies. In the openGL canvas, select a footprint. Either left-click on it so it is highlighted, or right-click on it to bring up the context menu. Either select something from the context menu, or click the canvas to clear the selection, doesn’t matter. Then right-click on any footprint or element in the design. Bang — pcbnew will crash with the “Menu to be set as submenu is already a submenu of some menu.” The dispatch queue for the thread that crashes is here: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib0x7fff918e5866 __pthread_kill + 10 1 libsystem_pthread.dylib 0x7fff8baca35c pthread_kill + 92 2 libsystem_c.dylib 0x7fff88eb6b1a abort + 125 3 libc++abi.dylib 0x7fff92228f31 abort_message + 257 4 libc++abi.dylib 0x7fff9224e952 default_terminate_handler() + 264 5 libobjc.A.dylib 0x7fff9200c30d _objc_terminate() + 103 6 libc++abi.dylib 0x7fff9224c1d1 std::__terminate(void (*)()) + 8 7 libc++abi.dylib 0x7fff9224bc5b __cxa_throw + 124 8 libobjc.A.dylib 0x7fff9200bfa1 objc_exception_throw + 343 9 com.apple.CoreFoundation 0x7fff8f6b7038 +[NSException raise:format:arguments:] + 104 10 com.apple.Foundation 0x7fff8ef25361 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189 11 com.apple.AppKit 0x7fff95f17912 -[NSMenuItem setSubmenu:] + 203 12 libwx_osx_cocoau_core-3.0.0.dylib 0x00010d608d5a wxMenuCocoaImpl::InsertOrAppend(wxMenuItem*, unsigned long) + 202 13 libwx_osx_cocoau_core-3.0.0.dylib 0x00010d560f6a wxMenu::DoInsertOrAppend(wxMenuItem*, unsigned long) + 122 14 libwx_osx_cocoau_core-3.0.0.dylib 0x00010d5615c9 wxMenu::DoAppend(wxMenuItem*) + 41 15 _pcbnew.kiface0x0001137a8f17 CONTEXT_MENU::Add(CONTEXT_MENU*, wxString const, bool) + 423 16 _pcbnew.kiface0x0001131f48b4 CONDITIONAL_MENU::Generate(SELECTION) + 212 17 _pcbnew.kiface0x0001131ea6db SELECTION_TOOL::Main(TOOL_EVENT const) + 571 18 _pcbnew.kiface0x00011379ec46 COROUTINEint, TOOL_EVENT const::callerStub(long) + 38 19 _pcbnew.kiface0x0001138da537 make_fcontext + 55 so basically what I think is happening is that the previous context menu hasn’t been “released.” This is where my application-programming fu is very thin. -a ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Help needed to fix a minor issue in GAL mode
Hi Jean-Pierre, Thank you for noting, it should be fixed in revision 5652. Regards, Orson On 05/12/2015 11:24 AM, jp charras wrote: Hi, Orson. I need your help to fix a minor but very strange issue in Pcbnew, in GAL mode, relative to hot keys. This is about grid selection from hotkeys (next and previous grid selection with 'N' and 'shift N' keys, and also fast grid selection). In legacy mode, all is OK, but in GAL mode the actual grid on screen is not updated. When PCB_BASE_FRAME::SetNextGrid() and PCB_BASE_FRAME::SetPrevGrid() are called from the OnHotKey(), the grid combo box is updated as expected, but the grid shown on screen does not change (is not updated). I made some tests, and if these same functions are called from for instance a dialog, the grid shown on screen is updated. This is only when these functions are called from a hotkey the issue appears. In other words, for me the call: GetToolManager()-RunAction( common.Control.gridPreset, true, value); works fine when called from a dlg (or combo box) event, but not from OnHotKey() (called from a wxKeyEvent event ). Currently, I am unable to fix this minor issue. Thanks for your help. signature.asc Description: OpenPGP digital signature ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] KiCad feature videos?
Hi folks, I'm preparing a presentation on KiCad for Maker Faire Bay Area this weekend. (Fun fact: the presentation after me is someone designing a Raspberry Pi daughterboard *on KiCad on a Raspberry Pi*). The audience will be folks who may be interested in making PCBs, and may work with fancy pants PCB designers, but are probably closer to the beginner side. I'm hoping to cover a little of KiCad history, newish features (openGL, Python, PS routing, differential routing), upcoming features (eeschema revamp...), and the new release rhythm and nightlies. I know there's the longish videos by the CERN folks on the differential routing, but does anyone have fun videos of openGL mode being awesome, or the PS routing? I can make my own, but if someone already has them and is willing to share, I'd love to include them. I hate to offer this, but if anyone else has suggestions on things I should mention, feel free to send them on. Thanks everyone! Adam Wolf Cofounder and Engineer WL ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp