Bug 84588 - doc and docx export crashes LibO and possibly the whole system
Summary: doc and docx export crashes LibO and possibly the whole system
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.3.2.2 release
Hardware: x86-64 (AMD64) All
: high major
Assignee: Caolán McNamara
URL:
Whiteboard: BSA target:4.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-02 08:02 UTC by Ferry Toth
Modified: 2014-10-06 20:19 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
sample document showing the problem (43.67 KB, application/vnd.oasis.opendocument.text)
2014-10-02 08:03 UTC, Ferry Toth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ferry Toth 2014-10-02 08:02:20 UTC
While exporting a certain document to docx format LibO crashes consistantly. The document had been originally created with LibO. This is unexpected since I have exported many complex documents with good results.

A stripped down, almost empty document is attached.

Exporting to rtf also crashes.

Exporting to doc will quickly eat up your memory causing a linux OS (Kubuntu) to lock up and force you to hard reset. On windows I had some time to terminate LibO.

!! warning, you might want to close all other apps before trying to save this as doc on linux and keep systemmonitor or similar ready to kill LibO before it's too late

Using the original problematic doc, I tried earlier versions of LibO (back to a windows version 3.6) showing the same behavior. So this seems to be not a regression.

As far as I can tell the problem is related to the manual page break, but I have not been able to find the root cause.

The original document had multiple pages, large bitmaps and tables. These have been removed in the test document. I have finally been able to export that by removing all manual breaks and inserting a 'page break before' in the Kop 1 (heading 1) style.

I have marked this issue severity as major due to the problem potentially causing your machine to lock up.
Comment 1 Ferry Toth 2014-10-02 08:03:37 UTC
Created attachment 107218 [details]
sample document showing the problem

carefull when saveing this to doc see #1
Comment 2 Joey Reid 2014-10-04 06:04:09 UTC
Confirmed with Version: 4.4.0.0.alpha0+
TinderBox: Win-x86@39, Branch:master, Time: 2014-10-03_00:31:27

When I tried to save as DOC, this file quickly ate up RAM and I had to terminate soffice.exe. DOCX also hung when saving.
Comment 4 Ferry Toth 2014-10-06 20:19:32 UTC
@Caolán: great that you resolved the issue. Would you care to elaborate what was the problem? 

I fail to understand why if I remove the manual break and add breaks in the H1 style the problem disappears.