-
Notifications
You must be signed in to change notification settings - Fork 9
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
Some thought about crashes when calling js from Nim #15
Comments
Ah, thank you for this issue and the fix! I really haven't run into this issue, I wonder why that would cause an error 🤔 |
I've already opened a PR but I think it would be better if you opened one instead. |
I didn't know either since no exceptions or messages were shown (either Nim side or browser side) in my case, so I didn't open a PR at the first time... As #17 has more details about the problem, I think we could close this one. |
Some other thought: There are some calls returning webui-managed buffers, like |
I agree @clzl 👍 WebUI uses a custom memory management to allocate and free resources, so |
b26d95c 🎉 |
Similar to #5 , I went into some crashes when working with
hello_world.nim
using Nimble package.In devel mode it crashes silently when clicked, in release mode it works but sometimes it still crashes.
I tried to change
webui.nim:261
fromto
Then it seems to work smoothly, with
thread:off
. Not tested much and not using nightly build, but I want to note it here for others who is willing to make further investigations about it.My env: Nim Compiler Version 1.6.12 [Windows: amd64]
The text was updated successfully, but these errors were encountered: