Issue 91097 - XSLT filters do not work with large graphics included
Summary: XSLT filters do not work with large graphics included
Status: ACCEPTED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.4.1
Hardware: PC Windows XP
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-26 12:16 UTC by allgaeu_tobias
Modified: 2013-08-07 14:44 UTC (History)
2 users (show)

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


Attachments
the document that failed (182.24 KB, application/vnd.oasis.opendocument.text)
2008-06-26 14:12 UTC, allgaeu_tobias
no flags Details
Logfile (DXSLTransformer.statsfile) (3.06 KB, text/plain)
2008-06-26 14:15 UTC, allgaeu_tobias
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description allgaeu_tobias 2008-06-26 12:16:38 UTC
When I try to export my odt document to xhtml, I get the following error 
message:

"Error saving the document <filename>:
Write Error.
The file could not be written."

There is enough free space on the drive and I have write permissions, of course.
I. e. I can save files to in that folder.
Comment 1 eric.savary 2008-06-26 13:17:52 UTC
Reassigned
Comment 2 svante.schubert 2008-06-26 13:46:30 UTC
Could you please attach the document that failed, most likely the problem was in
that document.

You may in addition add some logging under Tools->Options->Java
adding the Java Parameter
-DXSLTransformer.statsfile=<LOGFILEPATH>

Where LOGFILEPATH is the file to your debug output file.

Good luck ;-)
Svante
Comment 3 allgaeu_tobias 2008-06-26 14:12:05 UTC
Created attachment 54760 [details]
the document that failed
Comment 4 allgaeu_tobias 2008-06-26 14:15:03 UTC
Created attachment 54761 [details]
Logfile (DXSLTransformer.statsfile)
Comment 5 svante.schubert 2008-06-26 15:22:30 UTC
This was quick!

If you are not a technical person skip this part:

The log says it is a heap overflow it is a hint the input is too large.
If you rename the document exchanging ODT with ZIP, you can easily unzip the
package and have a look inside.
The content is not such big, the transformation is able to process 700 pages of
specification, but in the Pictures folder is a 6BM TIFF picture.
This picture will be encoded in BASE64, which blows the size again to 33% and
than will be parsed by the XML parser.
Yes, it sounds strange and we are currently discussing it to change it to access
only the files in the package the filter needs.

What you can do!
================
You can transform the picture with a graphic program to a smaller sized format
and exchange it in the ODT document.
Than try again the XHTML export.

If it works than, we should rename this issue to 
"XSLT filters do not work with large graphics included"

Best,
Svante
Comment 6 allgaeu_tobias 2008-06-27 07:45:59 UTC
Thank you, Svante!

Your guess was right.
After I converted the picture from TIFF to PNG, export to xhtml worked.

I will rename this issue now to
"XSLT filters do not work with large graphics included".

Cheers

Tobias