-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on simple intersections diagram, works fine in TikZ #82
Comments
(I'm not sure if there's an easy way to get debug output from the plugin; I'd be happy to provide that if you point me to how) |
By the way, I've found another diagram that uses the
Same story, it renders fine in regular TikZ, but crashes all diagram generation in the Obsidian plugin. I'm going to hypothesize that this happens when one of the paths being intersected is an arc/circle, rather than simple lines? |
So I tried loading @drgrice1's fork of TikZJax directly into a browser and trying the same diagram - it also crashes. So it seems that whatever the bug is, it's not Obsidian-tikzjax-specific, it happens on the plain JS port too (though not on the native version). I guess I'll report this upstream then. |
(And to be even more thorough, after some further investigation it seem that @kisonecat's base version does render these diagrams just fine. So actually the bug is specific to @drgrice1's fork. Possibly whatever the problem is was fixed by @kisonecat sometime in the last three years, since the fork hasn't been updated since. I guess the best thing to do would be to try to rebase drgrice1's fork onto a more recent build of kisonecat/tikzjax. |
The following diagram code reliably crashes the plugin (in the sense of a real crash; the diagram spins forever to render, and then any subsequent changes to the diagram are ignored and it just hangs until I restart Obsidian):
The exact same document in a regular TikZ compiler works fine, it's quite a simple diagram. Other uses of the
intersections
library seem to work fine in TikZ-Mathjax and the Obsidian plugin, but there's something special about this particular one that I can't figure out, but it crashes the whole plugin 100% of the time. Hopefully this is helpful for diagnosis.The text was updated successfully, but these errors were encountered: