You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fatal v8 error:Entering the V8 API without proper locking in place #23997
Actually I place all the operations of node in a single thread and use a V8::Locker.
Is it possible that the CheckImmediate will switch to another thread?
there's V8 HandleScope::Initialize code:
Utils::ApiCheck(
!v8::Locker::IsActive() ||
internal_isolate->thread_manager()->IsLockedByCurrentThread() ||
internal_isolate->serializer_enabled(),
"HandleScope::HandleScope",
"Entering the V8 API without proper locking in place");
Don't use lockers if you only use a single thread.
I can't provide any more advice without more context unfortunately.
Thanks @hashseed . It may be solved without using a locker.
But I want to know whether the "CheckImmediate" callback switch to another thread from the main thread of the uv loop. uv_check_start(immediate_check_handle(), CheckImmediate);
We don't have any related issue, nor have anything similar happened on out tests, so I'm not sure what this can be. Our scenario is single threaded use for mobile, so it may not even occur inside that scenario, since we're not using the mentioned V8::Locker.
@lolobug This sounds like an issue with embedding Node and using libnode.so, but that means that, most likely, we are unable to help unless you share more information about your embedding usage (for example, your code?).
Activity
Trott commentedon Nov 4, 2018
I know Android is currently an unsupported platform, but any chance someone wants to comment on this issue? @nodejs/v8
hashseed commentedon Nov 4, 2018
Don't use lockers if you only use a single thread.
I can't provide any more advice without more context unfortunately.
refack commentedon Nov 4, 2018
@JaneaSystems have a working Android version (@joaocgreis, @bzoz)
lolobug commentedon Nov 5, 2018
Thanks @hashseed . It may be solved without using a locker.
But I want to know whether the "CheckImmediate" callback switch to another thread from the main thread of the uv loop.
uv_check_start(immediate_check_handle(), CheckImmediate);jaimecbernardo commentedon Nov 5, 2018
Regarding https://github.com/janeasystems/nodejs-mobile on Android:
We don't have any related issue, nor have anything similar happened on out tests, so I'm not sure what this can be. Our scenario is single threaded use for mobile, so it may not even occur inside that scenario, since we're not using the mentioned
V8::Locker.addaleax commentedon Nov 5, 2018
@lolobug This sounds like an issue with embedding Node and using
libnode.so, but that means that, most likely, we are unable to help unless you share more information about your embedding usage (for example, your code?).Trott commentedon Nov 13, 2018
I'm going to close this, but feel free to re-open if code is shared from original poster or if it otherwise becomes possible to troubleshoot further.