Inconsistent Error When Saving

Hello, I'm getting a weird error whenever I save in game. it does not happen all the times. but arouind 1 in 5 times i will get an EBUSY: resource Busy or locked, unlink 'file1.rpgsave.bak'. Nothing shows up in the console. as below
EBuswy.png


EDIT: this seem to happen only when any plugin is installed. Even on a new project. it seems to scale with the size of the save file. on a balk project it can take up to 30 save before this appears
It's because you have your game stored in Dropbox. When saving, the game makes a backup file, so as to not lose data in the event of an error writing the new data. This is, of course, stored as a new file. Dropbox sees this, and decides it needs to upload this new file to its servers, so it has to open and read the file in order to send the content to the cloud. While it is doing this, the file is locked, and cannot be altered by another process (suck as deleting it, which is what unlink does). If you move your project out of Dropbox, or disable sync with that folder, you should find that the issue will go away. Generally, it's not recommended to store your project in a folder that is actively looked through by any software that uploads changes to the cloud, such as Dropbox or Google Drive, as it can cause issues with the game, like this, or possibly issues with the editor saving data.
Oh... well that solves that issue. Thanks.
@Fornoreason1000
additionally, working directly in any cloud folder increases the risc of damaged files a lot - because if anything on the sync-functions goes wrong, the file will not be locked but destroyed - there have been alot of cases where people lost their projects because they were working directly on a cloud-folder.

Original thread: https://forums.rpgmakerweb.com/threads/inconsistent-error-when-saving.79147/