Apache OpenOffice (AOO) Bugzilla – Issue 91928
Office hangs after pastespecial strangely marked text.
Last modified: 2013-08-07 14:43:03 UTC
Open attached document. Place the marker in the upper left corner. Try to select the first line of text with SHIFT + DOWN. (this seems to be done, even if the text isn't correctly marked) Menu: EditCopy Open a New Writer-Document Menu: EditPasteSpecial Choose to paste as Writer. Result - the office hangs.
Created attachment 55257 [details] Writer-document
cc + blocks 88888
Hi, ->mod: the name SwPostItAnkor sounds a bit strange to me ;-) ->pl: It loops in: > vclmi.dll!OutputDevice::DrawPolyLine(const Polygon & rPoly={...}, const LineInfo & rLineInfo={...}) Line 2523 C++ swmi.dll!SwPostItAnkor::implDrawGeometry(OutputDevice & rOutputDevice={...}, Color aColor={...}, double fOffX=0.00000000000000000, double fOffY=0.00000000000000000) Line 1640 + 0x30 bytes C++ swmi.dll!SwPostItAnkor::drawGeometry(OutputDevice & rOutputDevice={...}) Line 1737 C++ svxmi.dll!0842110c() ... const Polygon* ImplLineConverter::ImplGetNext() always finds a new Polygon...
Actually it does not loop but you're trying to draw the dashed outline of a Polygon spanning the whole width of the coordinate space: DrawPolygon( -1073732580 2147483573, -1073732655 -2147483573, -1073732505 -2147483573, -1073732580 2147483573 ) drawing small line pieces 3 pixels apiece around that large a polygon can take a while ...
The wrong values for drawing the anchor results from wrong return values from SwPostItHelper::getLayoutInfos, which should return the position inside the document of the note, but the note is not really the root cause. I copied text without the note, and then I get a debug assertion "RootSize" and the page is completly gone (I guess this is the reason why I get wrong info for getLayoutInfos in the first place) This seems to happen only when copying text from the first line. Once this is fixed, I'm sure the anchor and drawing of polygon will be fine as well. (I guess we could put in some more safety checkin code for drawing the anchors for 3.1)
->od: Please have a look.
First investigation reveals the following: - Broken in DEV300m18 - Simple test case: -- new HTML document -- insert two paragraphs -- copy first paragraph -- new text document -- paste --> assertion "Rootsize"; tiny page; application no longer usable - no reaction on menu, etc.
fixed in cws sw30bf10 - changed file: /sw/source/core/unocore/unostyle.cxx, 1.82.90.1 defect cause: Since fix for issue 80780 the page style set at a paragraph is also copied and pasted. Unfortunately, the page size attributes of page style "HTML" are LONG_MAX width and LONG_MAX height, which troubles the Writer. solution: Use sensible default values instead of LONG_MAX, when setting the attributes of a page style to default values.
OD->SBA: Checked in internal installation set of cws sw30bf10 - please verify.
SBA: Verified in CWS sw30bf10.
SBA: Reassigned to FHA. SBA->FHA: Please re-verify after integration in master and verify the respective AutoTest running OK now.
Reassigned to FHA.
Verified in DEV300m28 with windows XP and Fedora 8
Verified in OOO300m5 - Closing - Sophie