Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in Electron >= v21 due to Memory Cage #453

Closed
raphaelmenges opened this issue Nov 21, 2022 · 3 comments
Closed

Errors in Electron >= v21 due to Memory Cage #453

raphaelmenges opened this issue Nov 21, 2022 · 3 comments
Labels
3rd party Issue is linked to or blocked by 3rd party dependencies

Comments

@raphaelmenges
Copy link

raphaelmenges commented Nov 21, 2022

version: 2.3.1-next.20221115224324

Hi,

when calling Screen.grabRegion from Electron >= v21, following error is thrown:

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.

I believe this is caused by the Electron feature "Memory Cage", which cannot be simply deactivated.

@s1hofmann
Copy link
Member

Hi @raphaelmenges 👋

here’s a related upstream issue nodejs/node-addon-api#1227

Will keep track on this to see when it’ll land.

@raphaelmenges
Copy link
Author

Thanks @s1hofmann for the swift reply and relevant pointer!

The Node/Electron world is so fastly evolving, it is difficult to keep track 🥴 Looking forward for a solution, because the newer Electron versions fix issues that are relevant for me otherwise 😣

@s1hofmann s1hofmann added the 3rd party Issue is linked to or blocked by 3rd party dependencies label Nov 22, 2022
@s1hofmann
Copy link
Member

Should be fixed with Electron release 21.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party Issue is linked to or blocked by 3rd party dependencies
Projects
None yet
Development

No branches or pull requests

2 participants