chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.59k stars 475 forks source link

Uncaught Error: EPERM: operation not permitted #885

Open deadhawke opened 2 years ago

deadhawke commented 2 years ago

Describe the bug Cannot run any projects in GB Studio

To Reproduce Steps to reproduce the behavior:

  1. Open a project, such as the sample project
  2. Click on run
  3. See error "Uncaught Error: EPERM: operation not permitted, open 'C:\Users\sebal\AppData\Local\Temp_gbstools\gbspack\gbspack.exe'", and when I go to the file location there is no gbspack.exe.

Expected behavior I expect it to run the game

Screenshots image

Platform (please complete the following information):

Additional context My antivirus also consistently blocks the application in the temp files, but even adding an exemption still does not allow it to run. This is happening for me even in the 2.5 version. I have gone to the file previously and made sure read-only was off, however now even after uninstalling and deleting all associated GB studios files and then re-installing, the gbspack.exe no longer exists and does not seem to get created. image

darkhog commented 2 years ago

Please make sure project's folder and its subfolders isn't marked as read-only. I had the exact same issue, turned out the project folder was partially read-only for whatever reason (I certainly didn't make it so). After I've disabled the read only attribute and applied the change to subdirectories and files, the problem went away.

RichardULZ commented 2 years ago

Usual question, have you tried running as administrator? Changing temp directory in edit prefs? Some Antivirus seem to pick up c compilers we use for building the rom, maybe temp in documents might be better?