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
Sorry to hijack this issue tracker. But I didn't know how to contact you.
I've been trying to use tree-sitter-c2rust to create a typst plugin. They support WASM plugins. The issue I encounter is that, as soon as I call into the library, my process crashes due to an infinite recursion. For example creating a parser using Parser::new().
The runtime in question is wasmi. They have a pretty big stack size of 2MB by default. And I still hit the stack overflow. That's why I think it is caused by infinite recursion.
Did you happen to have a similar issue when working on this project?
The text was updated successfully, but these errors were encountered:
I haven't encountered that issue with creating a parser before. By chance, are you encapsulating the tree sitter parser in your own Parser struct? If you're doing that, calling tree_sitter::Parser::new() inside of your_crate::Parser::new() could actually be calling your_crate::Parser::new() again and cause infinite recursion.
Sorry to hijack this issue tracker. But I didn't know how to contact you.
I've been trying to use tree-sitter-c2rust to create a typst plugin. They support WASM plugins. The issue I encounter is that, as soon as I call into the library, my process crashes due to an infinite recursion. For example creating a parser using
Parser::new()
.The runtime in question is wasmi. They have a pretty big stack size of 2MB by default. And I still hit the stack overflow. That's why I think it is caused by infinite recursion.
Did you happen to have a similar issue when working on this project?
The text was updated successfully, but these errors were encountered: