Regression - crash on document reload with 2.4 (was: Bug with SVN usage on V2.4.1 MAC OSX)

Pavel Sanda sanda at lyx.org
Tue Jul 23 14:48:22 UTC 2024


On Mon, Jul 15, 2024 at 02:11:41PM +0200, Pavel Sanda wrote:
> On Mon, Jul 15, 2024 at 10:56:43AM +1000, Robert Betz wrote:
> > I am running MAC OSX Sonoma 14.5 with Lyx 2.4.1.
> > 
> > I have my documents under Subversion Version control. When I commit a
> > document after changes I am suffering a crash with the following dump from
> > Lyx. The crash is repeatable.
> > 
> > Thanks for your assistance with respect to this issue.
> 
> Seems related to math grid. Can you shre sample document which crashes?
> (you can send privately or use buffer-anonymize to obfuscate the content).

I received the document privately and was capable to get similar backtrace.
As expected this has nothing to do with svn per se. Rather our machinery 
for document reload got broken.

I anonymized the document to the bare minimum to show the problem. Recipy:

1. load the document
2. have math preview on & wait for the rendering of math align environment
3. save as differrent document
4. kaboom

...
(  5) bin/lyx: lyx::InsetMathGrid::cellXOffset(lyx::BufferView const&, unsigned long) const
(  6) bin/lyx: lyx::InsetMathGrid::draw(lyx::PainterInfo&, int, int) const
(  7) bin/lyx: lyx::InsetMathHull::draw(lyx::PainterInfo&, int, int) const
(  8) bin/lyx: lyx::RowPainter::paintInset(lyx::Row::Element const&) const
(  9) bin/lyx: lyx::RowPainter::paintText()
( 10) bin/lyx: lyx::TextMetrics::drawParagraph(lyx::PainterInfo&, long, int, int) const
( 11) bin/lyx: lyx::TextMetrics::draw(lyx::PainterInfo&, int, int) const
( 12) bin/lyx: lyx::BufferView::draw(lyx::frontend::Painter&, bool)
( 13) bin/lyx: lyx::frontend::GuiWorkArea::paintEvent(QPaintEvent*)
...


Bisect leads to:
commit 20d5851fb7ad2d03e499f7f59f022a771cee9a93
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Mon Jul 25 22:13:35 2022 +0200

    Regenerate equations previews when their numbering changes.
    
    Time will tell whether this is too expensive (because most equations
    after this on will change too, unless equations are numbered by
    section).
    
    Related to bug #11535.


Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t7.lyx
Type: application/x-lyx
Size: 2469 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240723/6b0104fc/attachment.lyx>


More information about the lyx-devel mailing list