Spawn EPERM error when opening app


#1

Electron version:

  • electron v1.4.12
  • electron-builder 10.7.0

Operating system:

  • Windows 7 (?)

We have received reports from a few customers using our app that they cannot open the app. For the majority of our customers and on our test machines the app runs without issue.

This is the error log a customer sent us -

Error: spawn EPERM
at exports._errnoException (util.js:1026:11)
at ChildProcess.spawn (internal/child_process.js:313:11)
at exports.spawn (child_process.js:392:9)
at async.parallel.encoding (C:[spoiler]ProgramData\U424148\sharpcloud[/spoiler]\app-1.0.13\resources\app.asar\node_modules\wmic\index.js:176:18)
at C:[spoiler]ProgramData\U424148\sharpcloud[/spoiler]\app-1.0.13\resources\app.asar\node_modules\wmic\node_modules\async\dist\async.js:3845:9
at eachOfArrayLike (C:[spoiler]ProgramData\U424148\sharpcloud[/spoiler]\app-1.0.13\resources\app.asar\node_modules\wmic\node_modules\async\dist\async.js:1089:9)
at eachOf (C:[spoiler]ProgramData\U424148\sharpcloud[/spoiler]\app-1.0.13\resources\app.asar\node_modules\wmic\node_modules\async\dist\async.js:1139:5)
at _parallel (C:\ProgramData\U424148\sharpcloud\app-1.0.13\resources\app.asar\node_modules\wmic\node_modules\async\dist\async.js:3844:5)
at Object.parallelLimit [as parallel] (C:[spoiler]ProgramData\U424148\sharpcloud[/spoiler]\app-1.0.13\resources\app.asar\node_modules\wmic\node_modules\async\dist\async.js:3924:3)
at C:[spoiler]ProgramData\U424148\sharpcloud[/spoiler]\app-1.0.13\resources\app.asar\node_modules\wmic\index.js:159:9

We suspected it’s because they are using it in a locked down environment but they say they don’t have issues using other apps.

One customer reported that it worked after installation but then upon re-opening the app later on, this issue occurred.

Can anyone help us fix this issue or understand why it may be happening?