Bug 92897 - Full LibreOffice Writer hang (100% CPU) and memory leak with ODT document
Summary: Full LibreOffice Writer hang (100% CPU) and memory leak with ODT document
Status: RESOLVED DUPLICATE of bug 92898
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.3 rc
Hardware: x86-64 (AMD64) macOS (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 22:34 UTC by Iandol
Modified: 2015-07-25 08:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
4.54GB RAM still rising (15.46 KB, image/png)
2015-07-23 22:34 UTC, Iandol
Details
reduced testcase (35.30 KB, application/vnd.oasis.opendocument.text)
2015-07-23 23:10 UTC, Iandol
Details
testcase odt (29.64 KB, application/vnd.oasis.opendocument.text)
2015-07-23 23:15 UTC, Iandol
Details
Simpler testcase flat odf (39.05 KB, application/vnd.oasis.opendocument.text-flat-xml)
2015-07-24 12:17 UTC, Iandol
Details
testcase removing linked image (37.95 KB, application/vnd.oasis.opendocument.text-flat-xml)
2015-07-24 21:46 UTC, Iandol
Details
sample (185.08 KB, text/plain)
2015-07-24 21:49 UTC, Iandol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iandol 2015-07-23 22:34:15 UTC
Created attachment 117400 [details]
4.54GB RAM still rising

I have a document which I've been opening before without any problems, a file converted from multimarkdown to FODT, about 300kb in total. I tried opening it in 5.0.0.3 and it causes a full hang of writer, the GUI becomes fully unresponsive and it slowly keeps increasing its memory (I saw 33.8GB the first time I checked).  It has images but they are referenced from the same directory. 

The same document opens fine in 4.4.4 — I can't attach as it is  confidential. Not sure how I can debug this.
Comment 1 Iandol 2015-07-23 22:36:26 UTC
I tried converting from FODT to ODT in 4.4.4 but the ODT also causes the hang.
Comment 2 Iandol 2015-07-23 23:10:46 UTC
Created attachment 117402 [details]
reduced testcase

here is a reduced testcase, this causes a full hang on my libreoffice 5.0.0.3 and 5.1dev -- my OS is OS X 10.11
Comment 3 Iandol 2015-07-23 23:15:44 UTC
Created attachment 117403 [details]
testcase odt

here is a reduced testcase, this causes a full hang on my libreoffice 5.0.0.3 and 5.1dev, but opens fine on 4.4.4 -- my OS is OS X 10.11
Comment 4 Iandol 2015-07-24 12:17:54 UTC
Created attachment 117417 [details]
Simpler testcase flat odf

A even more reduced test case...
Comment 5 Iandol 2015-07-24 12:18:27 UTC
I've tested 4.4.5 and it is opening these documents fine...
Comment 6 Jean-Baptiste Faure 2015-07-24 17:34:13 UTC
Not reproducible for me with LibreOffice 5.0.1.0+ built at home under Ubuntu 15.04 x86-64 with gcc 5.1.
Tested with both test files.

What about if you insert the images in the document instead of keeping them linked?
What is your hardware? Intel 64 bits, I presume?

Best regards. JBF
Comment 7 Iandol 2015-07-24 21:44:11 UTC
I actually just removed the linked image and resaved the document in 4.4.5 and it still crashes 5.1 — I also tried removing the image by editing the XML (removing the paragraph>frame etc around the image too). I left 5.1 while I went for dinner and it hit 63.61GB RAM use (I have 8GB physical RAM), causing several other apps to hang.

I can generate a sample using activity monitor, but as you don't have many OS X developers it may be of little use?

Hardware is a 2010 Macbook Pro  with a core i5 64bit CPU (LibreOffice only has 64bit builds for OS X I think).
Comment 8 Iandol 2015-07-24 21:46:21 UTC
Created attachment 117427 [details]
testcase removing linked image

remove the linked image, simplifying the testcase and still resulting in a 100%CPU and >60GB RAM hang.
Comment 9 Iandol 2015-07-24 21:49:05 UTC
Created attachment 117428 [details]
sample

sample of activity during the 100% CPU hang.
Comment 10 Telesto 2015-07-25 08:16:57 UTC

*** This bug has been marked as a duplicate of bug 92898 ***