Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Game exiting unexpectedly, with no error shown in console before closing :(

Thomas Cyrix

Villager
Xy$
0.00
Hey

There is something really strange about my game since I use some plugins :
After a few teleports, game will simply close.
No error message.
Cannot see anything on the console (because it closes too).

Do you have any idea ?
I would like to get some "logs files" generated by the game.exe to find and fix the bug...

I tested the problem on web (by exporting the project to web platform) and the problem does not show up...
 

Dad3353

Praised Adventurer
@Thomas Cyrix ...

PC or Mac..? If PC, check Memory usage (Task Manager, Details tab, sorted by Memory...) and see what happens when changing Maps or evoking the Menu screen several times. I have this problem with some Games; there's a whole series of Reports open with RPGMV on the subject.
It may, of course, be something else, but check that, first..?
 

Thomas Cyrix

Villager
Xy$
0.00
Oh, okay... (I'm on PC Win10 x64 @ 16GB RAM)
It seems there is a serious memory leak :
I use a main map of 255x255.

Loading will consume ~800Mo of RAM.
And each time I enter any house and go back to the main map, it consumes ~650Mo of additional RAM.
After 3 teleports, it crashes entirely.

Is there a tweak or something to "reset" the memory during teleport ?

EDIT : It seems to be linked to the plugin "Quasi Movement", that uses 600Mo of RAM

EDIT 2 : Important : I see that even with NO plugins, each map loading will consume more and more RAM... Serious memory leak here :(
 
Last edited:

Dad3353

Praised Adventurer
@Thomas Cyrix ...

Aha..! Similar spec PC to mine; this doesn't happen on all PC's, apparently. As above the case is already open with the Gods Above, and a fix could well be part of the next release (no date for the moment, though...). Whilst waiting, there's a plugin 'patch' which works for many Projects (mine, for instance, which are rather modest...), but does nothing for others; I suppose this depends on what other plugins are in use (I use very few...). I've attached the patch (provided by O_ggy form another site...) for you to try. The cause is, apparently, a question of raster memory not being totally recovered, and could, perhaps, be associated with certain video cards (not confirmed; just my hunch...). A bit of patience, then; help is on its way, I hope, in the not-too-distant future.
Hope this helps.
 

Attachments

Thomas Cyrix

Villager
Xy$
0.00
Thanks :)
I just found this discussion too http://forums. rpgmakerweb .com/index.php?/topic/66600-mv-13-memory-leak/#comment-648484

Seems to fix the problem - But anyway I'll try using smaller maps ^^
 
Last edited by a moderator:

Dad3353

Praised Adventurer
@Thomas Cyrix ...

Yes, that's the source. I don't think it's a question of Map size. To illustrate the problem, I created a Mini-Project with an ordinary Map (17x13...), no Events, no ... anything. Simply switching Menu On and Off raised the Memory usage to breaking point over time, but was controlled to a reasonable level with the the aid of that patch. All of my Projects benefit from the patch, but a couple of Projects that I have, from other folks, don't. It's likely that they are using plugins which don't cooperate with the patch., but I've no idea which ones work and which don't. It'll all be a bit more clear, anyway, with the next release, so I'll be using the patch plugin until then, then we'll see.
 

Jodis

Adventurer
Xy$
0.44
thank you both for the solutions i didn't know about this bug. have not needed a map with perplexing yet. but now i have some ways around it if i need to.
 
Top