typst/typst · error

duplicate named destination

Error message

duplicate named destination

What it means

Fires in finish when krilla reports KrillaError::DuplicateNamedDestination: the same named destination was registered more than once in the output PDF. This is an internal link/destination bookkeeping error, so the hint requests a bug report.

Source

Thrown at crates/typst-pdf/src/convert.rs:509

                    }
                }
            }
            KrillaError::DuplicateTagId(_, loc) => {
                let span = to_span(loc);
                bail!(span,
                    "duplicate tag id";
                    hint: "please report this as a bug";
                );
            }
            KrillaError::UnknownTagId(_, loc) => {
                let span = to_span(loc);
                bail!(span,
                    "unknown tag id";
                    hint: "please report this as a bug";
                );
            }
            KrillaError::DuplicateNamedDestination(_) => {
                bail!(Span::detached(),
                    "duplicate named destination";
                    hint: "please report this as a bug";
                );
            }
            KrillaError::Limit(LimitError::TooLongArray) => bail!(
                Span::detached(),
                "a PDF array is longer than 8191 elements";
                hint: "set the PDF version to PDF 1.5 or later";
                hint: "this can happen if you have a very long text in a single line";
            ),
            KrillaError::Limit(LimitError::TooLongDictionary) => bail!(
                Span::detached(),
                "a PDF dictionary has more than 4095 entries";
                hint: "set the PDF version to PDF 1.5 or later";
                hint: "alternatively, try reducing the complexity of your document";
            ),
            KrillaError::Limit(LimitError::TooLargeFloat) => bail!(
                Span::detached(),

View on GitHub (pinned to 35417aa769)

Solutions

  1. Report this as a bug to the Typst repository
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at crates/typst-pdf/src/convert.rs:509 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of typst/typst@35417aa769 (2026-08-17). Data as JSON: /api/errors/1a4e78d7c266b7e9. Report an issue: GitHub.