Bug 81325 - FILEOPEN: 6-pages DOCX shows only the first page in LO
Summary: FILEOPEN: 6-pages DOCX shows only the first page in LO
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.5.2 release
Hardware: All All
: high critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, haveBacktrace, possibleRegression
Depends on:
Blocks:
 
Reported: 2014-07-14 06:12 UTC by Vipin
Modified: 2015-12-15 22:11 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Word document (51.96 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-07-14 07:14 UTC, Vipin
Details
The test file open with MSO (384.92 KB, application/x-msdownload)
2014-07-14 09:41 UTC, Kevin Suo
Details
console_bt with master sources (23.09 KB, text/plain)
2014-08-10 07:24 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vipin 2014-07-14 06:12:00 UTC
A 12 page document created in word when opened in LibreOffice shows only 2 pages.
Here's the details of the page, (unfortunately cannot share the file since it has confidential information)

1. File size: 4.25 MB
2. File extension: .docx
3. Total pages: 16
4. Total words: 4230
5. No. of pages appearing on LibreOffice: 1st 2 pages
6. Page 2 onwards there is a a header & footer on all pages. Header consists of an image (which is a logo), the footer has page no. on right side & few text on the left.

The 1st 3 pages in the word document has tables, the 4th has some content, 5th page is the Table of content. 

6th Page onwards there are pictures, words, tables, etc.

Let us know if you need any additional details.
Comment 1 tommy27 2014-07-14 06:58:10 UTC
upload a test file otherwise removing sensible information (you can replace each letter with "x" in order to make it unreadable) otherwise it will be impossible to debug

set status to NEEDINFO waiting for testcase
Comment 2 Vipin 2014-07-14 07:14:22 UTC
Created attachment 102742 [details]
Word document

Attached document for your reference.. Hope this helps.
Comment 3 Kevin Suo 2014-07-14 09:41:16 UTC
Created attachment 102759 [details]
The test file open with MSO

When open attachment 102742 [details] with MSO 2010, it shows 6 pages;
But when open with LibreOffice (4.3.0.2), it shows only the first page.

Set to new.
Comment 4 Kevin Suo 2014-07-14 09:43:52 UTC
Attachment 102742 [details] opens file with Apache OpenOffice 4.1, so it's a possible regression.
Comment 5 Kevin Suo 2014-07-14 09:47:24 UTC
(In reply to comment #4)
> Attachment 102742 [details] opens file..
Sorry, I mean "opens fine".
Comment 6 Vipin 2014-07-14 13:14:12 UTC
1. Which version of Libre Office do you recommend to be stable version?
2. Any idea What object / content in the document causes this issue?
Comment 7 penttila 2014-08-01 15:55:05 UTC
Bug confirmed on LO 4.2.4.2 Build id.: 420m0(Build:2) on LinuxMint 17 Cinnamon.

Only the first two pages are shown (of attachment 102742 [details]) and even PDF export contains only these first two pages.
Comment 8 ign_christian 2014-08-01 16:47:06 UTC
Seems LO 3.5.7.2, 3.6.7.2, 4.0.6.2 has same result with AOO 4.1.0 -> 6 pages
(but TOC in page 5 not exist)

Results worsened since LO 4.1 with varied results between versions.

Tested on Ubuntu 12.04 x86
Comment 9 Julien Nabet 2014-08-10 07:24:18 UTC
Created attachment 104371 [details]
console_bt with master sources

On pc Debian x86-64 with master sources updated today, I had a crash.
Perhaps it's linked to this bug. Indeed,  since I build in dbg mode, asserts are triggered.
Comment 10 Julien Nabet 2014-08-10 07:26:10 UTC
Miklos/Michael: one for you?
Comment 11 Ulrik Nyman 2014-09-30 09:52:25 UTC
Opening attachment https://www.libreoffice.org/bugzilla/attachment.cgi?id=102742
on the following version also only shows two pages. 

Version: 4.2.6.3
Build ID: 420m0(Build:3)

I experience the same problem with other documents. Observation: What these documents share is the use of a version field on one of the pages that are shown. I assume that the bug is related to this version field.
Comment 12 Matthew Francis 2015-01-17 01:05:45 UTC
Already fixed in 4.4 and 4.5 master. Unless it's already on the 4.3 branch and hasn't been released yet, a backport is probably unlikely this close to the end of the 4.3 lifecycle

As it's not known which exact commit provided the fix, setting:
-> RESOLVED WORKSFORME
Comment 13 Robinson Tryon (qubit) 2015-12-15 22:11:36 UTC
Migrating Whiteboard tags to Keywords: (PossibleRegression filter:docx)
[NinjaEdit]