Trying to open synced real with Node.js sdk10.10.1 results in segfault on call to realm.open(config)

I am trying to connect to a synced realm with node.js from macOS 12.0.1 or macOS 11.6.2 but get a segmentation fault on macOS 12.0.1 and a libc++abi Abort trap: 6 on macOS 11.6.2.

We have also tried js DSK 10.6.0 and 10.8.0 but they all crash will similar issues.

Node versions are 16.13.0 on macOS 12.0.1 and 12.20.2 on macOS 11.6.2.

Can someone confirm what versions of Node.js are supported by the realm-js SDK and that this should work.

Thanks, we’re rather stuck on this.

Connecting to the MongoDB Realm App seems to work fine and we can see the log in connections in the Realm App console.

Hi @Duncan_Groenewald

Can you please post the code snippet that leads the app to the crash?

See more details here

Tom has been able to replicate the issue and given me a workaround. The call to setLogger() is resulting in a crash in the logger.

Cheers