Skip to content

Electron21.2.0 Calling native node crashes #1227

Closed

Description

@tangjianfang
  • Error message
  • `ERROR:node_bindings.cc(146)] Fatal error in V8: 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.
  • Waiting for the debugger to disconnect...
  • error Command failed with exit code 3221225477.`

When will a node-addon-api compatible version of electron 21 or later be released?

Activity

  1. NickNaso commented on Nov 2, 2022

    @NickNaso
    Member

    Hi @tangjianfang,
    thanks for reporting this. We are already working on this issue nodejs/abi-stable-node#441 and now we have a PR to fix the crash on Electron 21 or later or in gerneral with all runtime that have the V8 memory cage enabled. See: nodejs/node#45181.

  2. tangjianfang commented on Nov 3, 2022

    @tangjianfang
    Author

    @NickNaso Thank you very much.

  3. Bartel-C8 commented on Nov 15, 2022

    @Bartel-C8

    nodejs/node#45181 This has landed.

    Any idea when it will be merged and a new release could be created? Thanks!

  4. mhdawson commented on Nov 15, 2022

    @mhdawson
    Member

    @Bartel-C8 it is only going to help once Electron pulls in the updated code, versus new Node.js versions. The PR will be backported in line with the Node.js release schedule but also requires Electron updates.

  5. github-actions commented on Feb 14, 2023

    @github-actions
    Contributor

    This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions