← Back to team overview

kicad-developers team mailing list archive

Re: hard crash with pcbnew

 



On 05/07/2015 10:22 PM, Andy Peters wrote:
On May 6, 2015, at 12:55 PM, Andy Peters <devel@xxxxxxxxx> 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:       0x0000000000000000, 0x0000000000000000

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, some more testing. I built BZR 5645 on the 10.9 machine.

As Bob has noticed, it can sometimes be difficult to select a thin line, such as the board outline on the edge cuts. You have to be pretty accurate with your mouse. And I’ve noticed that if I just click-click-click impatiently, trying to get Kicad to recognize the selection, the exception noted above is thrown.

In parallel to all of this, I have noticed that with recent versions, pcbnew is slow to start up. In fact, a spinning beachball replaces the cursor for a little bit as it launches. And in some cases there is a slight delay between a mouse click and Kicad’s recognition of same. I wish I knew when this started. I first noticed it when using Adam’s nightlies, which I believe are configured to work on 10.7 and newer. I always build for whatever OS I’m actually running, so I do a build on my 10.10 laptop and my 10.9 iMac. My builds seem to run faster than Adam’s in this regard.

Perhaps that slight startup delay is a red herring, I do not know.

Anyways, what I think is happening is that before Kicad can display the correct context menu, it’s still processing mouse clicks and trying to put up another menu at the same time, and it gets all confused.

————————

And dang-nabbit, right now I saw a new one. Again with the click-click-click-click on the edge cut line, finally the line properties dialog came up, and I went to change a coordinate, and bang — crash again. But this time it’s a new exception:

NSInvalidArgumentException,
reason: ‘Unlocking Focus on wrong view (<wxNSView:0x60800366fc0>), expected <wxNSButton: 0x608000563180>’
abort() called
terminating with uncaught exception of type NSException

So I think maybe I have a poison build of wxWidgets, but it was also happening with Adam’s nightlies.

-a
_______________________________________________
My little Macbook Air is not the speediest Mac around, but I haven't
really noticed any slowness in the GUI response. When I double-click on
the KiCad.app icon in the Finder, the base window comes up very snappily.

I will try again to crash pcbnew - using fast click-click-click as you note.

Bob G


Follow ups

References