electron icon indicating copy to clipboard operation
electron copied to clipboard

Access is denied when running the app

Open wangxiexe opened this issue 10 years ago • 7 comments

  • Electron version: 1.4.6
  • Operating system: win 10

Expected behavior

Running well

Actual behavior

Got error like this, please advice.

Access is denied.

?\c:\Users\Alley\AppData\Local\Temp\EA4B.tmp.node at Error (natvie) ......... .........

How to reproduce

It happens on some of our customers. can not reproduce on my machine

wangxiexe avatar Nov 16 '16 16:11 wangxiexe

Please provide a minimal app that reproduces this problem, and include the commands run as well as the entire stack trace.

zeke avatar Nov 16 '16 17:11 zeke

FWIW I can't reproduce this but I do have ~200 sentry reports for this issue across a variety of installs (all windows based though). It appears to be a random issue caused by A/V when Electron attempts to pull a native module out of an ASAR. (Just a theory)

MarshallOfSound avatar Nov 16 '16 18:11 MarshallOfSound

We've received Sentry reports of this as well. We fixed it by keeping the *.node files unpacked.

If you use electron-builder, you can use:

{
  "build": {
    "asar": {
      "unpack": "*.node"
    }
}

poiru avatar Nov 16 '16 19:11 poiru

thanks for the hint @poiru , will take a try.

wangxiexe avatar Nov 18 '16 03:11 wangxiexe

@zeke it is not reproducable, but many users do encounter it.

wangxiexe avatar Nov 18 '16 03:11 wangxiexe

This is caused by anti-virus software deleting the unpacked the .node files, the solution posted by @poiru can solve this.

zcbenz avatar Nov 27 '16 06:11 zcbenz

@wangxiexe Has this problem been solved?

Augus avatar Nov 15 '19 09:11 Augus