[Libreoffice-bugs] [Bug 48505] FILEOPEN: Loading ppt of CISCO icons freeze, too much memory

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 29 21:15:13 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=48505

--- Comment #6 from Valek Filippov <frob at gnome.org> 2012-07-29 19:15:13 UTC ---
Created attachment 64924
  --> https://bugs.freedesktop.org/attachment.cgi?id=64924
screenshot of bad EMF

In this case PPT is a kind of 'wrapper' for 420 pictures (249 WMFs, 169 EMFs
and 2 JPEGs).

I believe I know what's wrong with this file.
The whole file is ~8.4Mb.
Picture #320 is a OfficeArtBlipEMF of ~6Mb.
Decompressed #320 is ~530Mb (five hundred thirty megabytes).
I dumped it from PPT and opened in LO Draw.
Screenshot is attached.
An EMF image like this could be fitted in 530 Bytes, the one in question wastes
space to store enormous number of control records, which could be skipped
without impact for the end result. Nothing interesting in its EMF part.

Hence I guess someone need to find which function call from "open file" through
"handle RT_Slide" to "handle EMF record" doesn't survive "insufficient memory"
exception.
I'm not a user interaction expert, but probably some additional (other than
progress bar) hints could be provided to users in such situation.

Also if LibreOffice decompress the whole BLIP and parse it, then probably that
part can be changed to take decompression in blocks (afaik supported by zlib)
and discard parsed parts. That could introduce little to no delay for handling,
but will definitely reduce amount of memory required and improve overall
responsiveness of the system.

P.S.
I had contacts of the Cisco ppl responsible for those files. I will try to
contact them and ask to eliminate the problem within this PPT file.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list