On 11/01/2010 08:20 AM, Richard Heck wrote:
On 11/01/2010 08:14 AM, Richard Heck wrote:
On 11/01/2010 03:32 AM, John McCabe-Dansted wrote:
On Mon, Nov 1, 2010 at 1:09 PM, Vincent van Ravesteijn<v...@lyx.org>
wrote:
On Wed, Oct 27, 2010 at 4:37 PM, John
McCabe-Dansted<gma...@gmail.com> wrote:
Hi Vincent, this appears to be another recent regression, this time
from r35832 on Monday.
Sorry John, your system is a bit off. I can reproduce with r35831
too ;)
Incidentally, I think the regression in r35832 has to do with being
able to reproduce the bug when LFUNs.lyx is marked readonly, which in
turn is because r35832 does not set the readonly flag when opening
readonly files.
I then get the Assert:
This is a serious bug and needs to fixed quickly. It would be very
helpful if you could bisect further.
The actual bug itself appears to have been introduced in r34826 by
"rgheck".
Yes, we expected there would be some such things: This was the big
change to how updateBuffer() is called. So there is probably a
missing call to updateBuffer() somewhere, that leads to the TOC being
empty.
I don't understand the split screen stuff, so I'm not sure why this
would only happen then. But here's a simple recipe to reproduce.
1. Open LyX. Create a section heading (alt-P, 2) with an x in it.
2. Split the screen.
3. File>New
4. Go back to the top, where the 'x' is, and type something.
Note that this only happens if the new, empty file is displayed in
the lower region. If the "x" file is displayed both times, you do not
get the crash.
So the problem seems to be a missing update of the TOC somewhere. You
can see this if you open the TOC while doing this. In particular, when
you switch the cursor from the empty document to the one where the x
is, you don't get an update of the TOC. Does anyone know where that
ought to have happened?
I now see this crash prior to r34826. The problem, as I said, is that
the TOC gets out of sync with the active buffer. So try the following.
1. Open LyX. File>New. Document>Outline, to make sure the TOC is open.
2. Create a section heading (alt-P, 2) with an x in it.
3. Split the screen.
4. File>New. You should now still see the TOC for the OLD buffer.
5. Click in the top screen. You now see an empty TOC (the one for the
empty buffer).
6. Click in the empty buffer. Other TOC!
7. Back to the "x" buffer. Type something. Boom!
So the issue is that the TOC is out of sync. It gets out of sync when
(a) Buffer 1 is open in both top and bottom, but (b) it is actually
viewed in only one of them and (c) you click back and forth between top
and bottom. You can get it back into sync by clicking on the tabs in the
bottom view.
Richard