4GB Patch Tool

I've recently experienced a lot of crashes using MV and I think I tracked the issue down to me having expanded my list of skills to 1.000. That and perhaps the ever growing amount of data cotnained in the project seem to have lead to frequent crashing.

I was surprised to say the least, having used the engine for 8.000+ hours without a single issue. When tracking the resoucres used by the engine, MV never used more than 400MB of ram and like 1% of my CPU, so I was sure that would be no problem. However, when asking around on a discord server, @AceOfAces_Mod brought this little 4GB Patch tool to my attention.

This very little tool patches x86 executables in order to let them have 4GB (instead of only 2) of virtual memory on x64 platforms.

Now I don't know how or why, but it seemed to have completely fixed the crashing for the time being. (Of course there is also a chance that windows' code being now written to 40% by AI has also something to do with this, but I digress)

In any case, I wanted to share this information with my fellow RMers.
there was a thread about this one with the link, but its extremely rare.

so far I know, this count for older pc lower than 4-6gb ram so it wont
crash often.

gaming system doesn't have this issue so far I know it.
there was a thread about this one with the link, but its extremely rare.

so far I know, this count for older pc lower than 4-6gb ram so it wont
crash often.

gaming system doesn't have this issue so far I know it.
i get the issue at least once an hour on my main project without the patch (mostly happens on saving and opening the database), but not on test projects. granted, ive extended the maximums on animations, skills, and states far past what the editor allows and that'd push the memory needed to read and write to their respective json files, but it doesnt take old and weak hardware to get the issue.
i get the issue at least once an hour on my main project without the patch (mostly happens on saving and opening the database), but not on test projects. granted, ive extended the maximums on animations, skills, and states far past what the editor allows and that'd push the memory needed to read and write to their respective json files, but it doesnt take old and weak hardware to get the issue.
so far I do NV games to test, or others, I didn't had that issue yet.
it seems to work flawless on my end, I did saved that tool couple years ago
just in case if it is required.

I have gaming system, 16gb ram, no issues, so the issue may be somewhere than,
or its just rarely causing it if it happens every hour for you.
This is actually really nice, does it help with lagging in large projects too?
Just an FYI, I patched my RPGMV.exe file with this to test, and it would no longer open for me, citing some program error. I did back it up beforehand, so all's well that ends well, but make sure you back up your files before attempting this, even if the program itself backs up your file(s). Good luck!
there was a thread about this one with the link, but its extremely rare.

so far I know, this count for older pc lower than 4-6gb ram so it wont
crash often.

gaming system doesn't have this issue so far I know it.
Well, with my AMD Ryzen 9 7900X 12-Core Processor (4.70 GHz) and my RTX 4070Ti and my 32 gigs of ram, you'd think I do have a gaming system. And yet ever since I increased the size of my database I experienced very frequent crashes. (I'm talking about multiple times an hour.) This patch seems to have fixed it.
This is actually really nice, does it help with lagging in large projects too?
It might be placebo, but I do get the feeling it runs ever so slightly smoother.
Just an FYI, I patched my RPGMV.exe file with this to test, and it would no longer open for me, citing some program error. I did back it up beforehand, so all's well that ends well, but make sure you back up your files before attempting this, even if the program itself backs up your file(s). Good luck!
Maybe share this program error, so we can attempt to fix it.
Maybe share this program error, so we can attempt to fix it.
Negative on that, already deleted the program right after and went right back to developing, sorry I couldn't be more help.
After some more usage, it looks like Windows 11, version 25H2 seems to be the culprit for me. Ever since that update, it looks like both MV and MZ are leaking memory. Every thing you click makes the ram usage go up, but it never goes down. So yeah, giving the program more access to ram does make it more "stable", but it only delays the inevitable, haha.

Sadly I didn't have any older recovery points and I really don't feel like formatting my PC again, so I guess I'm stuck with this.
After some more usage, it looks like Windows 11, version 25H2 seems to be the culprit for me. Ever since that update, it looks like both MV and MZ are leaking memory. Every thing you click makes the ram usage go up, but it never goes down. So yeah, giving the program more access to ram does make it more "stable", but it only delays the inevitable, haha.

Sadly I didn't have any older recovery points and I really don't feel like formatting my PC again, so I guess I'm stuck with this.
Is that what it is? I noticed I've started to recently get crashes again despite having the patch. It worked flawlessly for several months. No crashes, up until last week or so. It doesn't happen as often as it would without it, but like you said, it seems to happen eventually.

I wonder if a future windows update will fix this issue, or if the patch itself will need to be changed to work around this.

It's a little frustrating, honestly. I've lost a lot of progress on a few occasions already due to crashes. 😐
Is that what it is? I noticed I've started to recently get crashes again despite having the patch. It worked flawlessly for several months. No crashes, up until last week or so. It doesn't happen as often as it would without it, but like you said, it seems to happen eventually.

I wonder if a future windows update will fix this issue, or if the patch itself will need to be changed to work around this.

It's a little frustrating, honestly. I've lost a lot of progress on a few occasions already due to crashes. 😐
It's not really an issue with the patch. You can open your task manager and scroll through your animations tab or other tabs and maps and see the ram usage rise. This is generally normal. The problem is that the ram is never being released again after you close the tabs or maps as it normally would, resulting in the crash inevitably happening. The patch merely gives it access to more ram, resulting in a crash at a later moment.

I don't have high hopes for a fix any time soon, considering how microsoft has been handling their OS in recent years. I'm considering going back to win10 whenever I do my next cleanup. Right now I just have task manager running whenever I develop and once RM gets close to 2GB of ram usage, I just restart it.
It's not really an issue with the patch. You can open your task manager and scroll through your animations tab or other tabs and maps and see the ram usage rise. This is generally normal. The problem is that the ram is never being released again after you close the tabs or maps as it normally would, resulting in the crash inevitably happening. The patch merely gives it access to more ram, resulting in a crash at a later moment.

I don't have high hopes for a fix any time soon, considering how microsoft has been handling their OS in recent years. I'm considering going back to win10 whenever I do my next cleanup. Right now I just have task manager running whenever I develop and once RM gets close to 2GB of ram usage, I just restart it.
Ah, I see. I appreciate the task manager advice. I might have to start doing that in the meantime as well. Now you have me debating on a reset and Win10 install. x_x
Thank you so much! The editor now has become usable again after patching.
Thank you so much! The editor now has become usable again after patching.
Keep in mind that as long as the memory leak isn't fixed, it will crash eventually. So I advise keeping Task manage open to check RAM usage.
Keep in mind that as long as the memory leak isn't fixed, it will crash eventually. So I advise keeping Task manage open to check RAM usage.
Not a problem🙂. I'm used to manually backing up my CommonEvents.json file every five minutes (the editor would often completely wipe the file upon crashing when saving, which it did a lot). Restarting the editor now and again isn't much of an inconvinience.
Is that what it is? I noticed I've started to recently get crashes again despite having the patch. It worked flawlessly for several months. No crashes, up until last week or so. It doesn't happen as often as it would without it, but like you said, it seems to happen eventually.

I wonder if a future windows update will fix this issue, or if the patch itself will need to be changed to work around this.

It's a little frustrating, honestly. I've lost a lot of progress on a few occasions already due to crashes. 😐
Update on the specific issue of having the engine crash within the hour despite the 4GB patch (and not touching 4000MB of RAM from what I could remember. If it was, it was happening way too rapidly to be normal.)

Frustrated, I hadn't touched my project in a couple months, so I'm not sure if some sort of update resolved the issue during my break, or me attempting the following had.

I'm not sure why or how, but one of the following seemed to have been exacerbating the problem and causing the engine to crash way before it should have. I saw this suggested somewhere, and it worked for me. I went ahead and turned all of the following off. I did not bother trying to pinpoint which one was the offender, but it seemed to be one or multiple of the following:
- Steam Overlay
- Steam Cloud (Global)
- Xbox Overlay
- Discord Overlay
- Nvidia Overlay

I stress tested the engine and got it to 2100MB without crashing, so the patch seems to be working again.

I am now back to being able to put hours of work into the engine once more. It will no longer crash within 30 minutes.

I started working on my project again last night after the stress test without closing the engine. For two hours it stayed at around 1600MB (closing the playtest dropped it from 2100MB ).

Right now, after opening the engine again, I am at 3 hours of work. The highest RAM I've seen so far is 600MB.😍
I'm running into crashing every 5-15 minutes. This started about 1 week ago with no warning.
I have
  • tried the patching tool
  • Turned off all overlays
  • Disabled steam cloud
  • Launched in offline mode
  • Repaired C++ libraries
I have 32GB ram and nearly 1TB of free space.
There were no updated before or after the crashing started.
Sometimes I'll get a runtime error but I have had no luck in finding the cause.
I'm running into crashing every 5-15 minutes. This started about 1 week ago with no warning.
I have
  • tried the patching tool
  • Turned off all overlays
  • Disabled steam cloud
  • Launched in offline mode
  • Repaired C++ libraries
I have 32GB ram and nearly 1TB of free space.
There were no updated before or after the crashing started.
Sometimes I'll get a runtime error but I have had no luck in finding the cause.
Hard to say outside of "It's probably Windows 11". For me personally the issue just went away seemingly. I haven't been doing too much heavy work outside of making countless maps, but so far the crashing just disappeared one day.

I'm currently on WIndows 11 pro 25H2 and have stopped all updates for the time being. I have also ran a tool to disable a couple things like AI features, tho I don't know if that actually did anything, since here in germany, it looks like we don't actually have any of that copilot garbage (yet). And I've also ran another tool to restore some of the windows 10 menus (mainly the right click context menu)since the 11 ones are atrocious.

Here's the link to the AI removal tool: https://github.com/zoicware/RemoveWindowsAI
It seems safe, but as usual, use at your own risk.
I am on windows 10 still. Forgot to include that.
The 4gb patch seems to help a little, crashes take 10+ minutes instead of 5 minutes now and I'm not seeing any jumps in ram usage.
Hard to say outside of "It's probably Windows 11". For me personally the issue just went away seemingly. I haven't been doing too much heavy work outside of making countless maps, but so far the crashing just disappeared one day.

I'm currently on WIndows 11 pro 25H2 and have stopped all updates for the time being. I have also ran a tool to disable a couple things like AI features, tho I don't know if that actually did anything, since here in germany, it looks like we don't actually have any of that copilot garbage (yet). And I've also ran another tool to restore some of the windows 10 menus (mainly the right click context menu)since the 11 ones are atrocious.

Here's the link to the AI removal tool: https://github.com/zoicware/RemoveWindowsAI
It seems safe, but as usual, use at your own risk.
I am on windows 10 still. Forgot to include that.
The 4gb patch seems to help a little, crashes take 10+ minutes instead of 5 minutes now and I'm not seeing any jumps in ram usage.
That is odd. Other than the tips I already gave, you may also check for GPU driver updates or downgrades. Either one can help.

The problem discussed in this thread was that the RAM usage never went back down rather than just general crashing.

Original thread: https://forums.rpgmakerweb.com/threads/4gb-patch-tool.180880/