Issue 77118 - crash opening Ww8 doc having OLE in headless/UNO, win2K/win2003 but not XP
Summary: crash opening Ww8 doc having OLE in headless/UNO, win2K/win2003 but not XP
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOo 2.1
Hardware: PC Windows, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: crash, oooqa
Depends on:
Blocks:
 
Reported: 2007-05-08 16:14 UTC by soliplaya
Modified: 2017-05-20 11:15 UTC (History)
5 users (show)

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


Attachments
removing logo stops crash (73.50 KB, application/msword)
2007-05-08 16:27 UTC, soliplaya
no flags Details
error log, xml (10.98 KB, text/plain)
2007-05-08 16:31 UTC, soliplaya
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description soliplaya 2007-05-08 16:14:04 UTC
I use OO2 in headless mode under Windows to convert batches of MS-Office
documents, using the JODConverter software
(http://www.artofsolving.com/opensource/jodconverter).
It works generally great, and I have converted hundreds of documents.
Some MS-Word documents however cause Writer to crash, both with OO2.1 and OO2.2.
Since OO2 runs in headless mode, I do not see any error message, just the error
message from JODConverter telling me it lost the connection with OO2 headless.
One characteristic of these documents seems to be that they contain a table, and
in the table a cell which contain a graphic (the logo of a company).
The crash occurs on 2 machines (one is Win2K, the other Win2003), but not on
others (all these are WinXP SP2), and only when working in "headless" mode
(background, as server on port 8100). Opening the same document with the normal
GUI works fine.
If I remove the graphic in the table cell, OO2 Writer does not crash anymore on
the document in headless mode. I could provide a test document, if I can find
out how to attach a file here.
Comment 1 soliplaya 2007-05-08 16:27:12 UTC
Created attachment 44943 [details]
removing logo stops crash
Comment 2 soliplaya 2007-05-08 16:31:57 UTC
Created attachment 44944 [details]
error log, xml
Comment 3 soliplaya 2007-05-08 16:47:00 UTC
With no intention of confusing the issue, I would nevertheless like to add :
Browsing the Writer and API forums, I have seen a number of times mentioned that
OO2 "disconnected unexpectedly" from the driving application while attempting a
document conversion.
I have processed hundreds of documents with the same method, succesfully.  But
when it crashes, that is the symptom.
What I mean is that a number of these other reports could be linked to the same
issue.  Possibly.
Comment 4 michael.ruess 2007-05-10 09:52:23 UTC
MRU->MAV: seems to be a problem of the OLE object (not a graphic, it is an MS
Draw object) in the doc. The report has been sent by submitter "soliplaya" - in
the report database it could be found under stack ID 982971.
I have set the target to 2.3 at first, but if there won't be enough resources we
could change it to a succeeding release.
Comment 5 soliplaya 2007-05-10 10:37:01 UTC
I am not competent to guess what the issue might be, but the fact that the same
documents open correctly in the normal GUI mode on the same platforms, but crash
OO 2.1 and 2.2 in headless mode, can that indicate a problem of the OLE object
per se ? (I mean, the documents and embedded objects remain the same).
Maybe there is something different happening in headless mode versus GUI, that
triggers a crash under Win2K and Win2003, but not XP ?
(From the developer of JODConverter, I also know that under Linux the problem
doesn't occur).
Comment 6 mikhail.voytenko 2007-07-30 10:10:19 UTC
Yes the problem is triggered by the embedded objects. The problem here is that
on Windows platform the Windows OLE object is switched to running state, that
seems to let the functionality in ole32.dll to crash in case of headless office.

This bug will not be fixed for 2.3 release, changing the target.
Comment 7 Mathias_Bauer 2007-10-05 14:54:48 UTC
Any idea why ole32 crashes when OOo runs in "headless" mode that IIRC is nothing
else than a VCL feature?
Comment 8 philipp.lohmann 2007-10-08 11:32:29 UTC
headless mode is not really a vcl feature on windows; on the X11platforms we
have a different plugin then to render offscreen and not use the X11 server, but
that does of course not apply on Windows. To my knowledge vcl does not do
anything special on Windows if "-headless" is on the command line. All that
happens is AFAIK handled in framework and I think the only major difference is
that the documents are not shown then ?
Comment 9 Mathias_Bauer 2008-01-11 09:58:47 UTC
target 3.x
Comment 10 Marcus 2017-05-20 11:15:20 UTC
Reset assigne to the default "issues@openoffice.apache.org".