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

Realm 12.13.1 throws error on Windows: realm.node is not a valid Win32 application #6917

Closed
bimusiek opened this issue Oct 31, 2024 · 2 comments

Comments

@bimusiek
Copy link
Contributor

How frequently does the bug occur?

-- select --

Description

We have recently upgraded Realm from 12.12.1 to 12.13.1 due to bumping RN to 0.75.4.
Unfortunately, Electron is throwing the error on Windows (no issue on OSX).
Electron: 33.0.1
Electron-Builder: 25.1.8

I am testing now 12.13.2, but I am not sure where to start debugging the issue.

Stacktrace & log output

main.2623bb5e.js:2 Your Local IP Address: localhost
main.2623bb5e.js:2 Preparing common config... platform: electron, target: freeyourmusic, env: production
main.2623bb5e.js:2 Preparing renderer config... platform: electron, target: freeyourmusic, env: production
node:electron/js2c/node_init:2 Uncaught Error: \\?\C:\Users\bimusiek\AppData\Local\Programs\freeyourmusic\resources\app.asar.unpacked\node_modules\realm\prebuilds\node\realm.node is not a valid Win32 application.
\\?\C:\Users\bimusiek\AppData\Local\Programs\freeyourmusic\resources\app.asar.unpacked\node_modules\realm\prebuilds\node\realm.node
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2559)
    at Module._extensions..node (node:internal/modules/cjs/loader:1602:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2786)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:16955)
    at s._load (node:electron/js2c/renderer_init:2:30981)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (C:\Users\bimusiek\AppData\Local\Programs\freeyourmusic\resources\app.asar\node_modules\realm\dist\platform\node\binding.js:22:22)

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

12.13.1

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Electron 33.0.1

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

Copy link

sync-by-unito bot commented Oct 31, 2024

➤ PM Bot commented:

Jira ticket: RJS-2915

@bimusiek
Copy link
Contributor Author

Looks like either adding binding.gyp to main/node_modules or bumping to Realm 12.13.2 helped.

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

No branches or pull requests

1 participant