Skip to content

Crash with Electron + V8 Sandbox (Node.js v20+) #100

Description

@fengchenyu

node-snap7 uses v8::ArrayBuffer::NewBackingStore to allocate memory. However, starting from Node.js v20, when the V8 sandbox is enabled (which is default in Electron v30+ and Node.js v20+), this causes a fatal error:

FATAL ERROR: v8_ArrayBuffer_NewBackingStore
When the V8 Sandbox is enabled, ArrayBuffer backing stores must be allocated inside the sandbox address space.
Please use an appropriate ArrayBuffer::Allocator to allocate these buffers, or disable the sandbox.

Environment:
Electron v30.0.1+ / Node.js v20+

Windows 10 / 11

node-snap7 latest version

C++ Native Module

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions