[Libreoffice-bugs] [Bug 129790] New: LibreOffice Writer saves RTF documents with enormous file size (1000 times bigger)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jan 4 16:41:03 UTC 2020


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

            Bug ID: 129790
           Summary: LibreOffice Writer saves RTF documents with enormous
                    file size (1000 times bigger)
           Product: LibreOffice
           Version: 6.3.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mail at sebastienlarocque.com

Description:
During many years, I have worked with RTF documents in Writer. I have had many
documents that I continuously updated. Not all the time, but regularly, the
size of the documents just got bigger and bigger. The size has become out of
scope.

For example, my latest problem this morning is as described below. I had an RTF
document under 10 MB. It took a while to open (like a minute or two). After
opening the document, I entered one extra line and I saved it. The new size of
the document was 12.1 MB. I tried to open the document again and it took
several minutes to open. Once open, I tried to save again by adding a few extra
lines. It took several minutes to save and the new size was 24.5 MB. It tried
to do the same steps again to increase the size, but the size remained the
same. The opening and saving time are absolutely disastrous.

To fix the problem, I opened the same RTF file (24.5 MB) with Wordpad and then
I saved. The file size dropped to 22 KB. I reopened it with Writer and I saved
it. So far, I have a stable file size around 75 KB. I believe there is still a
problem with the saving. Just for adding about 20 carriage returns at the end
of the document, the file size jumped from 72 KB to 83 KB. The document has
about 20 pages of texts where the pages are 50% to 75% filled.

I did a test with the document of 24.5 MB. I selected all the text and I did
“cut” (Ctrl + X). I saved the document and the file size went back to a few KB.
The normal size, in other words. After that I pasted the cut text with Ctrl +
V. It took several minutes to paste the 20 pages of text that I had. After
that, the file size returned to the size of 24.5 MB.

It looks like there is extra content saved, but not visible. This content
appears to be in the text itself and is copied and pasted to the clipboard
based on my test above. For example, a page of text with only regular and bold
texts like in my test seems has an enormous file size.


By the way, my computer has an SSD drive and has an i9 Core Intel processor. It
is really performing.

The problem does not seem to appear all the time. However, it might be still
present all the time. Just for adding a few lines to update my documents from
time to time, I often end up with RTF documents of several MB. At that point, I
notice the problem because it takes several minutes just to open the document. 

Steps to Reproduce:
Create a simple RTF document with normal text and few bold titles. Update the
document by adding content regularly. I have just tried to create a new RTF
document and do the same steps, but it does not seem to increase the file size
out of scope. The bug is not always there, but it eventually, it will appear.

Many documents were updated by removing the older parts and adding new text.
However, I had this bug with document where I did not remove older parts.

Actual Results:
It varies, but sometimes, the file size can be something like a thousand times
bigger and it takes several minutes to open and save an RTF documents.

Expected Results:
Normal file size.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200104/29632f7f/attachment.htm>


More information about the Libreoffice-bugs mailing list