On Sun, Mar 22, 2015 at 07:46:50PM +0100, Enrico Forestieri wrote: > On Sat, Mar 21, 2015 at 11:07:03PM +0100, Stephan Witt wrote: > > > > I found a way to reproduce it: > > 1) Open a document with info inset included. > > 2) Go to a line with info inset to display (some text to scroll down). > > 3) Position the cursor near the inset. > > 4) Quit LyX and restart. > > 5) Load the previously closed document -> crash on cursor positioning. > > > > To solve that issue one has to remove the offending line in section > > [cursor positions] of the session state. > > > > After the removal I can reproduce it again with the same document and the > > same procedure. I'll attach my example document. > > > > To trigger the crash the info inset has to be visible and it must be some > > scroll down involved to show the cursor position on startup. > > With your test case, the crash is always reproducible. It seems to be > related to the fact that the svg files are uncompressed before being > used. Most probably, it is not the fact of being compressed per se, but > rather the fact that the files are uncompressed to a temporary file that > gets removed afterwards. There must be something that expects to be able > to still access the file, and it is not there anymore. > Indeed, if you launch the script attached here > http://article.gmane.org/gmane.editors.lyx.devel/154441 > and recompile, the crash is gone.
I have pushed a change at 7da981b3 that avoids the crash. With this change, the compressed svg icons are used as is, without first uncompressing them. The reason of the crash is still unknown, but it is surely related to the removal of the temporary file and some sort of race condition that your document exploits fully, apparently. -- Enrico