Crash in equation paint (master)

Pavel Sanda sanda at lyx.org
Mon Feb 1 12:15:47 UTC 2021


On Mon, Feb 01, 2021 at 11:36:21AM +0100, Pavel Sanda wrote:
> Will try to come up with better backtrace, but this is what I have now:

Better one:
(gdb) bt
#0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff6558535 in __GI_abort () at abort.c:79
#2  0x0000555555b831a4 in lyx::lyx_exit (exit_code=exit_code at entry=1) at LyX.cpp:272
#3  0x0000555555cf88a4 in boost::assertion_failed (expr=0x55555642b87c "false", 
    function=0x55555650d0a0 <lyx::doAssertWithCallstack(bool)::__PRETTY_FUNCTION__> "void lyx::doAssertWithCallstack(bool)", file=0x55555650d033 "lassert.cpp", line=45) at boost.cpp:47
#4  0x00005555563861e0 in lyx::doAssertWithCallstack (value=value at entry=false) at lassert.cpp:45
#5  0x0000555556386320 in lyx::doBufErr (expr=expr at entry=0x55555642b87c "false", 
    file=file at entry=0x55555642adfd "CoordCache.cpp", line=line at entry=27) at lassert.cpp:83
#6  0x0000555555d2eb08 in lyx::lyxbreaker (data=data at entry=0x555557414d80, 
    hint=hint at entry=0x5555563da4be "dim", size=0) at CoordCache.cpp:27
#7  0x0000555555dfecf8 in lyx::CoordCacheBase<lyx::MathData>::checkDim (hint=0x5555563da4be "dim", 
    thing=0x555557414d80, this=0x555557ded878) at /usr/include/c++/8/bits/stl_tree.h:1012
#8  lyx::CoordCacheBase<lyx::MathData>::dim (thing=<optimized out>, this=0x555557ded878)
    at ./CoordCache.h:93
#9  lyx::MathData::dimension (this=0x555557414d80, bv=...) at mathed/MathData.cpp:926
#10 0x0000555555d93dab in lyx::InsetMathGrid::cellXOffset (this=this at entry=0x55555740df00, bv=..., 
    idx=idx at entry=0) at mathed/InsetMathGrid.cpp:910
#11 0x0000555555d981b2 in lyx::InsetMathGrid::draw (this=this at entry=0x55555740df00, pi=..., x=x at entry=682, 
    y=y at entry=12) at mathed/InsetMathGrid.cpp:601
#12 0x0000555555db32ea in lyx::InsetMathHull::draw (this=0x55555740df00, pi=..., x=681, y=12)
    at mathed/InsetMathHull.cpp:661
#13 0x0000555555d82dec in lyx::RowPainter::paintInset (this=this at entry=0x7fffffffc740, e=...)
    at RowPainter.cpp:112
#14 0x0000555555d83fde in lyx::RowPainter::paintText (this=this at entry=0x7fffffffc740) at RowPainter.cpp:555
#15 0x0000555555caf1f1 in lyx::TextMetrics::drawParagraph (this=this at entry=0x5555589e8f08, pi=..., 
    pit=<optimized out>, pit at entry=0, x=x at entry=681, y=y at entry=12) at TextMetrics.cpp:1958
#16 0x0000555555caf5b8 in lyx::TextMetrics::draw (this=this at entry=0x5555589e8f08, pi=..., x=681, 
    y=y at entry=12) at TextMetrics.cpp:1809
#17 0x000055555601c565 in lyx::InsetText::draw (this=0x5555574163e0, pi=..., x=677, y=12)
    at insets/InsetText.cpp:235
#18 0x000055555600792a in lyx::InsetTabular::draw (this=0x555557413660, pi=..., x=237, y=<optimized out>)
    at /usr/include/c++/8/bits/shared_ptr_base.h:1307
#19 0x0000555555d82dec in lyx::RowPainter::paintInset (this=this at entry=0x7fffffffcd30, e=...)
    at RowPainter.cpp:112
#20 0x0000555555d83fde in lyx::RowPainter::paintText (this=this at entry=0x7fffffffcd30) at RowPainter.cpp:555
#21 0x0000555555caf1f1 in lyx::TextMetrics::drawParagraph (this=this at entry=0x5555589eb928, pi=..., 
    pit=<optimized out>, pit at entry=78, x=x at entry=0, y=y at entry=-21) at TextMetrics.cpp:1958
#22 0x0000555555caf5b8 in lyx::TextMetrics::draw (this=this at entry=0x5555589eb928, pi=..., x=x at entry=0, 
    y=y at entry=-21) at TextMetrics.cpp:1809
#23 0x0000555555d09284 in lyx::BufferView::draw (this=0x555557ded400, pain=..., 
    paint_caret=<optimized out>) at BufferView.cpp:3342
#24 0x00005555560b73ab in lyx::frontend::GuiWorkArea::paintEvent (this=0x555557de59c0, ev=0x7fffffffd810)
    at GuiWorkArea.cpp:1257


More information about the lyx-devel mailing list