Hello,
Today I downloaded the latest development version of LyX 1.4 and
compiled it for Windows, following the standard procedure as documented.
I noticed that whenever I'm editing documents with some math, LyX
crashes very often.
The problems seem to be related to misalignment of the cursor in
combination with symbols like \leq and many others, and a crash is
triggered by the undo feature.
I'm able to reproduce the crash using the test document below this
message, following these steps:
1) Open the document, everything looks fine on the screen.
2) Now attempt to delete the X character in the equation using the mouse
(not using the keyboard). Click left of the X character (what you would
normally do to be able to press Delete and remove it).
3) Notice that the cursor is not positioned where it should (way to far
to the left).
4) Press Delete anyway and the character goes away as expected (the
cursor is still wrong).
5) Press Ctrl+Z to undo. Crash.
When running from the console, the following error is displayed:
------------------
lyx: Disabling LyX socket.
I don't have a cell 1
I don't have a cell 1
Should not happen, but it does.
I don't have a cell 1
DocIterator StableDocIterator::asDocIterator(InsetBase*) const Should
not happen, but does e.g. after C-n C-l C-z S-C-z
dit: inset: 0x16d446c idx: 0 par: 0 pos: 0
inset: 0x1763010 idx: 0 par: 0 pos: 1
inset: 0x6b68088 idx: 0 par: 0 pos: 1
lastpos: 0
Assertion triggered in DocIterator
StableDocIterator::asDocIterator(InsetBase*) const by failing check
"false" in file ../../src/dociterator.C:566
------------------
Hopefully someone can help me to find a solution. Thanks for the work on
this great application!
Best regards,
Joost Verburg
The test document:
------------------
\lyxformat 245
\begin_document
\begin_header
\textclass article
\language english
\end_header
\begin_body
\begin_layout Standard
\begin_inset Formula \[q\leq\frac{(X^{2}+d)}{a+b+c}\]
\end_inset
\end_layout
\end_body
\end_document