Comments (2)
Looks related to #1938.
from node-serialport.
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)
- Provide a "back door" to mock port bindings so we can emulate serial devices HOT 1
- Resource temporarily unavailable Cannot lock port HOT 17
- Connection Port Problem
- SerialPort has no construct signatures. HOT 1
- Latency Issue on an ARM Embedded System
- Abnormal reading of serial port data
- ESP8266 Initial Connection Issue: Reset Required for Message Sending HOT 1
- Typescript error with module esnext and moduleResolution bundler. HOT 1
- After packing with electron, the running program reported an error that the module could not be found HOT 2
- Hanging promise after close() in flowing mode HOT 2
- Operation not supported, cannot set
- How to write the return promise from the read register in the serial server HOT 1
- RTS flag on Darwin (MacOS)
- serialport/bindings-cpp/unixRead read error [Error: EAGAIN: resource temporarily unavailable, read] HOT 1
- How to fix Replacement Character �
- spawn EINVAL HOT 1
- Please release missing native build for Arm64 armv=8? HOT 6
- How to realize RS485 serial communication by changing the state of GPIO port in linux-arm64 system
- Serialport with pkg package for 32(x86) bit windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-serialport.