[EMAIL PROTECTED] wrote: > Author: baum > Date: Tue May 15 12:01:08 2007 > New Revision: 18337 > > URL: http://www.lyx.org/trac/changeset/18337 > Log: > prevent assertion in fs::last_write_time for corrupted cache index > > Modified: > lyx-devel/branches/personal/baum/BRANCH_1_4_X_GB/src/ConverterCache.C > > Modified: > lyx-devel/branches/personal/baum/BRANCH_1_4_X_GB/src/ConverterCache.C URL: > http://www.lyx.org/trac/file/lyx-devel/branches/personal/baum/BRANCH_1_4_X_GB/src/ConverterCache.C?rev=18337 > ============================================================================== > --- lyx-devel/branches/personal/baum/BRANCH_1_4_X_GB/src/ConverterCache.C > (original) +++ > lyx-devel/branches/personal/baum/BRANCH_1_4_X_GB/src/ConverterCache.C Tue > May 15 12:01:08 2007 @@ -121,6 +121,17 @@ > << orig_from << "' (does not exist anymore)." > << std::endl; > support::unlink(item.cache_name); > + continue; > + } > + > + // Don't add items that are not in the cache anymore > + // This can happen if two instances of LyX are running > + // at the same time and update the index file independantly. > + if (!fs::exists(item.cache_name)) { > + lyxerr[Debug::FILES] << "Not caching file `" > + << orig_from > + << "' (cached copy does not exist anymore)." > + << std::endl; > continue; > }
This fixes a crash I got today and is a candidate for trunk as well. Jose? Georg
