Abrupt crashes -What have I been doing wrong?

I know, from experience,cause it took me a few month to find out why it crashes randomly; when I used yep and srd plugins.

The srd core plugin are causing the memory leaks so I removed it and with some scripting I made the things I wanted to do with some simple script calls to full screen and 1130/640 resultion at the nw.js config file (package.json).

I use the yep core plugin with a bunch of other plugins from yep because they simply just need the core plugin.
Do keep in mind that not all plugins from yanfly or smrde need the core-upgrade stuff.

As for a logical understanding;
It seems you have chosen three developers that are poking at the core engine of the script. My advise is to try out plugins that work on their own that don't need a core-update, essentialtools or gameupgrade to work.
If you don't need these "core upgrade plugins" you should leave them out if possible or stick with just developer who has all the plugins you need.

If you want to keep it clean make sure you remove the images from the memory when you have used a large image, there are scripts you can find on the forum to do just that (search for "clear image cash"). Not saying you need to clear all the images everytime by hand, because the garbage collector should do that automaticaly, though it is sometimes too slow. And to make the best performance on your next map, clear the image cash by a scriptcall when the large is image is not longer needed.

To check if it works: there are things that will make the memory go up: for example opening the menu a few times or tranferring from a map to another or getting in and out of battle.


For future problems do check; rpg_core.js, go to somewhere arround line 1870, and change

(this._skipCount === 0)
To
(this._skipCount <= 0)

JS checks the OS for clock times and dates. But, if the OS syncs its clocks in the middle of rendering a frame, the clock time may go backwards. Then the game gets confused and thinks it needs to skip negative frames, which it can't handle and crashes / freezes.

Good luck!
I know, from experience,cause it took me a few month to find out why it crashes randomly; when I used yep and srd plugins.

The srd core plugin are causing the memory leaks so I removed it and with some scripting I made the things I wanted to do with some simple script calls to full screen and 1130/640 resultion at the nw.js config file (package.json).

I use the yep core plugin with a bunch of other plugins from yep because they simply just need the core plugin.
Do keep in mind that not all plugins from yanfly or smrde need the core-upgrade stuff.

As for a logical understanding;
It seems you have chosen three developers that are poking at the core engine of the script. My advise is to try out plugins that work on their own that don't need a core-update, essentialtools or gameupgrade to work.
If you don't need these "core upgrade plugins" you should leave them out if possible or stick with just developer who has all the plugins you need.

If you want to keep it clean make sure you remove the images from the memory when you have used a large image, there are scripts you can find on the forum to do just that (search for "clear image cash"). Not saying you need to clear all the images everytime by hand, because the garbage collector should do that automaticaly, though it is sometimes too slow. And to make the best performance on your next map, clear the image cash by a scriptcall when the large is image is not longer needed.

To check if it works: there are things that will make the memory go up: for example opening the menu a few times or tranferring from a map to another or getting in and out of battle.


For future problems do check; rpg_core.js, go to somewhere arround line 1870, and change

(this._skipCount === 0)
To
(this._skipCount <= 0)

JS checks the OS for clock times and dates. But, if the OS syncs its clocks in the middle of rendering a frame, the clock time may go backwards. Then the game gets confused and thinks it needs to skip negative frames, which it can't handle and crashes / freezes.

Good luck!
Thank you very much for sharing your personal reference, tips, and tricks. If I may ask several questions:

a) "Do keep in mind that not all plugins from yanfly or smrde need the core-upgrade stuff."
Does this mean that I should erase my SRD-game upgrade plugin?

b) I will do this right away:
(this._skipCount === 0)
To
(this._skipCount <= 0)


When I do it, should I still use a script where it clears image cash?
(I thank you in advance, Sir)

c) Is there any plugins that I should delete to permanently solve my crashes?
help for crashes des 2022 9.png
Does this mean that I should erase my SRD-game upgrade plugin?
Thank you very much for sharing your personal reference, tips, and tricks. If I may ask several questions:

a) "Do keep in mind that not all plugins from yanfly or smrde need the core-upgrade stuff."
Does this mean that I should erase my SRD-game upgrade plugin?

b) I will do this right away:
(this._skipCount === 0)
To
(this._skipCount <= 0)


When I do it, should I still use a script where it clears image cash?
(I thank you in advance, Sir)

c) Is there any plugins that I should delete to permanently solve my crashes?
View attachment 248864

Does this mean that I should erase my SRD-game upgrade plugin?

If it is possible then you should, I don't know what plugins you want to use or need the srd-game upgrade, most of the time it is stated at the plugin and sometimes gives a console warning "this plugin needs..."

I'm not sure how heavy your game images are, but if you load a huge image and the image isn't displayed anywhere again you should clear it just to be sure it is not using up the memory resources.

Put this in the script after the image displaying is done.
ImageManager.clear()

Good luck and merry christmass
Does this mean that I should erase my SRD-game upgrade plugin?


Does this mean that I should erase my SRD-game upgrade plugin?

If it is possible then you should, I don't know what plugins you want to use or need the srd-game upgrade, most of the time it is stated at the plugin and sometimes gives a console warning "this plugin needs..."

I'm not sure how heavy your game images are, but if you load a huge image and the image isn't displayed anywhere again you should clear it just to be sure it is not using up the memory resources.

Put this in the script after the image displaying is done.
ImageManager.clear()

Good luck and merry christmass
Got it. I will try to see what it requires and if it appears redundant, I'll erase it right away.
My images are 300-1,800kb each.

Oh, waw I see. should I have a plugin to use the "ImageManager.clear()"? or I can do it without any?
Is this a good example? (let's say this is the end of the event which displayed 80 images for dialogues)

◆Show Picture:#25, 225sashacasualeerie, Upper Left (0,0), (100%,100%), 255, Normal
◆Text:None, Dim, Bottom
: :\n<\c[17]Sasha\c>(...)
◆Text:None, Dim, Bottom
: :\n<\c[17]Sasha\c>(Gosh...)
◆Text:None, Dim, Bottom
: :\n<\c[17]Sasha\c>(What have I done...)
◆Erase Picture:#25
ImageManager.clear()


Did I do it correctly?

(Thank you for your help and please have a great holiday too.)
Does this mean that I should erase my SRD-game upgrade plugin?


Does this mean that I should erase my SRD-game upgrade plugin?

If it is possible then you should, I don't know what plugins you want to use or need the srd-game upgrade, most of the time it is stated at the plugin and sometimes gives a console warning "this plugin needs..."

I'm not sure how heavy your game images are, but if you load a huge image and the image isn't displayed anywhere again you should clear it just to be sure it is not using up the memory resources.

Put this in the script after the image displaying is done.
ImageManager.clear()

Good luck and merry christmass
Sorry for making two responses. 😅
I just deactivated it and it turns out that I need it for my "SRDCreditPlugin". Could there possibly be a way around it? Perhaps is there a setting in my "ImageCache" that I incorrectly did in the following?
help for crashes des 2022 01.png

Should I change the "Image Cache Limit" into more than 30 or any other number, perhaps?

Or should any of these options from "garbage collection mode" help decrease my crashing issue?
help for crashes des 2022 01a.png

(happy holidays)
Sorry for making two responses. 😅
I just deactivated it and it turns out that I need it for my "SRDCreditPlugin". Could there possibly be a way around it? Perhaps is there a setting in my "ImageCache" that I incorrectly did in the following?
View attachment 248980
Should I change the "Image Cache Limit" into more than 30 or any other number, perhaps?

Or should any of these options from "garbage collection mode" help decrease my crashing issue?
View attachment 248982
(happy holidays)

ImageManager.clear() this should put in the script inside am event 3th tab and hit the button beneath the plugin-command. Past it and done.
But it won't fix the memory leak
The srd-game-upgrade could be causing maybe there is an alternitice for the credits plugin?

Just an idea use the yelp menu customization; and make a nice commen event that is triggered in the menu to show / scroll whatever the credits or play a video...

Just to proof my point;
Activate the plugin and open te game now open the tasknmanager beside it.
Open the menu a few times and see if the memory usage from the game.exe is rasing. Untill the point the game.exe shuts down.
Now turn-of the plugin and do the same and see if it fixes anything.
ImageManager.clear() this should put in the script inside am event 3th tab and hit the button beneath the plugin-command. Past it and done.
But it won't fix the memory leak
The srd-game-upgrade could be causing maybe there is an alternitice for the credits plugin?

Just an idea use the yelp menu customization; and make a nice commen event that is triggered in the menu to show / scroll whatever the credits or play a video...

Just to proof my point;
Activate the plugin and open te game now open the tasknmanager beside it.
Open the menu a few times and see if the memory usage from the game.exe is rasing. Untill the point the game.exe shuts down.
Now turn-of the plugin and do the same and see if it fixes anything.
Thank you, I will try my best
SRD_GameUpgrade is required for the SuperToolEngine as well,
and most crashes arent plugin related (as you get an error if they do)
not closing abruptly.

even if everything works, what are your pc specs?
SRD_GameUpgrade is required for the SuperToolEngine as well,
and most crashes arent plugin related (as you get an error if they do)
not closing abruptly.

even if everything works, what are your pc specs?

just saying;

Post in thread 'RPG Maker MV game uses way too much memory' https://forums.rpgmakerweb.com/inde...me-uses-way-too-much-memory.87751/post-799784


Post in thread 'game.exe - memory (over)load' https://forums.rpgmakerweb.com/index.php?threads/game-exe-memory-over-load.118642/post-1043690

Fijne feestdagen 🙂
SRD_GameUpgrade is required for the SuperToolEngine as well,
and most crashes arent plugin related (as you get an error if they do)
not closing abruptly.

even if everything works, what are your pc specs?
Hi. I see. So I must dig deeper then. My computer specs: 😂
help for crashes des 2022 2.png

just saying;

Post in thread 'RPG Maker MV game uses way too much memory' https://forums.rpgmakerweb.com/inde...me-uses-way-too-much-memory.87751/post-799784


Post in thread 'game.exe - memory (over)load' https://forums.rpgmakerweb.com/index.php?threads/game-exe-memory-over-load.118642/post-1043690

Fijne feestdagen 🙂
Ik dank u zeer. De links die je me gaf waren ongelooflijk nuttig. Ik blijf proberen en testen. ook een fijne vakantie. (en ja, ik gebruik google translate) 😤
I use it in my game and main game without any problems though.
as it could cause something else, there is a setting in GameUpgrade
to set it to true or false.

Game Reconstruction <- is best to set to false if using 1.5.x.
if you use 1.6.x you shouldn't have any problems.

Image Cache Limit is defaults on 30 (in core 10), so you could increase
this is you didn't change it and kept it on 30.

Garbage Collection Mode = automatic, you can set it to manual,
but you need to know what you do and how to handle them ingame.

(also try to refrain to stay in english instead replying in dutch 🙂

as your pc specs from the image (not entire specs), it seems you have
far enough ram. so I dont know why it closes it abruptly.

just saying;

Post in thread 'RPG Maker MV game uses way too much memory' https://forums.rpgmakerweb.com/inde...me-uses-way-too-much-memory.87751/post-799784


Post in thread 'game.exe - memory (over)load' https://forums.rpgmakerweb.com/index.php?threads/game-exe-memory-over-load.118642/post-1043690

Fijne feestdagen 🙂
I readed them before, but it doesn't cause problems on my end, if there are other
plugins can be the cause, it might be conflicting if it has the same function or is
overwriting one or they must share the same values in the other to avoid them.

but it doesn't have to be the GameUpgrade plugin as the other might be the cause.
there is also a plugin for memoryLeak to fix them if you have problems with some
plugins to avoid the issue as well.

I dont know who wrote it, but the name was MemoryLeak that fix some canvas/pixi
issues on some plugins, so it could help in the process, but while mine work smoothly
without any issues running it, and other games using them, it doesn't crash here.
I use it in my game and main game without any problems though.
as it could cause something else, there is a setting in GameUpgrade
to set it to true or false.

Game Reconstruction <- is best to set to false if using 1.5.x.
if you use 1.6.x you shouldn't have any problems.

Image Cache Limit is defaults on 30 (in core 10), so you could increase
this is you didn't change it and kept it on 30.

Garbage Collection Mode = automatic, you can set it to manual,
but you need to know what you do and how to handle them ingame.

(also try to refrain to stay in english instead replying in dutch 🙂

as your pc specs from the image (not entire specs), it seems you have
far enough ram. so I dont know why it closes it abruptly.


I readed them before, but it doesn't cause problems on my end, if there are other
plugins can be the cause, it might be conflicting if it has the same function or is
overwriting one or they must share the same values in the other to avoid them.

but it doesn't have to be the GameUpgrade plugin as the other might be the cause.
there is also a plugin for memoryLeak to fix them if you have problems with some
plugins to avoid the issue as well.

I dont know who wrote it, but the name was MemoryLeak that fix some canvas/pixi
issues on some plugins, so it could help in the process, but while mine work smoothly
without any issues running it, and other games using them, it doesn't crash here.
Thank you for your help and information, I'll keep on digging what might've been causing it. I really appreciate the solid explanation
can you send me a demo of your game causing it by DM, so I can see what
else could be the cause or a tech demo with gameupgrade and some plugin
if you can replicate the effect?

I want to see what happens if I run your game if it also closes abruptly or not,
than I can run some software to see what cause it if it happens.

can you send me a demo of your game causing it by DM, so I can see what
else could be the cause or a tech demo with gameupgrade and some plugin
if you can replicate the effect?

I want to see what happens if I run your game if it also closes abruptly or not,
than I can run some software to see what cause it if it happens.
I'd love to give a demo that replicates the current abrupt crash, but it's very hard to predict as it crashed randomly. But, based on all the help above, I finally think I found a great solution:
help for crashes des 2022 01a.png

Update: I toggled "Automatic" into "On Scene Change" and so far the abrupt crashes haven't appeared. Subsequently, my RAM/Memory check is way better now; it never goes above 800MB. I'm still testing it on my low end laptop, before going to a high end PC. I have high hopes that this could solve it permanently. I know that I mustn't feel too happy yet as I still anticipate for upcoming issues.. Regardless, I thank you very much for your help and guidance 😂

Original thread: https://forums.rpgmakerweb.com/threads/abrupt-crashes-what-have-i-been-doing-wrong.153428/