Crash when I save my project.

So I've been having this issue since Day-One of getting MV, but I've just... dealt with it. Don't ask me why. Every once in a while, say one out of every 5-10 saves RPG Maker will crash and I'll lose my work since the last time I successfully saved. It's like every time I save it I cross my fingers and just pray I don't get a popup saying MV has stopped working.


My drivers are fully updated, and I have cloud saving turned off. Can't seem to find anyone else with this specific issue.


Is it memory? I mean I have a ton to spare, so if it's anything like Minecraft I should be able to allocate more memory to the creator, right?


Could it be something else?


Almost forgot to mention I have the Steam version. >.>


Thanks for reading!
It has to be something on your computer, or there would be a lot more other people with that problem.


And basically I can only think of three possible causes, one of which is extremely unlikely.


1) damaged program files - unlikely unless you disabled updates to the program, because steam automatically updates the editor and there have been several such updates in the last year, replacing files that might have been damaged with newer versions.


2) another program on the computer accesses the files at the same time and blocks the editor.


This is actually most likely because several antivirus programs have problems understanding that MV is a local program running on local access, but using web technology to do that. They then think that because it uses web technlogy on local files it has to be a virus on a website that needs to be blocked from local access.


But other background programs have been known to cause problems as well, for example there is a program that automatically tries to record all steam games for let's plays, launching whenever a steam game is started - and for such a program, the editor would be a "game" to record.


3) hardware problems - but not RAM


It might be that your harddrive is too old and short of failure. If that happens, one sector on the magnetic disc will fail after another, and the HDD-controller will remap the defective sectors into a reserve - but that can only happen after such a sector has been detected as failed, already loosing the data.


Use a program like checkdrive to check your HDD's smart status - anything below 80% indicates a problem that is using up reserve sectors too fast to be normal.


For explanation: while the reserve sectors exist, Windows itself cannot detect failed sectors because they are remapped into the reserve, pretending the HDD still had full capacity while it is loosing some of it.
Greetings, Andar!


I'm fully up to date (Maker and Project), so I don't think that would be it. I also have a relatively new HDD (2TB that's only a couple years old, if that), so I don't think that would be it, but I will be trying the checkdrive you mentioned.


When you mentioned a program accessing a file that RPG Maker is trying to access I thought of Photoshop. I tend to add/alter my tilesets a LOT as I'm building my game and sometimes I just leave photoshop open with the tileset loaded in it for quick revisions. This COULD be the cause, though I've never paid enough attention when it happens to make that correlation.


To be on the safe side how would I go about making an antivirus not even glance in the same direction as RPG Maker? Just make it an exception, or is there more to it?


Thanks for reading. 🙂


*Edit* I also just realized that I often have a playlist for RPG Maker playing in the background, so this may have also been the cause. *Turns off playlist*


*Edit 2* I stand corrected. I had nothing open using the RPG Maker files and I just got a crash when I went to save my project. 
If it is an antivirus, making it an exceptions is usually enough - IF you do it right.


Unfortunately a lot of the current antivirus programs are complete suites of several (but independent) programs, and there have been cases where the problem was only solved after the user fouund all three or four subprograms where he needed to make the exception.


If it isn't the antivirus program, then you need to find out which background program causes this. I would suggest disconnecting temporarily from the internet (so that no virus can take advantage of this) and then test while sutting down one background program after another until it is clear which one cause this.
So I've been doing some experiments with RPG Maker MV after reading about a "memory leak". I have no idea what that is, but I seem to have the symptoms.
The longer I have RPG Maker MV open for, the more memory it consumes. I had my Task Manager open on the other monitor to keep an eye on it.
When I first start my rpg maker it generally consumes about 290 MB of memory, but after a while of being open (still determining how long it takes) it rises a LOT. The highest I've noticed it is almost 800 MB. I believe it actually crashes once it reaches a certain threshold of memory consumption.

I7 Processor and 16 GB of ram, so that's not likely the issue.
No, high memory usage is not automatically a memory leak - a memory leak is when reserved memory (that had been needed by the program) cannot be released by the garbage collector after it is no longer needed, and 800 MB is not a problem here - the memory leaks in older versions were pushing beyond several GB.
And the memory usage rises because the garbage collector doesn't run constantly (that would lag the engine like hell), it takes some time to release the no longer used memory again.

The real memory leaks in the engine have all been fixed by now - but that requires you to update your projects for the fix to be applied. Running the updater for the editor will NOT update your projects, that always has to be done manually. And since the newest version 1.3.5 has just been released, I suggest you update your project again following the instructions in the update topic, just to be sure that it is up-to-date.

However, there is the possibility of a memory leak in a plugin - nothing Degica can do about that, that needs to be fixed by the plugin writer if such a bug exists in the plugin. And yes, there are several plugins that do contain memory leaks simply because the writers were less experienced in programming.
But could plugins make my editor cost more and more memory as I work on my project? I didn't think they loaded up until you clicked "Play Test".
no - but the editor never had memory leaks.
The editor will use more resoures the bigger the project gets however, because most of the processing when working on it is done in memory.
Would that account for it slowly consuming more memory as I use it, but if I restart it it resets back to about 300 mb?

Original thread: https://forums.rpgmakerweb.com/threads/crash-when-i-save-my-project.73772/