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

MacOS: "A JavaScript error occurred in the main process" on startup #14

Closed
Saftret opened this issue Mar 21, 2022 · 4 comments
Closed

Comments

@Saftret
Copy link
Member

Saftret commented Mar 21, 2022

Description
Not able to start the application on MacOS.

To Reproduce
Steps to reproduce the behavior:

  1. Open app

Error message

Uncaught Exception:
Error: dlopen(/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.ZoDdHy, 0x0001): tried: '/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.ZoDdHy' (code signature in '/private/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.ZoDdHy' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), '/private/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.ZoDdHy' (code signature in '/private/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.ZoDdHy' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.)
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1170:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:2027)
at Module.load (node:internal/modules/cjs/loader:982:32)
at Module._load (node:internal/modules/cjs/loader:823:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1006:19)
at require (node:internal/modules/cjs/helpers:93:18)
at bindings (/Applications/SuperConductor.app/Contents/Resources/app.asar/node_modules/bindings/bindings.js:112:48)
at loadBinding (/Applications/SuperConductor.app/Contents/Resources/app.asar/node_modules/node-hid/nodehid.js:25:42)

Screenshots
superc

Desktop:

  • OS: MacOS
  • Version 12.3 - Apple Silicon
@Saftret
Copy link
Member Author

Saftret commented Apr 8, 2022

Sadly still not working in v0.6:

Uncaught Exception:
Error: dlopen(/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.5z9HiT, 0x0001): tried: '/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.5z9HiT' (code signature in <AB90D580-44E6-3C7B-9FEB-810B43A5F7DD> '/private/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.5z9HiT' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), '/private/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.5z9HiT' (code signature in <AB90D580-44E6-3C7B-9FEB-810B43A5F7DD> '/private/var/folders/vb/dnpj7gf12mg2dbv8vfxr83dc0000gn/T/.tv.superfly.superconductor.5z9HiT' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.)
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1170:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:2027)
at Module.load (node:internal/modules/cjs/loader:982:32)
at Module._load (node:internal/modules/cjs/loader:823:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1006:19)
at require (node:internal/modules/cjs/helpers:93:18)
at bindings (/Applications/SuperConductor.app/Contents/Resources/app.asar/node_modules/bindings/bindings.js:112:48)
at loadBinding (/Applications/SuperConductor.app/Contents/Resources/app.asar/node_modules/node-hid/nodehid.js:25:42)

Maybe these can be helpful:

So adding com.apple.security.cs.disable-library-validation to .plist file might help?

@Saftret
Copy link
Member Author

Saftret commented Apr 10, 2022

@alvancamp Yes, that is working! Thanks!

@hummelstrand
Copy link
Member

hummelstrand commented Apr 10, 2022

Can we consider this fixed and close the issue when @alvancamp has released 0.6.1?

@nytamin nytamin closed this as completed Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@Saftret @hummelstrand @nytamin and others