← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Autosave assertion failure workaround

 

On Tue, 16 Jun 2015, Chris Pavlina wrote:

> When eeschema attempts to autosave a schematic that hasn't been saved 
> before, an assertion (common/basicframe.cpp:656) fails. Here's a patch 
> that works around that.
> 
> I call this a workaround rather than a fix because I'd rather autosave 
> still work for things that don't have a filename yet, but that has to be 
> done more carefully. It would require a check at startup for a backup 
> file saved to a predetermined location (ideally somewhere within either 
> /tmp or ~/.kicad on Linux, and the equivalent locations on other 
> systems).

/tmp would be a bad choice on Linux - some (many?) (all?) distros cleans
/tmp by default during boot, so the autosave file wouldn't survive
e.g. a power failure or a system crash ... or even a normal (re)boot.

> --
> Chris

Øyvind.

**************************************************************************
* Øyvind Aabling    Email: Oyvind.Aabling@ DeIC.dk / i2.dk /~\ The ASCII *
* DeIC / i2         Phone: +45 35 88 82 00                 \ / Ribbon    *
* DTU Building 304  Phone: +45 35 88 82 15 (direct)         X  Campaign  *
* DK-2800 Lyngby    Fax  : +45 35 88 82 01                 / \ Against   *
* Denmark        http://www.deic.dk/  http://www.i2.dk/    HTML Email!   *
**************************************************************************
Quidquid latine dictum sit, altum viditur.

References