Skip to content

render svg file failed #115

@blessingsi

Description

@blessingsi

I'm trying to render graph to svg file. My code:

func main() {
        ctx := context.Background()
	g, err := graphviz.New(ctx)
	if err != nil {
		panic(err)
	}

	graph, err := g.Graph()
	if err != nil {
		panic(err)
	}

	n1, _ := graph.CreateNodeByName("xx")
	n2, _ := graph.CreateNodeByName("yy")
	graph.CreateEdgeByName("e1", n1, n2)

	if err := g.RenderFilename(ctx, graph, graphviz.SVG, "test.svg"); err != nil {
		panic(err)
	}
}

I got an error: module closed with exit_code(1). It failed when call wasm function, how can I debug this error?

I test this on my Macbook pro and linux server, both failed.

go version
go version go1.23.4 darwin/arm64

go version
go version go1.22.8 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions