#12346·doxygen

DOT_IMAGE_FORMAT=svg:cairo fails since 1.17.0

Author: boyonchoCreated Sep 14, 2026Updated Sep 17, 2026
Labelsbugfixed but not releasedhas pull request

Describe the bug

DOT_IMAGE_FORMAT = svg:cairo works with Doxygen 1.16.1, but fails with 1.17.0 and 1.18.0.

Example error:

error: Failed to rename /workspace/build-1.17.0/html/classBase__inherit__graph.dot.svg:cairo to /workspace/build-1.17.0/html/classBase__inherit__graph.svg:cairo!

All versions were tested in the same Ubuntu 26.04 Docker environment with:

dot - graphviz version 14.1.2 (0)

With Doxygen 1.16.1, the expected file is generated:

classBase__inherit__graph.svg

With Doxygen 1.17.0 and 1.18.0, Graphviz actually generates:

classBase__inherit__graph.dot.cairo.svg

while Doxygen tries to rename:

classBase__inherit__graph.dot.svg:cairo

This appears to be a regression related to the batched dot processing introduced in 1.17.0. The full svg:cairo Graphviz format specification is being treated as a filename suffix.

To Reproduce

A complete Docker-based reproduction is attached.

reproduce.tar.gz

Run:

bash
./reproduce.sh

It builds Doxygen 1.16.1, 1.17.0, and 1.18.0 from the official source tarballs and compares their output.

Relevant Doxyfile setting:

DOT_IMAGE_FORMAT = svg:cairo

Expected behavior

svg:cairo should produce normal .svg files as it does with Doxygen 1.16.1.

Version

  • Works: 1.16.1
  • Fails: 1.17.0, 1.18.0
  • Graphviz: 14.1.2
  • Ubuntu: 26.04