You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build a WASM plugin for the D2 diagram framework to be used as a plugin in Typst. The compilation is failing with a segmentation violation in the compiler:
The issue also occurs on a x86_64 system with version
tinygo version 0.34.0 linux/amd64 (using go version go1.23.1 and LLVM version 18.1.2)
Unfortunately I know too little about go debugging to be able to track down which function causes these issues, but it seems to be related to compile-time evaluation of initialization functions.
We should probably add a -internal-interp-debug flag that spits out which package is trying to be compiled during the interp phase. I had a patch somewhere that did that, but I can clean it up again and make it actually useful rather than just a hack.
I am trying to build a WASM plugin for the D2 diagram framework to be used as a plugin in Typst. The compilation is failing with a segmentation violation in the compiler:
To reproduce this, place the following file in the root of a cloned D2 repository https://github.com/terrastruct/d2 and try to compile it with
Hardware:
M2 Mac
Version:
The text was updated successfully, but these errors were encountered: