Skip to content

Fatal error in HandleScope::HandleScope - Entering the V8 API without proper locking in place #85

Closed
@NathanWalker

Description

@NathanWalker

This issue can be experienced when using RadDataForm (nativescript-ui-dataform 7.0.4) in vanilla {N} apps using v8 runtime (7.0.x):

#
# Fatal error in HandleScope::HandleScope
# Entering the V8 API without proper locking in place
#
# From this line below: tns::Assert(obj->GetOwnPropertyNames(context).ToLocal(&properties), self->isolate_);
#
- (NSUInteger)count {
    Local<Object> obj = self->object_->Get(self->isolate_).As<Object>();

    if (obj->IsMap()) {
        return obj.As<Map>()->Size();
    }

    Local<Context> context = self->cache_->GetContext();
    Local<v8::Array> properties;
    tns::Assert(obj->GetOwnPropertyNames(context).ToLocal(&properties), self->isolate_);

    uint32_t length = properties->Length();

    return length;
}

Will try to create a small repro app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions