Created attachment 88053 [details] Docx generated by pages Problem description: opening files generated in Pages causes writer to crash Steps to reproduce: 1. open the below file in 4.1.2.3 2. writer crashes Current behavior: writer crashes Expected behavior: unicorns and rainbows (also the document opens) Operating System: Linux (Other) Version: 4.1.2.3 release
Confirmed this document (and others generated from Pages on iOS 7) crash LibreOffice Writer on opening. All of those documents open fine in Microsoft Word on Windows. Operating System: Ubuntu Linux 13.04 x64 Version: 4.1.3 RC 1 released 10-Oct-2013
Thank you for your bug report, I can reproduce this bug running Version: 4.1.3.2 Build ID: 70feb7d99726f064edab4605a8ab840c50ec57a OS: Mac osx 10.9. The file opens with out a problem with Apple's Pages 4.3 I think this bug is Critical because users who use Pages and save them in docx cannot use LibreOffice any more to open them.
Created attachment 88073 [details] Crash log Mac osx 10.9
On pc Debian x86-64 with master sources updated today, I reproduced the crash. I noticed these logs: warn:writerfilter:13196:1:writerfilter/source/dmapper/DomainMapper_Impl.cxx:435: no context of type 1 available warn:writerfilter:13196:1:writerfilter/source/dmapper/DomainMapper.cxx:1487: DomainMapper::attribute() - Id: 9264 / 0x2430 value: 0 / 0x0 Aleks: could you attach the original odt file?
Julien: For me, there was no original odt file. Create a document (with any content at all) in Pages on the iPad, export it as a .docx file, and Writer crashes. That same docx file works fine in Microsoft Word proper.
Aleks: I understand better now. I didn't know Pages, sorry for the confusion.
Some gdb session for the first message: Breakpoint 1, writerfilter::dmapper::DomainMapper_Impl::GetTopContextOfType (this=0x1cd1730, eId=writerfilter::dmapper::CONTEXT_PARAGRAPH) at /home/julien/compile-libreoffice/libo/writerfilter/source/dmapper/DomainMapper_Impl.cxx:433 433 PropertyMapPtr pRet; (gdb) n 434 SAL_WARN_IF( m_aPropertyStacks[eId].empty(), "writerfilter", (gdb) p pRet $1 = empty boost::shared_ptr (gdb) p eId $2 = writerfilter::dmapper::CONTEXT_PARAGRAPH (gdb) p m_aPropertyStacks[eId].empty() $3 = true (gdb) n [Thread 0x2aaace832700 (LWP 13421) exited] warn:writerfilter:13384:1:writerfilter/source/dmapper/DomainMapper_Impl.cxx:435: no context of type 1 available Miklos: I think you might be interested in this tracker so I put you in cc.
*** Bug 70893 has been marked as a duplicate of this bug. ***
Can also confirm that Emailed Pages Docx file from IPad air has crashed Libre office writerused in Ubuntu 13.10 and Windows Vista
I'll take care of this.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=660d761bfeea81c0b76cf08b4c961a2ad8d09a06 fdo#70812 writerfilter: check for nullptr after dynamic_cast The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Tested with attached file, file opens successfully.
*** Bug 71460 has been marked as a duplicate of this bug. ***
-4-1 review: https://gerrit.libreoffice.org/6636
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=88cb2a731bf445776adb6c047010bbd0dae3c633&h=libreoffice-4-1 fdo#70812 writerfilter: check for nullptr after dynamic_cast It will be available in LibreOffice 4.1.4. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 72046 has been marked as a duplicate of this bug. ***
*** Bug 72188 has been marked as a duplicate of this bug. ***
Fix verified on LO Version: 4.3.0.0.alpha0+ Build ID: a14cfd3d77104aee3e3c3d981a135161295197df TinderBox: MacOSX-x86@49-TDF, Branch:master, Time: 2013-12-02_04:42:54 But another problem with this document seems to be that whenever pressing enter for a linebreak, instead a new page is created. Very strange. If anybody else also experiences that behavior, could you please create a new / separate bug for that attaching the example document from here.
(In reply to comment #15) > It will be available in LibreOffice 4.1.4. Verified in 4.1.4.1 (Note: Each new paragraphs creates a new page due to the page > Text flow settings, but that may be intended.)
I reported this about a week ago in https://bugs.freedesktop.org/show_bug.cgi?id=72043 - perhaps if others are able to verify it is any new-format DOCX (even from MS Word) we should revise that title.