Post by Richard HeckPost by Scott KostyshakI'm not sure if this is a known issue or not.
If in LyX 2.2git I export beamerlyxexample1.lyx to 2.0.x format and
then reopen it in LyX 2.2git, I get an error "Buffer... ended
unexpectedly, which means that it is probably corrupted."
There was also a warning
"Warning: Can't find end of second ERT!!"
I believe this happens for several Beamer documents.
I just made some changes to the routine that handles this sort of
thing. That is probably
the cause. I'll look into it shortly.
If I export that file to 2.0.x and then open it in 2.0.x, then I get a
whole bunch of errors. (See below.) It's probably not surprising that
the conversion routine then produces a bad document. This happens with
or without my recent changes.
If I apply Enrico's recent patch, then I get fewer errors. (See also
below.) But I still get some.
That particular file is an EXTREMELY complex document.
Richard
=====
/cvs/lyx/ > lyx-20 beamerlyxexample1.20.lyx
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 277 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Paragraph ended in line 353
Missing \end_layout.
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 635 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Paragraph ended in line 651
Missing \end_layout.
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 911 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetNewlineParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 1079 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetNewlineParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
Paragraph ended in line 2716
Missing \end_layout.
LyX: \end_deeper: depth is already null [around line 2716 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 2724 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 2934 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 3037 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 3483 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Paragraph ended in line 3596
Missing \end_layout.
Paragraph ended in line 3660
Missing \end_layout.
Paragraph ended in line 3730
Missing \end_layout.
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 3746 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 3846 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetNewlineParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 3919 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetNewlineParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 4012 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetSpaceParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 4094 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetQuotes::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 4190 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetSpaceParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 4267 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetNewlineParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 5661 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 5758 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetSpaceParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 5826 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
Paragraph ended in line 5993
Missing \end_layout.
LyX: \end_deeper: depth is already null [around line 5993 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 6193 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 6395 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 6485 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetNewlineParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 6615 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetSpaceParams::read']
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 6885 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Paragraph ended in line 6935
Missing \end_layout.
Text.cpp (1766): Handling unknown body token: `\end_layout'
LyX: \end_deeper: depth is already null [around line 6999 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
============================================
/cvs/lyx/ > lyx-20 beamerlyxexample1.20.lyx
Paragraph ended in line 350
Missing \end_layout.
Paragraph ended in line 645
Missing \end_layout.
Text.cpp (1766): Handling unknown body token: `\end_layout'
Paragraph ended in line 2704
Missing \end_layout.
LyX: \end_deeper: depth is already null [around line 2704 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Paragraph ended in line 3572
Missing \end_layout.
Paragraph ended in line 3636
Missing \end_layout.
Paragraph ended in line 3706
Missing \end_layout.
Text.cpp (1766): Handling unknown body token: `\end_layout'
Paragraph ended in line 5939
Missing \end_layout.
LyX: \end_deeper: depth is already null [around line 5939 of file
/music/cvs/lyx/beamerlyxexample1.20.lyx current token: '\end_deeper'
context: 'InsetText::read']
Paragraph ended in line 6866
Missing \end_layout.