Discussion:
hanging in textblock
corvid
2013-01-03 07:26:19 UTC
Permalink
http://graphicssoft.about.com/od/aboutgraphics/a/bitmapvector.htm

#0 0x080929ad in dw::Textblock::findParagraphOfWord (this=0x82268b0,
wordIndex=81) at textblock.cc:1228
#1 0x0809a3c7 in dw::Textblock::fillParagraphs (this=0x82268b0)
at textblock_linebreaking.cc:1115
#2 0x0809169c in dw::Textblock::getExtremesImpl (this=0x82268b0,
extremes=0xbfffe828) at textblock.cc:299
#3 0x080b48cc in dw::core::Widget::getExtremes (this=0x82268b0,
extremes=0xbfffe828) at widget.cc:194
#4 0x08098276 in dw::Textblock::accumulateWordExtremes (
this=***@entry=0x822b460, firstWord=***@entry=10,
lastWord=***@entry=11, maxOfMinWidth=***@entry=0xbfffe898,
sumOfMaxWidth=***@entry=0xbfffe89c)
at textblock_linebreaking.cc:412
#5 0x08099eab in dw::Textblock::addLine (this=***@entry=0x822b460,
firstWord=***@entry=10, lastWord=***@entry=11,
temporary=***@entry=false) at textblock_linebreaking.cc:328
#6 0x0809aca0 in dw::Textblock::wordWrap (this=0x822b460, wordIndex=11,
wrapAll=false) at textblock_linebreaking.cc:596
#7 0x0809a278 in dw::Textblock::rewrap (this=0x822b460)
at textblock_linebreaking.cc:1071
#8 0x080914fc in dw::Textblock::sizeRequestImpl (this=0x822b460,
requisition=0x8244898) at textblock.cc:217
#9 0x080b483f in dw::core::Widget::sizeRequest (this=0x822b460,
requisition=0x8244898) at widget.cc:177
#10 0x08091b92 in dw::Textblock::calcWidgetSize (this=0x82dae38,
widget=0x822b460, size=0x8244898) at textblock.cc:768
#11 0x0809a2ba in dw::Textblock::rewrap (this=0x82dae38)
at textblock_linebreaking.cc:1069
#12 0x080914fc in dw::Textblock::sizeRequestImpl (this=0x82dae38,
requisition=0x8258078) at textblock.cc:217
#13 0x080b483f in dw::core::Widget::sizeRequest (this=0x82dae38,
requisition=0x8258078) at widget.cc:177
#14 0x08091b92 in dw::Textblock::calcWidgetSize (this=0x82e1300,
widget=0x82dae38, size=0x8258078) at textblock.cc:768
#15 0x0809a2ba in dw::Textblock::rewrap (this=0x82e1300)
at textblock_linebreaking.cc:1069
#16 0x080914fc in dw::Textblock::sizeRequestImpl (this=0x82e1300,
requisition=0x824bd80) at textblock.cc:217
#17 0x080b483f in dw::core::Widget::sizeRequest (this=0x82e1300,
requisition=0x824bd80) at widget.cc:177
#18 0x08091b92 in dw::Textblock::calcWidgetSize (this=0x822d870,
widget=0x82e1300, size=0x824bd80) at textblock.cc:768
#19 0x0809a2ba in dw::Textblock::rewrap (this=0x822d870)
at textblock_linebreaking.cc:1069
#20 0x080914fc in dw::Textblock::sizeRequestImpl (this=0x822d870,
requisition=0x81e64b8) at textblock.cc:217
#21 0x080b483f in dw::core::Widget::sizeRequest (this=0x822d870,
requisition=0x81e64b8) at widget.cc:177
#22 0x08091b92 in dw::Textblock::calcWidgetSize (this=0x8278530,
widget=0x822d870, size=0x81e64b8) at textblock.cc:768
#23 0x0809a2ba in dw::Textblock::rewrap (this=0x8278530)
at textblock_linebreaking.cc:1069
#24 0x080914fc in dw::Textblock::sizeRequestImpl (this=0x8278530,
requisition=0xbfffee40) at textblock.cc:217
#25 0x080b483f in dw::core::Widget::sizeRequest (this=0x8278530,
requisition=0xbfffee40) at widget.cc:177
#26 0x080ade2c in dw::core::Layout::resizeIdle (this=0x820f448)
at layout.cc:667
#27 0x0809faa8 in dw::fltk::FltkPlatform::generalIdle (this=0x820f410)
at fltkplatform.cc:630
#28 0x080ef3b1 in call_idle () at Fl_add_idle.cxx:40
#29 0x080b88e4 in Fl::wait (time_to_wait=1e+20) at Fl.cxx:496
#30 0x080b89c0 in Fl::run () at Fl.cxx:529
#31 0x0804f7f9 in main (argc=1, argv=0xbffff044) at dillo.cc:498
Sebastian Geerken
2013-01-03 20:40:33 UTC
Permalink
I was not able to reproduce this bug, but ...
Post by corvid
http://graphicssoft.about.com/od/aboutgraphics/a/bitmapvector.htm
#0 0x080929ad in dw::Textblock::findParagraphOfWord (this=0x82268b0,
wordIndex=81) at textblock.cc:1228
Does it really hang here? If you apply the first patch, what is the
result (last couple of printed lines)?

OTOH, I've found a similar problem in the floats tree, which may occur
(with other symptoms) here. Does applying the second patch solve the
problem?

Sebastian
corvid
2013-01-03 22:58:07 UTC
Permalink
Post by Sebastian Geerken
Post by corvid
http://graphicssoft.about.com/od/aboutgraphics/a/bitmapvector.htm
#0 0x080929ad in dw::Textblock::findParagraphOfWord (this=0x82268b0,
wordIndex=81) at textblock.cc:1228
Does it really hang here? If you apply the first patch, what is the
result (last couple of printed lines)?
It looks like I often have to hit reload a couple of times.

findParagraphOfWord (0), in 0 paragraphs ...
.. --> not found
findParagraphOfWord (0), in 0 paragraphs ...
.. --> not found
findParagraphOfWord (0), in 0 paragraphs ...
.. --> not found
findParagraphOfWord (0), in 0 paragraphs ...
.. --> not found
findParagraphOfWord (0), in 0 paragraphs ...
.. --> not found
findParagraphOfWord (0), in 0 paragraphs ...
.. --> not found
findParagraphOfWord (81), in 14 paragraphs ...
Post by Sebastian Geerken
OTOH, I've found a similar problem in the floats tree, which may occur
(with other symptoms) here. Does applying the second patch solve the
problem?
Yup.
Sebastian Geerken
2013-01-04 10:19:39 UTC
Permalink
Post by corvid
Post by Sebastian Geerken
Post by corvid
http://graphicssoft.about.com/od/aboutgraphics/a/bitmapvector.htm
#0 0x080929ad in dw::Textblock::findParagraphOfWord (this=0x82268b0,
wordIndex=81) at textblock.cc:1228
Does it really hang here? If you apply the first patch, what is the
result (last couple of printed lines)?
It looks like I often have to hit reload a couple of times.
Still no "luck" ...
Post by corvid
Post by Sebastian Geerken
OTOH, I've found a similar problem in the floats tree, which may occur
(with other symptoms) here. Does applying the second patch solve the
problem?
Yup.
So I've committed it. Does not harm (still more efficient than
before), and examining it is on my todo list.

Sebastian

Loading...