Issue 4131 - Office crashes on large Powerpoint file
Summary: Office crashes on large Powerpoint file
Status: CLOSED FIXED
Alias: None
Product: Impress
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1 RC
Assignee: christian.guenther
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-19 03:33 UTC by joeljkp
Modified: 2003-09-08 16:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description joeljkp 2002-04-19 03:33:30 UTC
The Presentation editor crashed when I tried to open a large (80mb) PowerPoint file.
Comment 1 stx123 2002-05-08 10:30:48 UTC
Reassign issue to owner of selected subcomponent
Comment 2 bettina.haberer 2002-05-13 12:13:30 UTC
Reassigned to Christian.
Comment 3 christian.guenther 2002-05-13 13:44:50 UTC
I can't reproduce the bug because I don't have such big files. Please
send me such a file as attachment.
Comment 4 christian.guenther 2002-06-03 11:12:47 UTC
I created a document with nearly 80 MB (78MB) by my own. loading the
document takes much time but I don't get a crash. Please send me your
document to reproduce the bug. 
Comment 5 joeljkp 2002-06-03 22:37:55 UTC
A testcase is located at http://www.ballsome.com/testcase.rar
Comment 6 christian.guenther 2002-06-11 15:05:27 UTC
I try several times to download your testfile but I don't get a file
that winrar can read.
Comment 7 joeljkp 2002-06-14 20:37:12 UTC
Ok, I re-zipped, re-uploaded, and tested it out myself. This one
worked for me, although be warned that it took a good 5-10 minutes to
unzip the thing. The file is: http://www.ballsome.com/files/testcase.zip
Comment 8 joeljkp 2002-06-16 07:03:55 UTC
Can you tell me when you've gotten this file? It's eating up too much 
space on my server....
Comment 9 christian.guenther 2002-06-17 08:30:08 UTC
I got the document and could unzip it. Thanks for the doc. 
Comment 10 christian.guenther 2002-06-17 10:08:16 UTC
I can reproduce the doc in the OpenOffice.org 1.0 version. It seems to
be ok in the latest internal version. 
Comment 11 sven.jacobi 2002-06-17 15:01:36 UTC
Hi,

I examined the presentation and found the problem.

There are eight Excel ole objects embedded which are
converted to Calc ole by default. That is the reason 
that the import takes so much time, it is comparable 
to the time that is needed to import one PowerPoint 
document and eight Excel documents and of course
the memory consumption is equivalent.

The good news is that you can switch off the feature
which converts ole objects into the own format under
Tools/Options/LoadSave/Microsoft Office/ .
If you uncheck all these checkboxes, the import 
of the PowerPoint document should make it in adequate
time. 

Because this feature is making so to much trouble I
changed the default, and hope that the change will make
it into the next Stable OO build. 

The fix takes place in:
officecfg/data/org/openoffice/office/Common.xcd -r1.83

I hope I could help,
Sven
Comment 12 beccon 2002-07-08 17:02:43 UTC
Tried to open a rather large MS-Word .doc file. (1063 pages around 
7MB size)

OpenOffice tries to open it but freezes after a while. You can easily 
see it with an ps -Al statement - the first soffice.bin just stops 
progressing (in my case around 2:02) I tried to change options/memory 
setting to no avail.

Only kill -9 helps.

Conrad
Comment 13 beccon 2002-07-15 11:25:31 UTC
Tried to start OO again from the Linux shell command line. The last 
thing OO says before crashing ist:
SIOCGIFADDR got '00:00:00:00:00:00'    

Conrad
Comment 14 stefan.baltzer 2002-07-19 13:23:52 UTC
Christian: This seems to be about a .ppt file, not .doc -> yours.

Conrad: You can't "hop on" this issue with your problem only because
this is about MS Office filters, sorry. Problems with another file
always means you have to file another issue. Plus: In your case it is
MS Word. This task here had a wrong title, but as the first sentence
in the description and Sven's statement show, it is about
Presentations. I changed the title to meet the facts now. FYI: You
can't submit and attach at the same time. After submitting an issue,
you have to access it again before being able to click "Create a new
attachment".

ALL: Have one statement about file sizes. The past has shown that in
most cases it is possible to reduce a file to a few pages while still
showing the problem. There are very few problems that need the "full
size" docs.

To reduce a MS documents in size, do as follows: 

Disable "fast save" as it tends to pump up the docs' sizes: In MS Word
via menu: Tools-Options-Save, there is a checkbox "enable fast save".

Then you sometimes can witness "a miracle" in file size by re-saving
the doc once. If this is not enough, go on like this:

1. Open Bugdoc in MS Office
2. delete second half
3. Save (new name)
4. Open Bugdoc again
5. Delete first half
6. Save (new name)
7. Load both in OO
8. Take the doc that still shows the problem and repeat from 1. until
you can't reproduce it in either half or you think it's small enough
to send it.

I remember no case in the past when _simple document size_ was the
source of a problem. Size only makes your machine swap and a file
server run out of memory. Therefore it is always useful to give it a
try the way I described.
Comment 15 christian.guenther 2002-11-28 09:01:46 UTC
I can load the doc the first time. When I reload the doc (Files/Relod)
I get a crash.
When I try to load it with the latest internal versionI get a 'Error
loading document ..... incorrect file format.'
Comment 16 sven.jacobi 2003-01-28 17:52:05 UTC
It's all a problem of memory. I tested it, having enough memory it is 
possible to load and also reload this document. And it can't be fixed 
that a document is crashing here and there if there is too less 
memory available. Even Microsoft PowerPoint is having problems if you 
try to edit one of these ole objects and copy paste them into another 
application.

I think this Issue should be closed.
Comment 17 joeljkp 2003-01-29 00:38:08 UTC
I had 384 mb of RAM when I came upon this problem. That should be more
than enough memory.
Comment 18 jonl 2003-02-04 10:59:31 UTC
At the URL http://www.cpt.dur.ac.uk/~levell/bigppt.zip is a 28meg
PowerPoint file (zipped). It opens fine on even relatively low-specced
WinTel machines running MS PowerPoint but if I load it into
OpenOffice, even with little else running it exhausts all the memory,
then the swap space and then exits. My machine has 3/4 of a gig of
ram, more than a gig of swap so it should manage (Tried 1.0.2 but not
latest CVS) and am running RH7.3
Comment 19 christian.guenther 2003-02-04 15:26:05 UTC
Reassign owner.
Comment 20 jonl 2003-02-18 17:35:39 UTC
With some further investigation, it really does seem just a massive
memory use issue - if I split the ppt file up in powerpoint into two
smaller files I can import both into OpenOffice (albeit with a lot of
activity in swap). Once the whole file is imported memory use drops
right down to something normal - it seems like it requires massive
amounts of memory for the conversion but not much for the converted
slide. 

So okay I haven't looked at the source and have no idea what I'm
talking about so feel free to tell me that but wouldn't it be possible
to "import" one slide at a time and only have roughly the memory use
of the   converted slides + a large chunk for the slide undergoing
conversion?
Comment 21 caolanm 2003-02-19 09:38:42 UTC
Changing QA contact from sw to graphics.
Comment 22 sven.jacobi 2003-06-17 11:04:09 UTC
I come to the conclusion that the problem with the file "testcase" is
no bug, instead the file bigppt from jon is a bug and should be fixed
as soon as possible.

SJ->MSC: Would you please set the target milestone to OOo 1.1 RC,
since loading the file bigppt is mostly leading to a gpf.
Comment 23 marc.neumann 2003-06-17 11:54:46 UTC
change target as SJ request
Comment 24 sven.jacobi 2003-06-17 14:55:21 UTC
SJ: This bug has been fixed now. Loading the document bigppt should
now be possible.

Bugfix was reviewed by THB, he told me that the fix looks good.
Comment 25 sven.jacobi 2003-06-20 08:40:18 UTC
SJ->CGU: This bug is now ready to be verified in cws[draw18]
Comment 26 christian.guenther 2003-06-20 11:33:52 UTC
set to fixed
Comment 27 christian.guenther 2003-06-20 11:34:42 UTC
CGU: Verified in cws draw18 on Lin, Win. There is no version for Sols.
Comment 28 christian.guenther 2003-06-20 11:36:25 UTC
.
Comment 29 christian.guenther 2003-07-14 11:16:17 UTC
integrated in the latest internal version on Sols, Lin, Win.
I close the issue.
Please reopen the issue if you can still reproduce the bug in the OOo1.1RC
Comment 30 jonl 2003-07-19 14:33:10 UTC
I'd like to reopen this but but do not have the requisite permissions.
With OOo1.1RC it still cannot load the file - it exhausts physical
memory (1GB) then swap (1GB) then (eventually) puts up an
"unrecoverable alert" message box and exits.

Thanks for taking the time to look into this, did the patch land in
time for 1.1RC? I'm sorry it has taken me so long to respond, I've
been away from the keyboard for a while.