typst: Specific SVG file freezes typst

Description

A document only containing

#image("./graph_unexplored.svg")

makes typst compile run seemingly forever. The same file with different layers visible in inkscape compiles in ~7ms.

graph_unexplored.svg: https://github.com/user-attachments/assets/b4854b2c-b4c9-4c75-9894-1a310815e9e5 graph_low_perf.svg: https://github.com/user-attachments/assets/c0a693c7-d5d3-4c74-a7a4-a290fa0d363c

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

Oh interesting, apparently the text-only reproducer does not reproduce the freeze on my home computer, so the font seems to be a red hering (maybe the freeze happens after font loading and i don’t have the font on my work computer). I’ll investigate further once I’m home and don’t have to do this over ssh 😃