Coder Social home page Coder Social logo

Comments (2)

jsharf avatar jsharf commented on September 27, 2024 1

Looks related to #1938.

from node-serialport.

lbasedow-cw avatar lbasedow-cw commented on September 27, 2024

The very same happens for me with SerialPort v12 and Node v20 in x64 (WSL) or inside Docker on arm64 platform.

FATAL ERROR: HandleScope::HandleScope Entering the V8 API without proper locking in place
----- Native stack trace -----

 1: 0xb82b0c node::OnFatalError(char const*, char const*) [node]
 2: 0xeed116 v8::Utils::ReportApiFailure(char const*, char const*) [node]
 3: 0xeee7dc v8::HandleScope::HandleScope(v8::Isolate*) [node]
 4: 0xc5b8ea napi_open_handle_scope [node]
 5: 0x7faca44185eb Poller::onData(uv_poll_s*, int, int) [./node_modules/@serialport/bindings-cpp/prebuilds/linux-x64/node.napi.glibc.node]
 6: 0x18c368b  [node]
 7: 0x18af937 uv_run [node]
 8: 0xbc7be6 node::SpinEventLoopInternal(node::Environment*) [node]
 9: 0xd0a924  [node]
10: 0xd0b3bd node::NodeMainInstance::Run() [node]
11: 0xc6fc0f node::Start(int, char**) [node]
12: 0x7faccd69fd90  [/lib/x86_64-linux-gnu/libc.so.6]
13: 0x7faccd69fe40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
14: 0xbc5c8e _start [node]
FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
----- Native stack trace -----

 1: 0xb82b0c node::OnFatalError(char const*, char const*) [node]
 2: 0xeed116 v8::Utils::ReportApiFailure(char const*, char const*) [node]
 3: 0x10932e2 v8::internal::HandleScope::Extend(v8::internal::Isolate*) [node]
 4: 0xeee9f8 v8::EscapableHandleScope::EscapableHandleScope(v8::Isolate*) [node]
 5: 0xcba046 node::GetCurrentStackTrace(v8::Isolate*, int) [node]
 6: 0xc0d79b node::DumpJavaScriptBacktrace(_IO_FILE*) [node]
 7: 0xb82b18 node::OnFatalError(char const*, char const*) [node]
 8: 0xeed116 v8::Utils::ReportApiFailure(char const*, char const*) [node]
 9: 0xeee7dc v8::HandleScope::HandleScope(v8::Isolate*) [node]
10: 0xc5b8ea napi_open_handle_scope [node]
11: 0x7faca44185eb Poller::onData(uv_poll_s*, int, int) [./node_modules/@serialport/bindings-cpp/prebuilds/linux-x64/node.napi.glibc.node]
12: 0x18c368b  [node]
13: 0x18af937 uv_run [node]
14: 0xbc7be6 node::SpinEventLoopInternal(node::Environment*) [node]
15: 0xd0a924  [node]
16: 0xd0b3bd node::NodeMainInstance::Run() [node]
17: 0xc6fc0f node::Start(int, char**) [node]
18: 0x7faccd69fd90  [/lib/x86_64-linux-gnu/libc.so.6]
19: 0x7faccd69fe40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
20: 0xbc5c8e _start [node]
Aborted
FATAL ERROR: HandleScope::HandleScope Entering the V8 API without proper locking in place
----- Native stack trace -----
 1: 0xb7d164 node::OnFatalError(char const*, char const*) [node]
 2: 0xeb1d78 v8::Utils::ReportApiFailure(char const*, char const*) [node]
 3: 0xeb33ec v8::HandleScope::HandleScope(v8::Isolate*) [node]
 4: 0xc45d00 napi_open_handle_scope [node]
 5: 0xffff9c276d44 Poller::onData(uv_poll_s*, int, int) [./node_modules/@serialport/bindings-cpp/prebuilds/linux-arm64/node.napi.armv8.node]
 6: 0x1803d34  [node]
 7: 0x17f11ac uv_run [node]
 8: 0xbba140 node::SpinEventLoopInternal(node::Environment*) [node]
 9: 0xce511c  [node]
10: 0xce5a68 node::NodeMainInstance::Run() [node]
11: 0xc585a0 node::Start(int, char**) [node]
12: 0xffff9fc573fc  [/lib/aarch64-linux-gnu/libc.so.6]
13: 0xffff9fc574cc __libc_start_main [/lib/aarch64-linux-gnu/libc.so.6]
14: 0xbb8460  [node]
FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
----- Native stack trace -----
 1: 0xb7d164 node::OnFatalError(char const*, char const*) [node]
 2: 0xeb1d78 v8::Utils::ReportApiFailure(char const*, char const*) [node]
 3: 0x105344c v8::internal::HandleScope::Extend(v8::internal::Isolate*) [node]
 4: 0xeb3668 v8::EscapableHandleScope::EscapableHandleScope(v8::Isolate*) [node]
 5: 0xc9cadc node::GetCurrentStackTrace(v8::Isolate*, int) [node]
 6: 0xbfd700 node::DumpJavaScriptBacktrace(_IO_FILE*) [node]
 7: 0xb7d16c node::OnFatalError(char const*, char const*) [node]
 8: 0xeb1d78 v8::Utils::ReportApiFailure(char const*, char const*) [node]
 9: 0xeb33ec v8::HandleScope::HandleScope(v8::Isolate*) [node]
10: 0xc45d00 napi_open_handle_scope [node]
11: 0xffff9c276d44 Poller::onData(uv_poll_s*, int, int) [./node_modules/@serialport/bindings-cpp/prebuilds/linux-arm64/node.napi.armv8.node]
12: 0x1803d34  [node]
13: 0x17f11ac uv_run [node]
14: 0xbba140 node::SpinEventLoopInternal(node::Environment*) [node]
15: 0xce511c  [node]
16: 0xce5a68 node::NodeMainInstance::Run() [node]
17: 0xc585a0 node::Start(int, char**) [node]
18: 0xffff9fc573fc  [/lib/aarch64-linux-gnu/libc.so.6]
19: 0xffff9fc574cc __libc_start_main [/lib/aarch64-linux-gnu/libc.so.6]
20: 0xbb8460  [node]

My code is pretty much the same as the example above.

Is there any way to get this working?

from node-serialport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.