My game keeps crashing for players

Alright, I'm stumped on this one. I keep getting reports that Tales of the Lumminai is constantly crashing (which means memory leak since it is spiking memory usage until it crashes). I'm not sure what could be causing this or how to fix it...any ideas? The game went through testing without this problem, so I don't know what it is caused by or why it is happening.

The times these people are crashing at seem completely random. One at the beginner area (where no parallel events are on at), another at the inn (which is after the time system is turned on), and others during the start of fights or when saving the game in various places. I'm using Yanfly save core for the saving, common eventing for the time system, and Yanfly's battle engine for a CTB battle system.

Please help me figure this one out, you epic geniuses! (Or rather....help me Obi Wan MV, you're my only hope!)
You may wish to get the system specs from those who are reporting the crashes, and see if there is a common theme. My thought is it is probably the memory they have available, as MV is very memory intensive. So intensive that I'd not even consider running it or a game made with it on a computer with 8 GB or less.
That was my thought at first too, but when I have 4 of them saying they have specs like this

i7-6700
32gb ram
gtx 1080 fe

it makes it impossible to say that would be the problem. 32 gigs is far more than I have so they shouldn't have that problem if I don't. My own is only 10 gb and it works fine for hours before it gets to be too much.
Hmmm....find out the OS then. Maybe there is a common theme there. My Windows 7 PC has no issue, and it has 12 GB of ram. Haven't tried it on my windows 10 PC, which has 32 GB.

My other thought, I've had bad experiences with NVida drivers because in 2005 they had a bad batch which took years for them to fix (it was so bad I couldn't play any games for a few months until I finally got a new graphics card that wasn't Nvida). Find out which graphics driver they have and which version.
I'm on a windows 10 pc myself. It does eventually crash, but it takes hours for it to happen for me. I've also got an Nvidia GTX 980 card with the latest version drivers. That's at least one thing I have in common with 3 of them, Nvidia cards. My windows isn't up to date with the latest version though since I hate windows 10 updating lol. They might have the latest which could be causing it.

Would you mind taking a look into the files themself for me and seeing if there might be an issue with the plugins that could cause this problem? I do use like 40+ plugins (although I think some of them are never used even though they are on). Maybe there's an incompatible pair or something. I'm not familiar with all the plugin compatibility just yet so it's possible.

Another person mentioned that inside one of the inns they just keep getting teleported back to the inn when they try to enter any room or leave it. The events that control all of these appear perfectly fine, and no one else had experienced this issue either. I'm not sure what could cause that one either, but I have a sneaking suspicion that they're likely connected.
I personally cannot look at them right now, it's finals week here and once that is over I have a surgery. It would be January before I could do anything. But find out if they do have the latest version of Windows.

Also what version of MV is your project (not the editor, the project itself). If you have anything before 1.3.1 it is known to leak memory.
Alright. The project was started with MV 1.2, but I have since updated the engine and everything prior to 1.5.2 to 1.5.2. Does that actually make its version 1.5.2? I asked them what Os they have to see if that's a common factor or not. If they don't have Windows 10, then that's out. We all have Nvidia cards so far accept for the one dealing with that other problem that doesn't make sense to me since the events are set right
It should. Open one of the core .js files, and see what it says in the first few lines. That will be your version number for your project. If there is no version information then the project is on version 1.0 or 1.1 somehow.

BTW, is this game a commercial release, or is it a full game released on here? If it is on here can you post the link to it so someone can check it out? If commercial obviously that is not a realistic option though.
The game is commercial and is on steam already released as of the 8th of this month. That's also why I'm trying to resolve this quickly, as this is causing major problems for a few who bought the game. Most don't experience it it seems, but there are at least 8 (out of roughly 26) who are.

And I opened RPG core.js and it says it's 1.3.0 Is there a way to fully update that? And everyone experiencing crashing is on Windows 10, idk if they all have the latest version but I have asked them to find out.
1.3 does have a memory leak, so that is probably the problem. To update them, go to the update thread and follow the directions there (I don't know them off the top of my head, hence why I suggest going there).

Note though if you do update it, you'll also have to update your plug-ins! Else those will cause a problem too.
Can you describe the type of crash? Is it Crash To Desktop, or an error is displayed?
Bringing up console with F8 on Windows machine might show an error in console.
There is also a "debug" mode, but I am not familiar with how to use it - only know of its existence.

One thing I've seen slowing games down into a crawl are weather effects and multiple-dynamic-characters pathfinding.
From your games screenshots it looks like you are using at least some plugins of yanfly. Some of them are optimized for the latest rpgmaker MV version. So you should begin to update you main script files (https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mv-1-5-0-update.79677/) like bgillisp said and update the plugin-files after that (for yanfly: http://yanfly.moe/yep/changelog/). After that, do at least a longer playtest to check if no new crashes have arrived. Using the taskmanager you can control if the memory consumption is now lower.
Well my plugins are already updated to 1.5.2 and I have the 1.5 plugin perameter thingy in the project itself so I'm not sure why it says it's still 1.3 since I copied all the new files except plugins and put them into the folder where it was instructed. Might have missed something, so I'll double check but pretty sure I did it right there.

As for the type of crashes they are experiencing, it's mostly crash to desktop with a couple saying it lags until not responding before crashing to desktop as well. My game rarely uses weather effects. It has 2 maps that use them out of about 70 total so don't think that's the problem or even a factor for it as none of the crashes have happened on either of those maps. The crash I experienced myself was directly to desktop since it just closed the game without notice, but it was only after several hours (so for me it was prolly a memory leak crash).

I am using a lot of Yanfly plugins lol. Some may not even be in use, it's been so long since I first added several of those into the game (and ideas changed since then but I did keep the plugins updated regardless). I'll re-update the main scripts and see if the issue persists for myself. If it does then back to square one on the issue.


Edit: Alright, everything is now updated to 1.5.1 it would seem. It broke SRD's camera core plugin though, but that's used only a couple times. I myself did several battles (and I've got a mid game save file for testing since that's when a lot of things are going at once) and it only got up to 500k kb in usage. When windows were opened it would jump to 600k but then drops after they close. This might have fixed the issue. I'm gonna leave it running while I get some rest and see if it crashes or not.
I also wonder if the issue is Steam and how Steam's frontend is being implemented with RPGMakerMV. Any way you can try to run the Steam version of your game and see how it works?

PS: SRD's plug-ins no longer work with 1.5 or higher of MV, and they haven't posted fixes. You'll have to drop them to use 1.5, or find someone who knows programming to fix them.
Nah, it seems I somehow fixed it so his plugin works again lol. I had one of the perameters enabled but it was causing problems so I just disabled that and it works fine now (just means if the game were to zoom out it may have black edges but I don't use the zoom out feature so that don't matter). It is sad most of his plugins aren't updated for 1.5+ yet though. He's a good plugin maker but he's been quiet for awhile now.

And yeah I can run it through steam and see if the problem exists worse there. I left the game running as a "test play" for like 4 hours and it was still running when I got back so the problem is gone for me through that method at least. I'll check it on the steam version and see if it's worse there or if it was roughly the same but for some reason caused crashing earlier for others.

Edit: After the update went through on Steam, I'm noticing drastic changes in memory use for the steam version compared to the non steam version and test play. The steam version is using 4 times the amount of memory and causing horrible lagging as well as eventual crashing after about 30 minutes since the memory use only goes up. On the non steam version, this doesn't happen and memory use stays stable throughout the entire first half of the game (tested by me and several others). What could be causing such a problem to occur on Steam?
It's probably the DRM Steam uses or something, or how your publisher implemented the front end. I'd check with them and see if they can put it in a less laggy version, as a 4x spike is really bad.
You could try this in Steam: Rightclick on your game -> Properties -> General -> Disable "Enable the Steam Overlay while in-game".

The steam overlay is known to cause troubles for some games. Maybe yours (~rpgmaker games) is one of it. Its worth a try.
Well, the current steam version is still unstable even with the overlay disabled, but it doesn't spike as quickly nore as badly. It is stable for the most part around 800k kb which I'm guessing is likely the average where it should be since the non steam version is around 500-650k kb. I still saw spiking happen when moving or doing anything, but this might fix the problem for a lot of those that have it though. I'll make a note to the players informing them that the steam overlay definitely is causing some of the lag problems/crashing. I'll test it again once this next update goes through (since I found a crap ton of stuff with an event chain that needed fixing thanks to one of the players reporting it xD).
Well happy to help you ^^

By spiking do you mean: It takes up like 2Gigs of memory for a second and then settles back to 800mb?
To find the cause of the spikes you should try to check when exactley they are happening. (e.g.: when doing a step on another tile).
Then its possible to check script you are using for performance problems in these cases.

Also check parallel events in common events and maps that are really bad in performance. it may be possible to optimize them too
The spiking occurs in a completely random pattern. One second on one tile, then on a different one, then when standing still, then when moving. There doesn't seem to be any real pattern to it, and it occurs on every map so it's just odd. On the beginner maps, there aren't any parallel events that are running, so nothing should ever cause any type of spiking there. There's 4 events on each map there, and I've never had any problems with so few lol.

I did rework how one of the common events work, so that may help in the later issues but it's not enabled in the beginning so shouldn't contribute to the spiking. But yeah, by spiking I mean it hits around 3 gb and stays there for like 3-5 mins then drops again after.

Original thread: https://forums.rpgmakerweb.com/threads/my-game-keeps-crashing-for-players.88330/