JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines. This library allows you to quickly and easily switch to using of another JavaScript engine.
Apache License 2.0
439
stars
49
forks
source link
The futex facility returned an unexpected error code when running ChakraCoreJsEngine on Linux #118
1: Related information:
ChakraCoreJsEngine ver 3.24.1
Application. net 8
Server Ubuntu 22.4
2: Problems that arise
The code is as follows:
Var chakraCoreSet=new ChakraCoreSets
{
DisableEval=false,
Enabling ExperimentalFeatures=true,
DisableBackgroundWork=false
};
Using (var_engine=new ChakraCoreJsEngine (chakraCoreSet))
{
_engine Execute (jsCode)// JsCode is the executed JS code, with around 50 lines of code
}
When executing code, Linux directly reports the error The futex facility returned an unexpected error code service has been stopped.
When the configuration item DisableBackgroundWork in chakraCoreSet is changed to true, the above error will not occur.
1: Related information: ChakraCoreJsEngine ver 3.24.1 Application. net 8 Server Ubuntu 22.4 2: Problems that arise The code is as follows: Var chakraCoreSet=new ChakraCoreSets { DisableEval=false, Enabling ExperimentalFeatures=true, DisableBackgroundWork=false }; Using (var_engine=new ChakraCoreJsEngine (chakraCoreSet)) { _engine Execute (jsCode)// JsCode is the executed JS code, with around 50 lines of code } When executing code, Linux directly reports the error The futex facility returned an unexpected error code service has been stopped. When the configuration item DisableBackgroundWork in chakraCoreSet is changed to true, the above error will not occur.