-
Notifications
You must be signed in to change notification settings - Fork 76
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
Error?: Webview not freeing up callback resources after webview.run()
#130
Comments
Strange, what happens if you manually call |
Let me try that out. The issue is made explicit due to Deno's test sanitizer, if I understand correctly. So in a normal script the program ends with no visible issue. Also, I tried running |
Maybe the problem is that |
Here is what I tried: First change
And then, after debugging again. When unbind is called from
I'm sorry if this is not super helpful. I have no idea how to further debug this problem As |
As far as I understand, the
webview.destroy()
method should free up all resources as it should rununbind()
once the webview window is closed. But I am getting an error from Deno's test sanitizer. The resources from bound callbacks are not getting closed.console.log(Deno.resources())
just afterwebview.run()
yields the following:I'll include a small test case to reproduce the problem. Let me know if you are aware of the issue, or if I am making some mistake.
Also, if it is something that needs fixing, how may I be able to help! 😄
How to reproduce.
Run the following test
Once the window appears, close it manually. And the test will fail

my system
Ubuntu: 22.04 LTS
Deno: 1.23.1
Webview_deno: 0.7.3
The text was updated successfully, but these errors were encountered: