On Sun, Apr 23, 2006 at 05:27:47PM -0400, Paul A. Rubin wrote:

> Chunpeng Yan wrote:
> > Can someone please look at the simple equation in attached the file? 
> > lyx1.4.1 for windows crashes when View->DVI. No such a problem for 
> > lyx1.3.7 windows.
> 
> I can confirm that it 1.4.1 crashes.  The LyX preamble window contains a 
> lot of LaTeX preamble that does not belong there -- not sure where it 
> was picked up -- but deleting all that does not solve the crash.  The 
> file compiles ok (at least after removing the excess preamble junk) if 
> exported to LaTeX and compiled manually.  The LaTeX log includes some 
> messages specific to the class, such as

The nulls inserted by MikTeX in the latex log file strike again...

When LyX crashes, it does not delete the temporary directory it
creates. So, if you navigate there and open lyx141_test_1.log in
a text editor, you will see the following:

------- excerpt from lyx141_test_1.log --------
Overfull \hbox (12.57782pt too wide) detected at line 73
 []$[]  \OML/cmm/m/it/10.95 s[]\OT1/cmr/m/n/10.95 (\OML/cmm/m/it/10.95 t \OMS/c
msy/m/n/10.95 ^@ \OML/cmm/m/it/10.95 ^\[] \OMS/cmsy/m/n/10.95 ^@ 
\OML/cmm/m/it/10.
95 ^\[] \OMS/cmsy/m/n/10.95 ^@ \OML/cmm/m/it/10.95 ^\[]\OT1/cmr/m/n/10.95 ) = 
\OML
/cmm/m/it/10.95 a[] []\OT1/cmr/m/n/10.95 [2\OML/cmm/m/it/10.95 ^Yf[]\OT1/cmr/m/n
/10.95 (\OML/cmm/m/it/10.95 t \OMS/cmsy/m/n/10.95 ^@ \OML/cmm/m/it/10.95 ^\[] 
\OM
S/cmsy/m/n/10.95 ^@ \OML/cmm/m/it/10.95 ^\[] \OMS/cmsy/m/n/10.95 ^@ 
\OML/cmm/m/it/
10.95 ^\[]\OT1/cmr/m/n/10.95 )]  $
 []
-----------------------------------------------

Here I have replaced the nulls with "^@", as this is how vim shows them.
If you use notepad, you will see black solid boxes in its place.

The problem here is that there is code in LyX which tries to extract
file names from the latex log file. Everything enclosed in "()" is
extracted and nulls are slurped in. This leads to the crash.

Indeed, if you enlarge the margins such that to avoid the overfull
boxes, the crash disappear.

Now this is becoming very frequent and I think that something should
be done, otherwise LyX on Windows with MikTeX will crash very easily.

-- 
Enrico

Reply via email to