You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/11/17 19:13:33 UTC

[Issue 126663] New: Small fonts can crash Open Office on tightly packed pages

https://bz.apache.org/ooo/show_bug.cgi?id=126663

          Issue ID: 126663
        Issue Type: DEFECT
           Summary: Small fonts can crash Open Office on tightly packed
                    pages
           Product: Writer
           Version: 4.1.1
          Hardware: PC
                OS: Windows 10
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P5 (lowest)
         Component: editing
          Assignee: issues@openoffice.apache.org
          Reporter: stross.stephan@gmail.com

Tested on a Windows 10 PC, with 16GB of RAM, and an i7-4712MQ processor @
2.3GHz
Open Office Build Info:
AOO411m6(Build:9775)  -  Rev. 1617669
2014-08-13 09:06:54 (Mi, 13 Aug 2014)

When the provided sample file(big.txt) is copied and pasted into open office,
and then manipulated so that it's at the smallest possible font, with no new
lines, open office quickly begins to use more and more memory, and then
crashes.

To reproduce:
1. Download the text file, copy, and paste into a blank OO document.
2. use ctrl+a to select the entire document.
3. set the font size to 2
4. go to edit > Find and Replace
5. enable regexes, and replaces all instances of \n with a space
6. When the replacement is completed, attempt to scroll and select text.
The program should hang at this point, and you can watch the memory usage begin
climbing. On my system, it went from 100MB to 1.3GB before crashing.

I suspect it has to do with the size of the text buffer that has to be loaded
to be able to scroll smoothly.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

Marcus <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

--- Comment #3 from Stephan Stross <st...@gmail.com> ---
(In reply to oooforum from comment #2)
> (In reply to Stephan Stross from comment #0)
> > 3. set the font size to 2
> Why this size?
> The minimum font size is 6 for Courrier New.

If that is the minimum font size, then OO isn't enforcing it. It allowed me to
set it to a minimum of 2.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

--- Comment #6 from Roger <rb...@gmail.com> ---
Created attachment 85294
  --> https://bz.apache.org/ooo/attachment.cgi?id=85294&action=edit
Screenshot of big2.odt

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

Roger <rb...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #85294|Screenshot of big2.odt      |Screenshot2.png
        description|                            |

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

Roger <rb...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #85293|Screenshot of big1.odt      |Screenshot1.png
        description|                            |

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

oooforum <oo...@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oooforum@free.fr

--- Comment #2 from oooforum <oo...@free.fr> ---
(In reply to Stephan Stross from comment #0)
> 3. set the font size to 2
Why this size?
The minimum font size is 6 for Courrier New.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

--- Comment #1 from Stephan Stross <st...@gmail.com> ---
The document was too large to be attached, but can be found at this URL.

http://norvig.com/big.txt

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

Theodore Matula <bu...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |buddymatula@gmail.com
         Resolution|---                         |IRREPRODUCIBLE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #7 from Theodore Matula <bu...@gmail.com> ---
Summary: I was unable to recreate the bug with the file linked to in comment
#1. Below are the steps I took to reproduce the bug, the specs of my computer,
and the version of AOO I am using. It did take a while to replace the text in
step 6 and to decrease the font size in step 3, but the file is so big that it
is understandable.

Version: 4.2.0 AOO420m1(Build:9800)  -  Rev. 1692551

Specs:
OS: Windows 10 64-bit
Processor: Intel 17 2600k 3.4 Ghz
Graphics Card: Nvidia GTX 770 (2gb VRam)
RAM: 8 GB
Monitor: Asus 24" Monitor

Steps:
1. Download the text file in comment #1, copy, and paste into a blank OO
document.
2. use ctrl+a to select the entire document.
3. set the font size to 2 by typing "2" in the font size box and pressing enter
4. Click edit > Find and Replace
5. Under more options, make sure the box next to "Regular Expressions" is
ticked, clicking the box if it is not ticked.
6. Replace all instances of $ with " " (space).
7. When the replacement is completed, attempt to scroll up and down the
document and select text.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

Roger <rb...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rballardApacheTest@gmail.co
                   |                            |m

--- Comment #4 from Roger <rb...@gmail.com> ---
Tested on a Windows 8 PC, with 16GB of RAM, and an i7-4700HQ CPU @ 2.4GHz

Tested on three builds:
Version 4.2.0 - Rev. 1692551
Version 4.1.1 - Stable Release
Version 4.1.0 - Stable Release

I was unable to replicate the bug on Windows 8.

Test 1:
Steps:
- Followed the listed steps to reproduce exactly
    - replaced "$" with " " instead of replacing "\n" with " "
- Scrolling through the file for several minutes did not cause a crash
- There seems to be some forced paragraph breaks in the document (more details
in test 2)

Test 2:
Steps:
- Loaded big.txt into notepad++
- Did a regex find-and-replace "\s*" with " "
- Saved the file as bigOneLine.txt and closed notepad++.
- Opened bigOneLine.txt in Writer
- Selected entire document and set font size to 2
- Some line breaks were inserted during the import
    - A screenshot is shown in Screenshot1.png
- Scrolling and selecting text does not cause memory usage to increase
- The file in this state is attached as big1.odt
- Did a regex find-and-replace "$" with ""
- The text chunks are now larger, but have larger gaps between them
    - A screenshot is shown in Screenshot2.png
- Scrolling and selecting text does not cause memory usage to increase
- The file in this state is attached as big2.odt

For clarification: the font can be set to size 2 by clicking in the font size
box, typing 2, and pressing enter.

Attachments
big.txt:
https://drive.google.com/file/d/0ByaGnKfMhkJLUmp0eFJXMGR2X28/view?usp=sharing
bigOneLine.txt:
https://drive.google.com/file/d/0ByaGnKfMhkJLSzFRZ3Babi1rSDA/view?usp=sharing
big1.odt:
https://drive.google.com/file/d/0ByaGnKfMhkJLX0hDVW11N25jaEU/view?usp=sharing
big2.odt:
https://drive.google.com/file/d/0ByaGnKfMhkJLdHBvOW16MXdYUU0/view?usp=sharing

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126663] Small fonts can crash Open Office on tightly packed pages

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126663

--- Comment #5 from Roger <rb...@gmail.com> ---
Created attachment 85293
  --> https://bz.apache.org/ooo/attachment.cgi?id=85293&action=edit
Screenshot of big1.odt

-- 
You are receiving this mail because:
You are the assignee for the issue.