-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Incompatibility with Electron 21 #51
Comments
The issue arises when trying to call
This code works in Electron 20, but from Electron 21 it causes a fatal V8 error. |
Related napi-rs/napi-rs#1346 |
I've tested this with the latest version of napi-rs now napi-rs/napi-rs#1346 is resolved, and this seems to have resolved the issue. Any chance we can get a rebuild? |
Would love a rebuild too, need to start upgrading Electron! |
Fixed on 0.0.27 |
Thanks so much for finally taking on the task of building a modern steamworks api.
We're trying to use this library in an Electron 21-wrapped application, but have run into a compatibility issue with the new V8 memory cage as described here: https://www.electronjs.org/blog/v8-memory-cage
This causes Chromium/Electron to fatal crash whenever we're trying to for example retrieve the session ticket via the api:
[167373:1105/112515.909269: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
As a result, it is impossible to use this as a node module in Electron 21 and onwards because of this. Trying to disable the sandbox either via launch parameters or
sandbox: false
has no effect on this setting. Apparently this issue needs to be fixed at the module level as described in the link above, where it mentions this:I don't know enough about the internals to know how to suggest this fix in a PR, or even where to suggest it, but the end result is still that it renders this module incompatible with Electron 20+ 😞
The text was updated successfully, but these errors were encountered: