Should scale in PDF creation cause errors?

0 votes
asked Jan 3, 2018 in Bug by Adam L

I was trying to track down what was causing errors in creating a PDF in a large diagram. I found an errant 'scale' that was the issue. 

The problem does happen under a Windows shell, not just cygwin, with GRAPHVIZ_DOT set to the EXE.

@startuml
scale 1700*2200 
title Creating a New Git Repo 
(*) --> "Create New Repo"
--> "Create **develop** branch"
--> "Apply branch permissions"
--> (*)
@enduml

Versions:

$ java -jar plantuml.jar -version
PlantUML version 1.2017.20 (Mon Dec 11 10:57:05 CST 2017)
(GPL source distribution)
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) 64-Bit Server VM
Java Version: 1.8.0_111-b14
Operating System: Windows 7
OS Version: 6.1
Default Encoding: Cp1252
Language: en
Country: US
Machine: ALEVINE-T460
PLANTUML_LIMIT_SIZE: 4096
Processors: 4
Max Memory: 3,682,074,624
Total Memory: 249,561,088
Free Memory: 244,300,728
Used Memory: 5,260,360
Thread Active Count: 1

The environment variable GRAPHVIZ_DOT has not been set
Dot executable is c:\Program Files (x86)\Graphviz2.38\bin\dot.exe
Dot version: dot - graphviz version 2.38.0 (20140413.2041)
Installation seems OK. File generation OK

Even with in Windows shell with variable set:

C:\dev\plantuml>java -jar plantuml.jar -testdot
The environment variable GRAPHVIZ_DOT has been set to c:\Program Files (x86)\Graphviz2.38\bin\dot.exe
Dot executable is c:\Program Files (x86)\Graphviz2.38\bin\dot.exe
Dot version: dot - graphviz version 2.38.0 (20140413.2041)
Installation seems OK. File generation OK

Error log:

(508.979 - 1340 Mo) 1224 Mo - Setting current dir: C:\docs\GitDev

(508.979 - 1340 Mo) 1224 Mo - Using default charset

(508.981 - 1340 Mo) 1224 Mo - Setting current dir: C:\docs\GitDev

(508.981 - 1340 Mo) 1224 Mo - Setting current dir: C:\docs\GitDev

(508.983 - 1340 Mo) 1219 Mo - Reading file: C:\docs\GitDev\NewGitRepo-debug.txt

(509.049 - 1340 Mo) 1174 Mo - Creating file: C:\docs\GitDev\NewGitRepo-debug.pdf

(509.051 - 1340 Mo) 1174 Mo - Creating temporary file: C:\dev\cygwin64\tmp\pdf4011874080601177962.svf

(509.052 - 1340 Mo) 1174 Mo - Creating temporary file: C:\dev\cygwin64\tmp\pdf4807935680964148739.pdf

(509.074 - 1340 Mo) 1174 Mo - Starting Graphviz process [c:\Program Files (x86)\Graphviz2.38\bin\dot.exe, -Tsvg]

(509.074 - 1340 Mo) 1174 Mo - DotString size: 741

(509.564 - 1340 Mo) 1167 Mo - Ending process ok

(509.564 - 1340 Mo) 1167 Mo - Ending Graphviz process

(509.567 - 1340 Mo) 1167 Mo - TransformerFactory=class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl

(509.567 - 1340 Mo) 1167 Mo - Transformer=class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl

About to transcoder source of type: org.apache.batik.apps.rasterizer.SVGConverterFileSource

Jan 03, 2018 11:35:43 AM org.apache.fop.fonts.truetype.TTFFile guessVerticalMetricsFromGlyphBBox

WARNING: xHeight value could not be determined. The font may not work as expected.

[repeat of above warning.....]

java.awt.image.ImagingOpException: Unable to transform src image

        at java.awt.image.AffineTransformOp.filter(Unknown Source)

        at org.apache.batik.ext.awt.image.rendered.AffineRed.genRect(Unknown Source)

[...]

        at java.lang.reflect.Method.invoke(Unknown Source)

        at net.sourceforge.plantuml.pdf.PdfConverter.convert(PdfConverter.java:69)

        at net.sourceforge.plantuml.UmlDiagram.exportDiagramInternalPdf(UmlDiagram.java:372)

        at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:233)

        at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:134)

        at net.sourceforge.plantuml.PSystemUtils.exportDiagramsCuca(PSystemUtils.java:208)

        at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:67)

        at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:212)

        at net.sourceforge.plantuml.DirWatcher2$1.call(DirWatcher2.java:94)

        at net.sourceforge.plantuml.DirWatcher2$1.call(DirWatcher2.java:90)

        at java.util.concurrent.FutureTask.run(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

(510.489 - 1340 Mo) 1127 Mo - Number of image(s): 1

1 Answer

0 votes
answered Mar 1, 2021 by Steven Mileham

I notice the same issue with the latest version (1.2021.1) when using:

skinparam dpi 150

...