poiuyt0418

Villager
Member
Joined
Jan 15, 2017
Messages
13
Reaction score
0
First Language
English
Primarily Uses
Not a memory leak per se, there seems to be a problem with garbage collection in windows 10 and rpgmaker mv. 


This is the project I used to test this. (It's a completely new game project with nothing added or changed except removing some images to reduce size of project after deployment)


https://www.dropbox.com/s/rbcb5ks6vf5bm62/Project2.zip?dl=0 Uploaded for the skeptics


Results:


http://imgur.com/a/auh0F


Can other people test this as well? This also occurred during play test while in editing. This might be a problem specific to drivers, OS, or just oversight of the engine itself.


(Specs for my laptop:


Overall


http://imgur.com/a/3V5y9


Gfx Card Driver: Intel HD Graphics, driver:8.15.10.2900


Don't know what else I might be missing)
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,699
Reaction score
945
First Language
English
Primarily Uses
N/A
What version of the engine was this project made in?
 

poiuyt0418

Villager
Member
Joined
Jan 15, 2017
Messages
13
Reaction score
0
First Language
English
Primarily Uses
Fully updated steam version, 1.3.4
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,432
Reaction score
10,863
First Language
German
Primarily Uses
RMMV
Its memory fix was supposed to be included in a previous MV update, but I don't think it's made it in yet

I just got an answer to that question, and the fix is included in 1.3.4


@poiuyt0418 High memory usage is not automatically a memory leak. We need more data on this before it can even be checked on. And it needs to be tested on several different machines to confirm that this is not something in your computer only.


Can you give us an archive of the project folder instead of the deployed version (again, reduced of not needed resources to make the download smaller)?
 

poiuyt0418

Villager
Member
Joined
Jan 15, 2017
Messages
13
Reaction score
0
First Language
English
Primarily Uses
Do I really need to? It's a completely new project with nothing changed at all (besides deleting unused resources). Just opening and closing menu.


Side Note: Is it okay to link reddit posts? Another issue on memory and MV (not a new project)
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
14,505
Reaction score
15,813
First Language
English
Primarily Uses
RMVXA
Still helps to have it, as your new project isn't the same as everyone else's (due to the way the updates work, as well as the lack of RTP this time around). So yes, please post it.


Though, does it only occur if you open/close the menu many times in a row? That's actually pretty normal, as the garbage collection only runs every few minutes (as I understand it anyways). And if you think about it, who is going to open and close the menu say 30 times in one minute anyways in a game?
 
Last edited by a moderator:

poiuyt0418

Villager
Member
Joined
Jan 15, 2017
Messages
13
Reaction score
0
First Language
English
Primarily Uses
Yes it is ~10 times in a row when it doubles memory used. Good to know that garbage collection only runs every few minutes. Seems to be that is what is occurring.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,432
Reaction score
10,863
First Language
German
Primarily Uses
RMMV
The problem with garbage collection is that that function can only guess at what is garbage and what not, and running it too often might get some data deleted while it is still in use - then you'll get bug reports on vanishing pictures before the erase command is used (as an example) or crashes of undefined variables not because they were never defined, but because garbage collection deleted them too early.


In a way it would have been better to enforce strict data handling (like it was done in Pascal for example). However, that would also have forced all programmers to work more careful and really learn what they're doing, and that would have kept up the prices for any program. But because now things like garbage collectors work behind programmers who simply don't know how to clean up for themselves (to take care of their own garbage so to speak), we get programs that are a lot cheaper to develop but also need a lot more reserves in memory.


But that is not a real memory leak - those are errors in memory management that are caused by the same loose programming styles, but are not exactly bugs but data segments that were forgotten to declare as garbage, so they never get removed from memory at all.
 

JJ Sonick

Villager
Member
Joined
Feb 23, 2013
Messages
24
Reaction score
5
First Language
English
I just got an answer to that question, and the fix is included in 1.3.4



Ah, good to know.


In my own testing on Win 7 (test play from editor of a default new project in 1.3.4), I do see a continual piling on of memory used by Game.exe if I do a rapid succession of menu open and closes.  But the memory use gets bumped back down after a while in cycles that seem to match what Andar is saying about the CC does.  But I didn't do an in-depth investigation like poiuyt0418's.
 

poiuyt0418

Villager
Member
Joined
Jan 15, 2017
Messages
13
Reaction score
0
First Language
English
Primarily Uses
Is there a way to manually dispose unused memory?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,432
Reaction score
10,863
First Language
German
Primarily Uses
RMMV
@poiuyt0418 there should be, but I never checked javascript.


In old versions of programming languages you had to do this manually, because there was no garbaga collector at all.
 

poiuyt0418

Villager
Member
Joined
Jan 15, 2017
Messages
13
Reaction score
0
First Language
English
Primarily Uses
I'm somewhat familiar in C coding but I only learned (the little amount I know) javascript through messing with rpgmaker so memory management is out of my comfort zone concerning javascript. This forum post was a good read concerning this (pop scene not disposing of all memory used and thus waits for garbage collection to catch it): Forum Post


Looks like users with high RAM installed don't really feel problems. I only have 4 gb of ram so I feel this problem (not really problem, more like a limitation) more acutely. My only issue right now is that the memory used by all the game processes don't add up to the amount missing.
 
Last edited by a moderator:

TakeHomeTheCup

Veteran
Veteran
Joined
Oct 15, 2013
Messages
245
Reaction score
469
First Language
English
Primarily Uses
I'm somewhat familiar in C coding but I only learned (the little amount I know) javascript through messing with rpgmaker so memory management is out of my comfort zone concerning javascript. This forum post was a good read concerning this (pop scene not disposing of all memory used and thus waits for garbage collection to catch it): Forum Post

So according to that topic, there is no way to dispose of an object ourselves. The only way we can is to remove references that reference the object we want to dispose of, and let the garbage collector take care of it? 
 

duende23

Villager
Member
Joined
Dec 17, 2016
Messages
13
Reaction score
3
First Language
español
Primarily Uses
N/A
I understand that progamming can be difficult and programmers should put attencion to memory and garbage collector. But the root poblem is than profesional programmers who have created the proyect rpg maker mv havent able to resolve the problem with memory. It doesnt depend if you are a good programmer or not, it is problem of the proyect rpg maker MV. When you create a game from 0 without plugins and paralax maps, it has problem with memory, and it is easily tested. And what i cant understand is like sell a proyect where you can create a game for mobile, when it is imposible. A simple project in mobile from 0 without plugins and paralaxe maps, it crash due to memory after 20 minutes more or less. When they find the solution (because its  their problem, that they dont cheat you, its clear), then  it will be a great programme, until now i am very dissapointed with my purchase. 
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,432
Reaction score
10,863
First Language
German
Primarily Uses
RMMV
@duende23 There is no memory leak left within the 1.3.4, so don't spread rumors.


If you can crash the game on android without creating an artificial situation where the engine is forced to crash by the player (so no going into the menu and leaving it a hundred times within a minute, because such a thing will always overload any garbage collection), then make a real bug report with the formats required and the description how to replicate that.
 

duende23

Villager
Member
Joined
Dec 17, 2016
Messages
13
Reaction score
3
First Language
español
Primarily Uses
N/A
@Andar, I dont crash the game with artificial situation, i crash the game playind during 20 minutes in a mobile with proyect from 0 very very very basic, I have tried it a lot, with different mobiles because i thought the problem was mine, but it isnt like that, i have written in many occassions to stuff rpg maker and they have answer me nothing, they will study my bug report. Anybody has been able to create a game for mobile yet due to this resason, It is real, sorry, i dont want spread rumors it is a reality. I felt cheated because i cant create my game for mobile, i dont want it for pc. If someone could demostrate the contrary please send us it, but i know it isnt posible. 
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,432
Reaction score
10,863
First Language
German
Primarily Uses
RMMV
@duende23Then do as I said and post a description of how to reproduce the error - there have been dozens of other games that do not crash, so until you can bring facts to this we can't do anything other than consider your posts to be baseless rumors.
 

duende23

Villager
Member
Joined
Dec 17, 2016
Messages
13
Reaction score
3
First Language
español
Primarily Uses
N/A
@Andar, what happens me is very simple, the error reproduce while i am playing, anytime that i go to the menu, or i go to other map, o i go to a battle or i speak with someone, the memory go increase until the game crash and exit. It not only happens me, everybody. Could you say me some game rpg created with rpg maker mv for


mobile? Only one, please
 

poiuyt0418

Villager
Member
Joined
Jan 15, 2017
Messages
13
Reaction score
0
First Language
English
Primarily Uses
It isn't hundreds of time. I just open the menu 15 times in a row and it goes up to memory usages of 2 gb
 

Latest Threads

Latest Profile Posts

How did no one realise my plugin had a bug for over half a year until today :kaoswt2:
My children thought this would be a funny shirt for me.
Bad Sign 2.jpg
Trying something out. Is this too many words to read?Profile_Arwen.png
totally-saved-2.gif
Save/Load complete. Kind of. There should be trinkets or medals that fit in the empty space of the bookmarks to show progression. Was gonna post it earlier, but I couldn't link GIFs. Don't mind all of them having a style level of 000, it just means they're all nakey and don't have anything equipped.

Forum statistics

Threads
131,565
Messages
1,221,095
Members
173,258
Latest member
hahadori
Top