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

Bump into same issue as #514 which should be fixed using v5.3.1 #604

Open
marcong95 opened this issue Feb 21, 2024 · 1 comment
Open

Bump into same issue as #514 which should be fixed using v5.3.1 #604

marcong95 opened this issue Feb 21, 2024 · 1 comment
Labels

Comments

@marcong95
Copy link

Describe the bug
Same issue as #514, Fatal error in V8: v8_ArrayBuffer_NewBackingStore

According to the issue #514 and PR #532, fatal error when using Electron v21+ should be fixed. But I still bump into the same issue when using Electron v23.3.2 and ZeroMQ v5.3.1.

I am using ZeroMQ with zerorpc-node, but I forked zerorpc-node because it's outdated. And change its dependency to zeromq@5.3.1

After some debugging, I found the app crashed at zeromq/lib/index.js:655.

var message = this._zmq.readv(); // can throw

Could anyone please tell me some idea to solve this problem? Thanks

Reproducing
Client written in JavaScript (tested ok on Node.js but crashed on Electron)

const { Client } = require('zerorpc')
const client = new Client()
client.connect('tcp://127.0.0.1:4242')
client.invoke('add', 1, 2, (err, resp, extra) => {
  console.log(err, resp, extra)
})

Server written in Python 3.10:

import zerorpc

class RPCServer():
    def add(self, a, b):
        return a + b

if __name__ == '__main__':
    server = zerorpc.Server(RPCServer())
    server.bind('tcp://127.0.0.1:4242')
    server.run()

Expected behavior
No more crash and receive response from the server.

Tested on

@marcong95 marcong95 added the bug label Feb 21, 2024
@marcong95 marcong95 changed the title Bump into same issue as #514 using v5.3.1 Bump into same issue as #514 which should be fixed using v5.3.1 Feb 21, 2024
@Yackob234
Copy link

I'm having a similar issue using

  • OS: Windows 11
  • ZeroMQ.js version: 5.3.1
  • Electron: 21.3.2
    but without any fork.

[21036:0321/132855.727: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.
[21036:0321/132855.727:ERROR:crashpad_client_win.cc(844)] not connected

My code crashes on the first socket.send(); that appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants