dbuenzli / vg

Declarative 2D vector graphics for OCaml
http://erratique.ch/software/vg
ISC License
86 stars 12 forks source link

Stack overflow when rendering many paths with Vgr.Svg #17

Closed Guyslain closed 6 years ago

Guyslain commented 6 years ago

Hello Daniel,

I am getting a stack overflow when rendering images composed of many objects. stack_overflow_example.ml.zip

Thanks for the library, it's great!

dbuenzli commented 6 years ago

Thanks for the report with a minimal repro case. Some of the continuation invocations were surrounded by exception handlers.

Could you please confirm the fix works by doing a:

opam pin add --dev vg 
Guyslain commented 6 years ago

It works. Thanks.