Graphviz renders offline but fails on PlantUML online

0 votes
asked Jan 10 in Question / help by eduardomozart (540 points)
Hello,

The following two diagrams renders offline (PlantUML/Homebrew) but fails when rendering on PlantUML online (PNG/SVG):

@startuml
digraph G {
    rankdir="LR";
    graph [splines=ortho]
    node [shape=box]

    subgraph steps {
        rank="same";
        node [label="\n\n\n\n\nAcompanhamento e\nMonitoração\nde Erros\n\n\n\n\n\n"] "step1";
    }

    subgraph details {
        rank="same";
        node [fixedsize=true,width=3.5]
        node [label="(Controle de Problemas)"] note1 [shape=none]
        node [label="Identificação e Registro de Erro"] note2
        node [label="Avaliação"] note3
        node [label="Registro da Solução"] note4
        node [label=""] note5 [style=invis,height=0]
        node [label="Fechar Erro e Problemas Associados"] note6
        "note1" -> "note2" -> "note3" -> "note4";
        "note4" -> "note5"[dir=none];
        "note5" -> "note6";
    }

    subgraph subdetails {
        rank=same;
        node [shape=plaintext]
        node [label=< <B>RDM - OK</B> >] subnote41
    }

    "step1" -> "note2"[dir="both"];
    "step1" -> "note3"[dir="both"];
    "step1" -> "note4"[dir="both"];
    "note4" -> "subnote41" [style=invis];
    "note4" -> "subnote41";
    "subnote41" -> "note5" [headclip=false,tailclip=true];
    "step1" -> "note6"
}
@enduml

-----------

@startuml
digraph G {
    rankdir="LR";
    graph [splines=ortho];
    node [shape=box,style="filled",color="#808080",fillcolor="#00B0F0",fontname="arial"]

    subgraph steps {
        rank="same";
        node [label="7. Como mantemos\no ritmo?"] "step1" [fontcolor="white",fillcolor="#180B7B"];
    }

    subgraph details {
        rank="same";
        node [fixedsize=true,width=1.7]
        node [label="1. Qual a visão?"] note1
        node [label="2. Onde estamos?"] note2
        node [label="3. Onde queremos\nestar?"] note3
        node [label="4. Como\nchegaremos?"] note4
        node [label="5. Tomar ação"] note5
        node [label="6. Chegamos?"] note6
        "note1" -> "note2" -> "note3" -> "note4" -> "note5" -> "note6" [color="#002060"];
    }

    subgraph subdetails {
        rank=same;
        node [fixedsize=true,width=1.8,style="dashed,filled",fillcolor="#E7E7E7"]
        node [label="Visão, missão,\nobjetivos e metas do\nnegócio"] subnote11 [height=0.7]
        node [label="Realizar avaliações\nde linha de base"] subnote21
        node [label="Definir metas\nmensuráveis"] subnote31
        node [label="Definir o plano de\nmelhoria"] subnote41
        node [label="Executar ações\nde melhoria"] subnote51
        node [label="Avaliar métricas e\nKPIs"] subnote61
    }
    "step1" -> "note1";
    "note1" -> "subnote11"[dir=both,color="#808080",fixedsize=true,height=0];
    "note2" -> "subnote21"[dir=both,color="#808080"];
    "note3" -> "subnote31"[dir=both,color="#808080"];
    "note4" -> "subnote41"[dir=both,color="#808080"];
    "note5" -> "subnote51"[dir=both,color="#808080"];
    "note6" -> "subnote61"[dir=both,color="#808080"];
    "note6" -> "step1";
}
@enduml

It seems to be a regression since it was working on older PlantUML online releases. I believe that PlantUML online should return specific error messages when it fails to render to end user instead of generating a broken (missing) image.
commented Jan 13 by The-Lu (85,820 points)

Hi E.,

Could you compare the dot program version?, with:

@startuml
testdot
@enduml

Regards,
Th.

commented Jan 13 by eduardomozart (540 points)

Here's my local test output:

                                                               
     PlantUML version 1.2024.6 (Sat Jul 06 06:14:38 BRT 2024)  
     Dot version: dot - graphviz version 12.1.0 (20240811.2233)
                                                               
     Installation seems OK. File generation OK                 

Here's PlantUML online output:

                                                               
     PlantUML version 1.2025.1beta2 (Unknown compile time)     
     Dot version: dot - graphviz version 10.0.1 (20240210.2158)
                                                               
     Installation seems OK. File generation OK                 

Just a small tip: on the e-mail notification about your response the comment come inline (@startuml testdot @enduml) and so it doesn't work. It would be great if codeblocks also uses line breaks.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...