Issue 123731 - Writer crashes opening the attached docx file (Holiday Songs 2012)
Summary: Writer crashes opening the attached docx file (Holiday Songs 2012)
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: 4.0.1
Hardware: All All
: P2 Normal (vote)
Target Milestone: 4.1.0
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2013-11-21 17:34 UTC by Andrea Pescetti
Modified: 2014-03-04 18:49 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Open with Writer 4.0.1 -> Crash (15.25 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-11-21 17:34 UTC, Andrea Pescetti
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Andrea Pescetti 2013-11-21 17:34:24 UTC
Created attachment 81976 [details]
Open with Writer 4.0.1 -> Crash

As reported on the users list, Writer (4.0.1 on Windows/Mac/Linux) crashes when trying to open the attached docx file, named "Holiday Songs 2012".

I didn't check whether the file is a valid docx file, but still the crash shouldn't happen.
Comment 1 Edwin Sharp 2013-11-22 09:38:45 UTC
Opens OK in Word 2010.
Comment 2 Rob Weir 2013-11-27 16:11:40 UTC
The Microsoft OpenXML SDK 2.0 (which is their validator tool) won't open this document, saying it is corrupt.

I then tried to manually validate the XML and received an error in document.xml on this:

<w:pgMar w:top="1440" w:right="1800" w:bottom="1440" w:left="1800" w:header="720"
                w:footer="720"/>

E [Jing] cvc-complex-type.4: Attribute 'gutter' must appear on element 'w:pgMar'.

I'm not sure whether this is the cause of the crash, but it is odd to see an error in an OOXML file.

Do we know what application was used to create this document?  If MS Word, what version?
Comment 3 Armin Le Grand 2014-02-25 00:43:07 UTC
Opens on win7 version 'AOO410m1(Build:9750)  -  Rev. 1569541' and creates 273 pages, but no crash. I get the following assertions:

Error: no context of this type available From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 322
Error: DomainMapper::attribute() - Id: 9264 / 0x2430 value: 0 / 0x0 From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper.cxx at Line 2185
Error: setPropertyValue exception From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/StyleSheetTable.cxx at Line 1298
Error: no context of this type available From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 322
Error: DomainMapper::attribute() - Id: 9264 / 0x2430 value: 0 / 0x0 From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper.cxx at Line 2185
Error: setPropertyValue exception From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/StyleSheetTable.cxx at Line 1298
Error: DomainMapper_Impl::ImportGraphic From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 3620
Error: DomainMapper_Impl::ImportGraphic From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 3620
Error: DomainMapper_Impl::ImportGraphic From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 3620
Error: DomainMapper_Impl::ImportGraphic From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 3620
Error: no context of this type available From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 322
Error: DomainMapper::attribute() - Id: 9264 / 0x2430 value: 0 / 0x0 From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper.cxx at Line 2185
Error: setPropertyValue exception From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/StyleSheetTable.cxx at Line 1298
Error: DomainMapper_Impl::ImportGraphic From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 3620
Error: DomainMapper_Impl::ImportGraphic From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 3620
Error: DomainMapper_Impl::ImportGraphic From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 3620
Error: DomainMapper_Impl::ImportGraphic From File C:/aoo/svn_trunk47/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx at Line 3620
Comment 4 Rainer Bielefeld 2014-03-04 16:14:27 UTC
No longer reproducible with server installation of "AOO 4.1.0-Beta – English UI / German locale - [AOO410m14(Build:9760)  -  Rev. 1572868
2014-02-25 11:43:28]" on German WIN7 Home Premium (64bit)", own separate user profile.

Fix-Verifications?
Comment 5 Rainer Bielefeld 2014-03-04 16:15:55 UTC
Crashed for me with WIN 4.0.1, so I think my result is relevant.
Comment 6 Edwin Sharp 2014-03-04 16:56:12 UTC
I'm singing :)
AOO410m14(Build:9760)  -  Rev. 1573062
2014-03-01_04:11:01 - Rev. 1573123
Debian
Comment 7 Andrea Pescetti 2014-03-04 18:49:00 UTC
It is indeed fixed. From the other descriptions above (first it crashed; then it opened, but with a huge number of pages; now it opens fine) the fix seems related to Oliver's work for Pages 5 .docx files, see https://issues.apache.org/ooo/show_bug.cgi?id=124106