← Back to team overview

kicad-developers team mailing list archive

Re: eeschema undo assertion

 

The current undo item cannot be null so the assertion is raised and then
skips swapping the undo information between the two objects when the
users chooses to continue.  Is there a particular item where you undo
edits that causes the assertion or does it seem to be any item?  This
would help me narrow the issue down to a certain block of code.
Somewhere the current undo item is not being set properly which is
causing the assertion.

On 7/26/2016 10:27 AM, Chris Pavlina wrote:
> Thanks. It's annoying (mostly as I tend to instinctively dismiss it with
> escape and that makes wx abort the whole application...) and I'm not
> really familiar enough with the undo code to know what the problem is.
> I don't _think_ anything is seriously broken, as it seems to work when I
> dismiss it properly, but that assertion must have been added for a
> reason.
> 
> On Tue, Jul 26, 2016 at 08:09:07AM -0400, Wayne Stambaugh wrote:
>> Duh!  I was thinking wxLogDebug not wxASSERT.  I'll start running debug
>> builds to see if I can figure out why this is assertion is being triggered.
>>
>> On 7/25/2016 8:32 PM, Chris Pavlina wrote:
>>> No need for a terminal on Linux, wx displays assertions in dialogs in
>>> debug mode.
>>>
>>> On Mon, Jul 25, 2016 at 08:31:55PM -0400, Wayne Stambaugh wrote:
>>>> On 7/25/2016 7:44 PM, Chris Pavlina wrote:
>>>>> I'm getting a _lot_ of the following assertion lately. Did someone
>>>>> change something?
>>>>>
>>>>> /home/cmp/git/kicad/eeschema/schframe.cpp(593): assert "m_undoItem !=
>>>>> __null" failed in SaveUndoItemInUndoList(): Cannot swap undo item
>>>>> structures.  Bad programmer!.
>>>>>
>>>>
>>>> Not that I'm aware of but I haven't been running kicad from a terminal
>>>> on linux or with a debug output viewer on windows lately so it could
>>>> have been broken for awhile.
>>>>
>>>>
>>>> _______________________________________________
>>>> 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


Follow ups

References