You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that some of the V8 c++ api's are having issues with some npm modules and we think that unpack may be in the same boat. When we do a simple test on the latest Bun (1.1.20) on both RPi4 and RPi5 it crashes.
var msgpack = require ('msgpack5')();
let sendMsg = {"t":"ce","p":{"cmd":"getdevices","username":"test","domain":"dummy.com","appletId":"dm","filter":"{\"domain\": {\"$in\":[\"au.net\",\"au.ft.net\",\"au.swarm.net\",\"be.dev.net\",\"be.ft.net\",\"be.swarm.net\",\"ci.net\",\"ft.net\",\"qa.net\",\"us.dev.net\",\"us.ft.net\",\"us.swarm.net\"]},\"fields\":[\"_id\",\"dId\",\"domain\",\"status\",\"dto\",\"connection\",\"nwRegion\",\"nwIPAddress\",\"queuedMessages\",\"country\",\"agentRevision\",\"xt\"]}"}};
console.log('send: ' + JSON.stringify(sendMsg));
let packed = pack(sendMsg);
console.log('packed: ' + JSON.stringify(packed));
let rcvMsg = {};
rcvMsg = msgpack.decode(packed);
console.log('works with both: ' + JSON.stringify(rcvMsg));
rcvMsg = unpack(packed);
console.log('works nodejs, fails bun: ' + JSON.stringify(rcvMsg));
On the RPi4 we get: bun: symbol lookup error: /opt/iotransit/lib/bun/node_modules/msgpackr-extract/build/Release/extract.node: undefined symbol: _ZN2v85Array3NewEPNS_7IsolateEPNS_5LocalINS_5ValueEEEm
Expect we will need to wait for Bun to address this but thought it worthwhile sharing in case anyone else runs into the same issue. Thanks for all the effort on this module. pack works out of the box and the performance bump is great.
The text was updated successfully, but these errors were encountered:
updating from Bun for reference:
Sorry, I'd mistyped your reproduction. I can reproduce a segfault which occurs if libnode109 is installed, because msgpackr-extract picks up the definition of v8::Array::New and calls it with JSC values while that expects V8 values. Weirdly, I don't get the missing symbol error if libnode109 is not installed, instead it runs properly.
It appears that some of the V8 c++ api's are having issues with some npm modules and we think that unpack may be in the same boat. When we do a simple test on the latest Bun (1.1.20) on both RPi4 and RPi5 it crashes.
We raised this as a Bun issue earlier (and it's being worked on) but they pointed us to:
https://github.com/oven-sh/bun/issues/4290
On the RPi4 we get:
bun: symbol lookup error: /opt/iotransit/lib/bun/node_modules/msgpackr-extract/build/Release/extract.node: undefined symbol: _ZN2v85Array3NewEPNS_7IsolateEPNS_5LocalINS_5ValueEEEm
On the RPi5 we get:
Expect we will need to wait for Bun to address this but thought it worthwhile sharing in case anyone else runs into the same issue. Thanks for all the effort on this module. pack works out of the box and the performance bump is great.
The text was updated successfully, but these errors were encountered: