-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
FFI Crash with "DisallowJavascriptExecutionScope" when callback is called many times #22947
Labels
FFI
Related to Foreign Function Interface APIs
fix available
there is a fix available in a third party library that needs to be merged
upstream
Changes in upstream are required to solve these issues
Comments
V8 forbids fast API calls from calling back into JS. You need to mark the symbol with |
Reopened because it seems we're missing documentation about this in the runtime API manual page, and are actually guiding to cause callbacks to happen without this. |
Thank you so much! |
littledivy
added
upstream
Changes in upstream are required to solve these issues
fix available
there is a fix available in a third party library that needs to be merged
and removed
docs
labels
Jun 29, 2024
littledivy
added a commit
that referenced
this issue
Jul 1, 2024
Closes #22947 This option is no longer needed as fast calls are now allowed to re-enter the isolate
sbmsr
pushed a commit
to sbmsr/deno-1
that referenced
this issue
Jul 2, 2024
Closes denoland#22947 This option is no longer needed as fast calls are now allowed to re-enter the isolate
zebreus
pushed a commit
to zebreus/deno
that referenced
this issue
Jul 8, 2024
Closes denoland#22947 This option is no longer needed as fast calls are now allowed to re-enter the isolate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
FFI
Related to Foreign Function Interface APIs
fix available
there is a fix available in a third party library that needs to be merged
upstream
Changes in upstream are required to solve these issues
Deno crashes when a callback is called thousands of times by an external lib through FFI. I don't know if it's a bug or I'm doing something wrong. I've verified the same behavior in Windows 11 and Ubuntu 22. Example below.
lib.cpp
Compile with:
main.ts
Crash
Deno version
The text was updated successfully, but these errors were encountered: