RPG Maker MV Crashes/Closes Itself When Editing Database

So I've been having a problem with this one project. As the title says, the software just crashes randomly when editing the database. I've been working on this project for a few years. I took a break for a few months and came back at the start of 2023, but ever since, I've been having this problem. The thing is, I didn't CHANGE or ADD anything to the project between when it last worked fine and the end of my break. It just suddenly no longer likes me editing anything in the database. I was hoping it would just go away, but clearly, that was just dumb of me because it has lasted six months.

The weird thing is I don't even get an error message when it crashes. The system just... closes itself. Only with this project and only with the database editing. I thought maybe some of the sprites I was using could be causing some errors as this game has a lot of enemies and actors, but even after removing them, it still crashes. Then I thought it was because I was editing things too quickly, so I tried slowing down, but that didn't change anything.

So I checked similar threads here for some potential fixes, but nothing worked. So far, I have tried:
1. Ensuring the software is updated to 1.62
2. Ensuring One Drive is not syncing the folder (had this screw one of my other games almost, so I made sure it was off)
3. Ensuring there are no file names that RPG Maker doesn't like (IE, no file names have spaces or illegal characters in them. Some enemy sprites did have these, but I've fixed them, even though that solved nothing.)
4. Ensuring everything is stored on the C:/ drive (my computer only has one drive anyways)
5. Verifying the software files and clearing the steam cache.
6. Ensuring I have enough RAM to keep the project open (32GB of RAM with over 300GB of ROM free, so it's not a memory issue)

This happens on both my new PC and my old PC, so it's not even an issue of it being a new computer. The problem likely lies somewhere in the project, but all the plugins are up to date and working, all the sprites seem to be fine, and there are no funky files in the project that I can see.

Does anyone have any ideas where to look or what I can do to fix this short of scrapping it all and starting over, throwing out hundreds of hours of work? It's impossible to make any further progress when the software just decides it's had enough and closes itself. It's not even consistent timing. Sometimes it's 30 seconds after opening the database. Other times it's well over an hour of going into and out of the database. And again, ONLY this project does this, and I have no idea why. All my other projects are fine. Everything works fine in it except for the fact that it loves to just close itself on me.
let's get to the basics of causes - in general there are only four different possibilities for a crash like that, and you only checked for some of them in your list. But for completeness sake I will list everything.

1) internal program error - there was one such in 1.0 or the files could have been damaged.

2) any clouddrive trying and failing to sync with a project file while the editor is open - you said you checked for OneDrive, but it is basically any and all cloud- and backup services that do not automatically branch on finding a difference. You might want to check if something else could have done this.

3) Writing inside an restricted folder
ATTENTION: THIS HAS NOTHING TO DO WITH FORBIDDEN LETTERS!!!!!
The forbidden letters like spaces and so on only affect the game/playtest, they don't matter for the editor at all!!!
But in your desire to move your projects out of the OneDrive folders (which usually include documents) you could have moved it to a folder that is restricted by windows itself (like the programs folder) or into the Steam Cloudspace (Yes, there was even one user years ago who thought that the steam cloudcopy was his regular project)

4) Background service from a different program shutting down the editor
I consider this unlikely because it would usually happen within ten second of editor launch, but if the background service only reacts to access to the project file and not program launch it could work this way.
Mostly this is done by protection programs (antivirus, network security, parental guidance programs), but there also was one conflict with a video capture program that automatically (and without informing the user) tried to save "let's plays" for every steam game, not caring that the editor was not a game but only that steam launched it.
let's get to the basics of causes - in general there are only four different possibilities for a crash like that, and you only checked for some of them in your list. But for completeness sake I will list everything.

1) internal program error - there was one such in 1.0 or the files could have been damaged.

2) any clouddrive trying and failing to sync with a project file while the editor is open - you said you checked for OneDrive, but it is basically any and all cloud- and backup services that do not automatically branch on finding a difference. You might want to check if something else could have done this.

3) Writing inside an restricted folder
ATTENTION: THIS HAS NOTHING TO DO WITH FORBIDDEN LETTERS!!!!!
The forbidden letters like spaces and so on only affect the game/playtest, they don't matter for the editor at all!!!
But in your desire to move your projects out of the OneDrive folders (which usually include documents) you could have moved it to a folder that is restricted by windows itself (like the programs folder) or into the Steam Cloudspace (Yes, there was even one user years ago who thought that the steam cloudcopy was his regular project)

4) Background service from a different program shutting down the editor
I consider this unlikely because it would usually happen within ten second of editor launch, but if the background service only reacts to access to the project file and not program launch it could work this way.
Mostly this is done by protection programs (antivirus, network security, parental guidance programs), but there also was one conflict with a video capture program that automatically (and without informing the user) tried to save "let's plays" for every steam game, not caring that the editor was not a game but only that steam launched it.
Thanks for the info, I saw your comments on some other topics like this.
For point 1, is there any way to determine if a file has been damaged? I don't think I was working on this particular project back when RPG Maker MV back when it was 1.0 but I also have no idea when it updated so it's possible.

For point 2, I don't have any drive services so I don't think this is the case but I will check regardless.

For point 3, the game files are all on my desktop here C:\Users\(name)\Desktop\RPGMAKER\Games\RPGGAME. I can see if it's somehow restricted or in the steam cloudspace too.

For point 4 I also think it's unlikely because then it would happen with all my projects, wouldn't it? Not just this one specific game?

I guess if those are the only possible options then ONE of them has to be the issue, so I'll have to look more into it, thanks. I just hope the files are not damaged, that would suck.
One other thing I forgot to mention (probably doesn't mean anything but in the off chance it does), a GUARANTEED way to crash it, is to rapidly click/scroll through my actors page, which will crash it in about 10 seconds. No other tab does this, just the actors. This is why I thought maybe the sprites could have been an issue, but the crashes still happen elsewhere, just not nearly as fast. Probably doesn't matter but just to get all the info out there, I'm adding it.
Especially with the last option it seems the problem is the data access to the project files themselves.

Please make a copy of the project folder on your desktop. Do NOT move the original, just make a foldercopy and rename the folder to get rid of the spaces in the copied foldername.
then manually open the duplicate (through the editor menu option open) instead of the original folder, and try the actor test again.

Is the new project stable, yes or no?
If yes, then it's likely a hardware issue with your HDD (the four options above ignored hardware errors)

If the copy has the same problem, then it can still be a hardware problem but that would be unlikely, more likely are damaged json files.

Unfortunately the only way to find a damaged json file is to make a backup and a new project, copy one file from the new project into the backup and after each such replace, try the error again.
Once it works you'll know that the last file copied was one of the damaged files - and you'll have to repeat everything with a new copy where only the damaged file was repaired to find the next damaged file.

Repairing damaged files is sometimes possible, and other times it's easier to just entry everything from zero again - it depends on the damage and the data size.
But that is why you should work on a copy only, you can simply replace the files there and go for reparing only after you have found all damaged files.
I made the copy as you instructed and the crash still occurred. I also tried to do another test with the sprites of the actors all removed and it DIDN'T crash. I'm using Shade of Battlers sprites as creature allies. The actor tab crash only occurs when those sprites are in the sideview actors folder. That's really bizarre. Either those sprites are just... not meshing with my PC for some reason or one (or more) of the json files are damaged, so I guess I just need to test them one at a time as you said, and going forward work on a copy. Thanks for the help!
6. Ensuring I have enough RAM to keep the project open (32GB of RAM with over 300GB of ROM free, so it's not a memory issue
Unfortunately, having a surplus of RAM free doesn't actually matter that much in this case. RPG Maker MV is a 32-bit application, so it can only access up to 2 GB of RAM, assuming you're using Windows. This means that, even if you had over 9000 GB of RAM free, MV can only use up to 2 GB of it. If it tries to allocate any more RAM beyond that point, the allocation will fail, and if an application isn't written to handle that type of situation gracefully, that could certainly cause it to crash without a word.

I think it's probably unlikely that the application's RAM usage is actually getting that high... but if it *is*, that could certainly result in the behavior that you're experiencing. A simple way to check would be to open your Task Manager and keep an eye on how much RAM the RPG Maker MV process is using. If it gets anywhere near 2 GB when the crash happens, then that's the problem.
Unfortunately, having a surplus of RAM free doesn't actually matter that much in this case. RPG Maker MV is a 32-bit application, so it can only access up to 2 GB of RAM. This means that, even if you had over 9000 GB of RAM free, MV can only use up to 2 GB of it. If it tries to allocate any more RAM beyond that point, the allocation will fail, and if an application isn't written to handle that type of situation gracefully, that could certainly cause it to crash without a word.

I think it's probably unlikely that the application's RAM usage is actually getting that high... but if it *is*, that could certainly result in the behavior that you're experiencing. A simple way to check would be to open your Task Manager and keep an eye on how much RAM the RPG Maker MV process is using. If it gets anywhere near 2 GB when the crash happens, then that's the problem.
Oh I actually had no idea about that, that's good to know. I'm not tech savvy when it comes to that side of things.
Especially with the last option it seems the problem is the data access to the project files themselves.

Please make a copy of the project folder on your desktop. Do NOT move the original, just make a foldercopy and rename the folder to get rid of the spaces in the copied foldername.
then manually open the duplicate (through the editor menu option open) instead of the original folder, and try the actor test again.

Is the new project stable, yes or no?
If yes, then it's likely a hardware issue with your HDD (the four options above ignored hardware errors)

If the copy has the same problem, then it can still be a hardware problem but that would be unlikely, more likely are damaged json files.

Unfortunately the only way to find a damaged json file is to make a backup and a new project, copy one file from the new project into the backup and after each such replace, try the error again.
Once it works you'll know that the last file copied was one of the damaged files - and you'll have to repeat everything with a new copy where only the damaged file was repaired to find the next damaged file.

Repairing damaged files is sometimes possible, and other times it's easier to just entry everything from zero again - it depends on the damage and the data size.
But that is why you should work on a copy only, you can simply replace the files there and go for reparing only after you have found all damaged files.
I went through the json files one by one and it seems the actors json was the issue, except maybe not? I tested every file one by one and the crashes kept happening until I replaced the actors tab, however after starting with a fresh Actors JSON file and slowly remaking my actors, it crashed while adding the sprites. The Shades of Battler sprites seem to be causing the crashes, which makes no sense to me but that's all I can think of. I even made a COMPLETELY brand new game, added those sprites, made no other changes similar to my other project, made some actors and it crashed while picking sprites. Removed those actors, and it runs fine. I don't get how some random sprites can do something like that though... But that seems to be the issue. Something is wrong with those sprites, which is a damn shame because they are so cool looking.
is a 32-bit application, so it can only access up to 2 GB of RAM.
Please get your facts right.
The 32-bit-limit is 4 GB, double of your 2GB claim. And only a very small part of that 4GB is blocked by the graphic memory of the screen.
The Shades of Battler sprites seem to be causing the crashes,
Load all those pictures with a reasonable image program (NOT MS Paint) and save them again under the same name.

The problem might simply be something like an experimental compression to reduce filesize that isn't fully available on your computer, and in that case recoding with a more standart program should solv it.
Please get your facts right.
The 32-bit-limit is 4 GB, double of your 2GB claim. And only a very small part of that 4GB is blocked by the graphic memory of the screen.
My facts *are* right. By default, the maximum amount of virtual address space that Windows will allow to a 32-bit application is 2 GB. The 4 GB limit that you are referring to is a theoretical mathematical limit--not the actual limit in practice.

You may notice that I said "by default", meaning there *is* an exception: if a 32-bit application is built with the /LARGEADDRESSAWARE flag set, then it can use up to 3 GB of RAM on 32-bit Windows, and up to 4 GB of RAM on 64-bit Windows.

However, before I made my previous post, I had checked the PE Header of the executable file and verified that MV does *not* have the LAA flag set, so I can assure you that my previous statement was correct, and that it can only utilize up to 2 GB of RAM on Windows.

The only mistake I made in my previous post is that I had made the assumption that the OP is using Windows. While probability is in my favor, that's still a potentially fallacious thing to do, so I have edited the post to clarify that my statement is operating under that assumption.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-crashes-closes-itself-when-editing-database.158460/