realm-js: RealmJS doesn't work with Electron > 10.4.0

This was also being tracked in https://github.com/realm/realm-js/issues/3535, which was closed.

The latest version it works with is Electron 10.4.0. Any Electron 11.x, 12.x or even beta 13.x crashes the app.

We can see that Electron crashes the moment that Realm is initialized. If you need, we can provide you executable of exactly the same code built with Electron 10.4.0 (that works) and Electron 12.0.0 which crashes.

The workaround for us is to ship Electron 10.4.0 for Windows users and Electron 12.0.0 for the rest of the platforms (so we can support ARM64 on Apple).

Any suggestions how we can debug the issue would be much appreciated. The only info we have is Backtrace: PackageSidFromProductId

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (13 by maintainers)

Most upvoted comments

@abhishekmatta999 Hey, we can confirm that Realm works great on both Windows, OSX (also native M1) and Linux. As long as you use workaround from https://github.com/realm/realm-studio/blob/channel/major-11/Jenkinsfile#L227-L228

You can check how it works on https://freeyourmusic.com if you wish. (It is Electron 15.1.1)

Another node package that was for react-native somehow got bundled into our asar and it was creating the same issue.

The fix from @kraenhansen works as expected.

touch node_modules/realm/binding.gyp

Thank you very much, we can finally update our windows app with newest Realm ❤️