Issue 120115 - unconformant DOCX silently crashes on opening
Summary: unconformant DOCX silently crashes on opening
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: 3.4.0
Hardware: All Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: Anders Kvibäck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 09:43 UTC by Dmitry
Modified: 2013-06-07 04:43 UTC (History)
3 users (show)

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


Attachments
non-UTF8 OpenXML-like document (4.77 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-06-28 09:43 UTC, Dmitry
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Dmitry 2012-06-28 09:43:20 UTC
Created attachment 78514 [details]
non-UTF8 OpenXML-like document

Attached is document, generated by some intranet system.
It violates 2.4 chapter of ISO by specifying non-UTF character set.
// the application is targeted at Microsoft Ofice compatibility, not at specifications. And MS Office opens such documents just fine.

MSO 2010 / 2003+CompatPack just open that documents easily.
KingSoft Office for mobile phones refuses to do.

OpenOffice.org Pro 3.3 (by i-rs.ru) also displayed an error and refused to open.

AOOo 3.4 ... just disappears.
It probably had crashed but no GUI, even no OS-standard app memory dumper shows.

I run application from console to see if it would log something out - but silence in the stdout/stderr too.

---

Best possible outcome would be MSO approach. Since you can edit arbitrary HTML/XML, you already do have a library of charsets and can transparently recode the document whil opening.

Or at least AOOo should report the error to user and explicitly deny opening the document. 

But just silently crashing and closing without saying a word is not good outcome.
Comment 1 bjcheny 2012-09-04 05:42:37 UTC
In latest version, it will report an error and message box with "General I/O error", which may be more friendly.

(In reply to comment #0)
Comment 2 Dmitry 2012-09-04 06:07:53 UTC
why not re-code it on the fly and still open ?
It should not be very hard and it would be on par with MS Office in universality.
Comment 3 bjcheny 2012-09-04 06:43:43 UTC
It's not only the re-coding issue, further more, it doesn't follow the Office OpenXML(OOXML) strictly.The OOXML standard is for MSO 2007/2010/2013, and gives how xml files will be organized under different dir.
When you unzip the attachment, you can find its dir structure different from normal docx. The dir structure is one of essential keys for OpenOffice to judge its format, and which filter will be used.


(In reply to comment #2)
Comment 4 Dmitry 2013-02-01 06:20:19 UTC
Well, i'll have a look, though have to admit that the very MS Excel 2010 does not conform to OpenXML strictly :-)
Comment 5 Anders Kvibäck 2013-02-28 09:20:30 UTC
I can confirm this defect. It doesn't open up. This in Windows Vista, AOO 3.4.1, HP.
Comment 6 Rob Weir 2013-06-07 00:42:42 UTC
Tried with 3.4.1 on Windows 7, 32-bit.  No crash, but the file will not open.  When launched from the Windows shell AOO does not appear to launch.  When loading the file within AOO noting happens.  No crash, no error, message.

This is annoying, but not high severity.
Comment 7 orcmid 2013-06-07 04:43:53 UTC
(In reply to Rob Weir from comment #6)
> Tried with 3.4.1 on Windows 7, 32-bit.  No crash, but the file will not
> open.  When launched from the Windows shell AOO does not appear to launch. 
> When loading the file within AOO noting happens.  No crash, no error,
> message.
> 
> This is annoying, but not high severity.

When the application does not seem to launch from the Windows Explorer (shell), I have learned to open the Task Manager and see if there is a wedged instance running.  When that is the case, new launches tend to short-circuit, apparently based on a determination that the app is already running.  Reboot or simply terminating the running instance usually takes care of it.  (If it doesn't seem to terminate, rebooting is the only answer.)