-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
panicked at 'already borrowed: BorrowMutError' in fetch #19670
Comments
Hey, thanks for the report, we haven't seen this one yet. If you could come up with a repro that would definitely be helpful 👍 |
Ok, I made a repro in https://github.com/jonmmease/deno_19670_repro. I stripped down vl-convert as far as I could while preserving the error. Let me know if there's anything else I can do to help! |
Thanks for the repro 👍 I'll try to fix it in the comint days. |
Hi @bartlomieju, were you able to run the repro and see the error? Do you have any initial thoughts on how complex this will be to fix? It's not a rush, I'm just debating whether to downgrade Deno in vl-convert. Thanks again! |
I haven't had the chance yet. I'll try to reproduce it tonight. |
@jonmmease ah I think I found the problem - you are using multi-threaded Tokio runtime. With Deno you should use current-thread runtime - for performance reasons we did a hack suggested by the Tokio team that allows |
That makes total sense, and fixes the issue. Thanks so much for taking the time to look into this for us! |
No worries, thanks for the report! |
Hi, I'm the maintainer of vl-convert, which is a Rust library that depends on
deno_runtime
anddeno_core
to evaluate the Vega JavaScript visualization library to perform static image export. Deno has been awesome for this use-case, so thanks for making it possible to embed as a Rust library!After updating deno_runtime to 0.117.0 and deno_core to 0.191.0 (or the current latest on master), I've started seeing a non-deterministic panic when operating under a heavy load.
If this is not a known issue, I can work on making a repro. But this may take a fair bit bit of time, so I wanted to check with you all first. Thanks!
The text was updated successfully, but these errors were encountered: