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

EPERM: operation not permitted #312

Closed
mcarn opened this issue Apr 16, 2020 · 5 comments
Closed

EPERM: operation not permitted #312

mcarn opened this issue Apr 16, 2020 · 5 comments

Comments

@mcarn
Copy link

mcarn commented Apr 16, 2020

Error: EPERM: operation not permitted, rename 'C:\Users\mcarnerm\AppData\Roaming\LosslessCut\config.json.919399885' -> 'C:\Users\mcarnerm\AppData\Roaming\LosslessCut\config.json'
at Object.renameSync (fs.js:643:3)
at Function.writeFileSync [as sync] (C:\Users\mcarnerm\Desktop\nodeapp\randomstuff\LosslessCut-win\resources\app.asar\node_modules\write-file-atomic\index.js:200:8)
at ElectronStore._write (C:\Users\mcarnerm\Desktop\nodeapp\randomstuff\LosslessCut-win\resources\app.asar\node_modules\conf\index.js:180:21)
at ElectronStore.set store [as store] (C:\Users\mcarnerm\Desktop\nodeapp\randomstuff\LosslessCut-win\resources\app.asar\node_modules\conf\index.js:461:8)
at ElectronStore.set (C:\Users\mcarnerm\Desktop\nodeapp\randomstuff\LosslessCut-win\resources\app.asar\node_modules\conf\index.js:339:14)
at file:///C:/Users/mcarnerm/Desktop/nodeapp/randomstuff/LosslessCut-win/resources/app.asar/build/static/js/main.42d2a25f.chunk.js:1:102324
at ds (file:///C:/Users/mcarnerm/Desktop/nodeapp/randomstuff/LosslessCut-win/resources/app.asar/build/static/js/2.84de25ef.chunk.js:2:624679)
at Oc (file:///C:/Users/mcarnerm/Desktop/nodeapp/randomstuff/LosslessCut-win/resources/app.asar/build/static/js/2.84de25ef.chunk.js:2:649492)
at t.unstable_runWithPriority (file:///C:/Users/mcarnerm/Desktop/nodeapp/randomstuff/LosslessCut-win/resources/app.asar/build/static/js/2.84de25ef.chunk.js:2:667354)
at Ui (file:///C:/Users/mcarnerm/Desktop/nodeapp/randomstuff/LosslessCut-win/resources/app.asar/build/static/js/2.84de25ef.chunk.js:2:592123)

{
"err": {
"code": "EPERM"
}
}

This is my current Lossless cut folder
image

@mifi
Copy link
Owner

mifi commented Apr 16, 2020

  1. What were you doing when you got this error?
  2. Does it happen all the time?
  3. Which version are you using?
  4. Were you running more than 1 losslesscut at the same time?

@mcarn
Copy link
Author

mcarn commented Apr 16, 2020

Hi,
I had installed the 3.17.1 version, updated by donwloading the newest pre-release 3.19.0, and since then I can't do anything, the first thing appearing in the screen is the error

image

Re-checking now (1minute after the screenshot from above was taken), the error is gone.

@mcarn mcarn closed this as completed Apr 16, 2020
@mifi
Copy link
Owner

mifi commented Apr 16, 2020

Ok will have to look in to this. Damn Windows, always the one causing problems 😅
Btw it would be very helpful if you could answer all the questions

@mifi mifi reopened this Apr 16, 2020
@chaveezy
Copy link

Been tracking this same electron-store issue on my app, which checks several local application version files against network files. I reduced the amount of writes to the json file (store.set) and it has gone away completely. At least I have not had any reports in the last two weeks.

@mifi
Copy link
Owner

mifi commented Apr 17, 2020

Yea, my code is doing a lot of successive store.set operations. I suppose I just need to batch them and maybe debounce 🙁 I just hate the fact that every developer should have to go through this and then realise they need to rewrite their code after a user has discovered the error...

mifi added a commit that referenced this issue Apr 18, 2020
@mifi mifi closed this as completed May 3, 2020
@mifi mifi mentioned this issue Jan 20, 2022
3 tasks
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

3 participants