[ 
http://jira.codehaus.org/browse/MPPDF-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139245#action_139245
 ] 

Andy Jefferson commented on MPPDF-62:
-------------------------------------

Taking the "plugin-resources" files from 2.5.1 and putting them into the plugin 
for 2.2.1 results in a working plugin that seems to have all of the fixes that 
have gone in since 2.2.1 (contents page not coping with > 10 sections, not 
including images in same directory, etc) yet doesn't give OOME.

Of the other diffs in these plugin versions that I can see
2.2.1 : Fop (0.20.5), Batik=1.5.0, xerces=2.4, xalan=2.4.1
2.5.1 : Fop=0.20.5, Batik=1.5.0-fop-0.20.5, xerces=2.8, xalan=2.7

Any ideas?

At least now I can build a custom version of this plugin and have something 
working, but would be nice to have this done officially and someone in the know 
can understand why the official latest release gives OutOfMemoryError on 
significant size PDF generation.

> OutOfMemoryError using Maven 1.1 and v2.5.1 but works with Maven1.0 and v2.2.1
> ------------------------------------------------------------------------------
>
>                 Key: MPPDF-62
>                 URL: http://jira.codehaus.org/browse/MPPDF-62
>             Project: Maven 1.x PDF Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5.1
>            Reporter: Andy Jefferson
>
> The following project
> svn co 
> https://datanucleus.svn.sourceforge.net/svnroot/datanucleus/documentation/accessplatform.datanucleus.org/trunk
>  datanucleus
> when running "maven clean pdf" runs fine when using Maven1.0 and plugin 
> 2.2.1. Just tried with Maven1.1 and plugin 2.5.1 and it gives
>     [java] [INFO] [297]
>     [java] [INFO] [298]
>     [java] [INFO] [299]
>     [java] [INFO] [300]
>     [java] [INFO] [301]
>     [java] [INFO] [302]
>     [java] Exception in thread "main" java.lang.OutOfMemoryError: Java heap 
> space
>     [java]      at java.lang.String.<init>(String.java:208)
>     [java]      at java.lang.StringBuilder.toString(StringBuilder.java:431)
>     [java]      at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>     [java]      at java.lang.Integer.parseInt(Integer.java:447)
>     [java]      at java.lang.Integer.parseInt(Integer.java:497)
>     [java]      at 
> org.apache.fop.layout.FontInfo.createFontKey(FontInfo.java:130)
>     [java]      at org.apache.fop.layout.FontState.<init>(FontState.java:112)
>     [java]      at 
> org.apache.fop.fo.PropertyManager.getFontState(PropertyManager.java:117)
>     [java]      at org.apache.fop.fo.flow.TableCell.layout(TableCell.java:292)
>     [java]      at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:360)
>     [java]      at 
> org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.java:236)
>     [java]      at org.apache.fop.fo.flow.Table.layout(Table.java:302)
>     [java]      at org.apache.fop.fo.flow.Block.layout(Block.java:257)
>     [java]      at org.apache.fop.fo.flow.Block.layout(Block.java:257)
>     [java]      at org.apache.fop.fo.flow.Block.layout(Block.java:257)
>     [java]      at org.apache.fop.fo.flow.Block.layout(Block.java:257)
>     [java]      at 
> org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
>     [java]      at 
> org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
>     [java]      at 
> org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400)
>     [java]      at 
> org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
>     [java]      at 
> org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
>     [java]      at 
> org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
>     [java]      at 
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>     [java]      at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
>     [java]      at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>     [java]      at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>     [java]      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
> Source)
>     [java]      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
> Source)
>     [java]      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>     [java]      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source)
>     [java]      at 
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>     [java]      at org.apache.fop.apps.Driver.render(Driver.java:498)
> It was running through quite quick til it got to 250 or so then slower and 
> slower. 
> Obviously will be different on each machine, but I have
> setenv MAVEN_OPTS "-Xmx512m -Xms512m"
> but have tried also with 1024 for both
> Anything I can set to get around this ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to