https://bugs.documentfoundation.org/show_bug.cgi?id=91883

--- Comment #1 from Julien Nabet <[email protected]> ---
Noticing this part in bt:
#6  0x00002aaace14e975 in SvxRuler::ConvertHPosPixel(long) const
(this=0x2590d30, nVal=-9223372036854772989)
    at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:404
#7  0x00002aaace14eb6d in SvxRuler::ConvertPosPixel(long) const
(this=0x2590d30, nVal=-9223372036854772989)
    at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:424
#8  0x00002aaace150c4f in SvxRuler::UpdateColumns() (this=0x2590d30) at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:835

I suppose investigation can start at frame 8 (since nVal=-9223372036854772989
seems wrong)
Putting a break in svx/source/dialog/svxruler.cxx:812 gave me 2 bts:
1)
#0  0x00002aaace1509f5 in SvxRuler::UpdateColumns() (this=0x2abd450) at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:812
#1  0x00002aaace152aa1 in SvxRuler::Update() (this=0x2abd450) at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:1262
#2  0x00002aaace15cfa4 in SvxRuler::Notify(SfxBroadcaster&, SfxHint const&)
(this=0x2abd450, rHint=...)
    at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:3413

2)
#0  0x00002aaace1509f5 in SvxRuler::UpdateColumns() (this=0x2bb4a40) at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:812
#1  0x00002aaace152aa1 in SvxRuler::Update() (this=0x2bb4a40) at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:1262
#2  0x00002aaaca575c90 in SwCommentRuler::Update() (this=0x2bb4a40) at
/home/julien/compile-libreoffice/libreoffice/sw/source/uibase/misc/swruler.cxx:251
#3  0x00002aaace15cfa4 in SvxRuler::Notify(SfxBroadcaster&, SfxHint const&)
(this=0x2bb4a40, rHint=...)
    at
/home/julien/compile-libreoffice/libreoffice/svx/source/dialog/svxruler.cxx:3413

Commenting line 251 in sw/source/uibase/misc/swruler.cxx (see 
    248 void SwCommentRuler::Update()
    249 {
    250     Rectangle aPreviousControlRect = GetCommentControlRegion();
    251     // SvxRuler::Update();
    252     if (aPreviousControlRect != GetCommentControlRegion())
    253         Invalidate();
    254 }
prevents from the crash.
See
http://opengrok.libreoffice.org/xref/core/sw/source/uibase/misc/swruler.cxx#248

Just for info, searching git history for this line gives this:
commit e047a967b0db8c61dc977b52f3876fc4e385ad77
Author: Rodolfo Ribeiro Gomes <[email protected]>
Date:   Sat Mar 9 14:08:21 2013 -0300

    fdo#38246 Comment control on Writer ruler feature

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to