1. petermr
  2. pdf2svg
  3. Issues
Issue #20 resolved

Can't build with maven

modrajagoda
created an issue

Hi! I can't compile pdf2svg. Any ideas what I should do?

Tests in error: 
  testBMCRegression(org.xmlcml.pdf2svg.RegressionTest)

Tests run: 43, Failures: 0, Errors: 1, Skipped: 5
<testcase time="84.186" classname="org.xmlcml.pdf2svg.RegressionTest" name="testBMCRegression">
    <error message="Java heap space" type="java.lang.OutOfMemoryError">java.lang.OutOfMemoryError: Java heap space
        at org.xmlcml.euclid.RealArray.&lt;init&gt;(RealArray.java:89)
        at org.xmlcml.euclid.Real2Array.add(Real2Array.java:119)
        at org.xmlcml.graphics.svg.LinePrimitive.&lt;init&gt;(LinePrimitive.java:16)
        at org.xmlcml.graphics.svg.SVGPathPrimitive.parseDString(SVGPathPrimitive.java:76)
        at org.xmlcml.graphics.svg.SVGPathPrimitive.formatDString(SVGPathPrimitive.java:169)
        at org.xmlcml.graphics.svg.SVGPath.format(SVGPath.java:492)
        at org.xmlcml.pdf2svg.PDFPage2SVGConverter.getAndFormatClipPath(PDFPage2SVGConverter.java:631)
        at org.xmlcml.pdf2svg.PDFPage2SVGConverter.processTextPosition(PDFPage2SVGConverter.java:324)
        at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:498)
        at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:62)
        at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:556)
        at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:270)
        at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237)
        at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217)
        at org.xmlcml.pdf2svg.PDFPage2SVGConverter.drawPage(PDFPage2SVGConverter.java:167)
        at org.xmlcml.pdf2svg.PDFPage2SVGConverter.convertPageToSVG(PDFPage2SVGConverter.java:153)
        at org.xmlcml.pdf2svg.PDF2SVGConverter.openPDFFile(PDF2SVGConverter.java:182)
        at org.xmlcml.pdf2svg.PDF2SVGConverter.readFileOrDirectory(PDF2SVGConverter.java:463)
        at org.xmlcml.pdf2svg.PDF2SVGConverter.run(PDF2SVGConverter.java:404)
        at org.xmlcml.pdf2svg.RegressionTest.testBMCRegression(RegressionTest.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
</error>

Comments (3)

  1. modrajagoda reporter

    The tests running was fixed with adding this to the pom.xml

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.14</version>
    <configuration>
    <argLine>-Xmx1024m</argLine>
    </configuration>
    </plugin>
    
  2. Log in to comment