iOS memory leak

nuevocharrua

Villager
Member
Joined
Oct 13, 2015
Messages
12
Reaction score
0
First Language
Spanish
Primarily Uses
In a simple game with a few maps, without any plugin, after trying for 30 minutes after trow many "Memory Warnigs", the game crash and throw: "Terminated due to memory issue"

(Im using Apache Cordova)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,649
Reaction score
13,261
First Language
English
Primarily Uses
RMMV
This is when playing the game, or when using the editor? And using the steam version?
 
Last edited by a moderator:

nuevocharrua

Villager
Member
Joined
Oct 13, 2015
Messages
12
Reaction score
0
First Language
Spanish
Primarily Uses
This is when playing the game, or when using the editor? And using the steam version?
Im run the game on IPhone,

And yes, is the Steam Version , but the error only happens on IPhone deployed (not in xcode Simulator)
 
Last edited by a moderator:

orlando

Veteran
Veteran
Joined
May 24, 2014
Messages
177
Reaction score
84
This might be due to the fact that images for new maps are always loaded, and apparently never unloaded. You can try this code in js/plugins/ and see if it helps with this:

(function() {// When loading a new map, consider throwing stuff away:DataManager._oldPreCacheWiper_loadMapData = DataManager.loadMapData;DataManager.loadMapData = function(mapId) {    if (typeof(DataManager._lastSeenMap) == "undefined") {        DataManager._lastSeenMap = -1;    }    if (mapId != DataManager._lastSeenMap) {        // Purge image data:        ImageManager.clear();        // Remember new map id:        DataManager._lastSeenMap = mapId;    }    return DataManager._oldPreCacheWiper_loadMapData(mapId);}})();This might possibly become part of Galenmereth's Preload Manager at some point, but right now it isn't.

Edit: snippet bugfix, referenced to non-existant class before
 
Last edited by a moderator:

nuevocharrua

Villager
Member
Joined
Oct 13, 2015
Messages
12
Reaction score
0
First Language
Spanish
Primarily Uses
Thanks

 

The script works fine! The game still throwing warnings , but not crushed.

It has some issues: The map name is shown with black font, and the first damage in battle is shown with glitches
 

orlando

Veteran
Veteran
Joined
May 24, 2014
Messages
177
Reaction score
84
Are those problems caused by the plugin? (does it work correctly without it?)

If yes, I'll see and check if I can fix it.
 
Last edited by a moderator:

nuevocharrua

Villager
Member
Joined
Oct 13, 2015
Messages
12
Reaction score
0
First Language
Spanish
Primarily Uses
Are those problems caused by the plugin? (does it work correctly without it?)

If yes, I'll see and check if I can fix it.
I think so, but did not try it without my plugins.

I think not load the font image using to show damage.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,649
Reaction score
13,261
First Language
English
Primarily Uses
RMMV
Can you try this fix from Ramiro and see if it improves things?


Also, the issues with map name and damage display - were they already happening, or did they just start happening after you added blubberblubb's plugin? (if you disable that plugin, do the issues still happen)? And what are the warnings that are still being thrown?


Some things (almost anything in the System folder) should not be cleared, and that may be the cause, but you didn't really say in what way the damage in battles was "glitched".
 
Last edited by a moderator:

nuevocharrua

Villager
Member
Joined
Oct 13, 2015
Messages
12
Reaction score
0
First Language
Spanish
Primarily Uses
The blubberblubb's plugin solves the memory error, but now have this "glitch" (first damage)



the blubberblubb's plugin is the only active plugin  
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,649
Reaction score
13,261
First Language
English
Primarily Uses
RMMV
I don't see how that plugin could possibly cause that issue unless you have another plugin enabled as well. Unless it is simply because the system files have been cleared from cache as well.

If you disable the plugin, does it still happen?
If you start a brand new project and ONLY add blubberblubb's plugin, does it still happen?

Edit: I've just finished making this.  I've tested it on PC and it works as I expect, though my testing was pretty basic.  I haven't tried running it on any mobile devices.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

When you discover great tileset resources that you completely forgot that you had. :kaomad3::kaopride:
Just got a better look at the MZ RTP. I'm very happy with it, especially the sci-fi tiles and sprites. Glad I pre-ordered.
I've just checked the VisuStella Plugins for MZ and there are already 11 plugins. The Yanfly team(perhaps a big one?) really works so effectively and efficiently that some MZ users can likely use tons of Yanfly plugins right after MZ's released (still 13 days from now). I wonder if any other plugin developer(or team) will try to compete with Yanfly this time, no matter how slim the chance to win is :)
Hello! :kaopride:I am new to RPG Maker, though I have been lurking the forums for a while. :kaoswt: Hope to make some friends and learn some stuff here! :kaothx:
And now since I've got the whole game parts working, the *contents* await.

Forum statistics

Threads
100,595
Messages
977,586
Members
132,194
Latest member
linkvaovn88com
Top