Memory leak in 1.15

I’ve just found a serious memory leak that affects 1.15. I believe this is the cause of instability that many of you have experienced. Especially affected are owners of Lumia 610s, which only has 256MB of memory. On those devices the leak will quickly lead to the game crashing.

I’ve already fixed it for 1.16, and I will probably do a rush update because of it. I still need to finish the current feature and make sure there are no more leaks like that.

In the meantime I recommend to play the game in short sessions, restarting the app periodically. 512MB phones (i.e. almost all apart from Lumia 610) are probably good for an hour or two of play until the memory is exhausted and the app crashes, although the time depends heavily on framerate and other factors. Lumia 610s are good for much less, probably only minutes under some circumstances.

Another aggravating factor is that during normal play the game is likely to run out of memory during autosave, corrupting the world.

17 Comments

  1. Chris
    Posted September 4, 2012 at 00:41 | Permalink | Reply

    Bummer. So, basically we shouldn’t play for keeps until this is fixed.

    • Posted September 4, 2012 at 00:55 | Permalink | Reply

      If you have a 512MB phone you can play, as long as you remember to restart from time to time. To restart you need to quit by pressing back button in the main menu and then start again. Pressing the home (windows) button and then back is not a restart.

      I will be releasing 1.16 ASAP. Of course this is solely my fault and I am sorry for that. Usual excuses about alpha version apply…

      • Chris
        Posted September 4, 2012 at 02:24 | Permalink | Reply

        Of course it’s your fault, you should be ashamed! NOT!!!!!

        Kaalus, I think I can speak for all players when I say that this is not in any way a negative reflection upon you, and only suggests how hard it must be to be a one man show. Your making an entire game, what is arguably way too complex for any one (normal) person to easily handle, so of course this is to be expected, and we all know you are diligent and determined, so the bugs, as they appear, will be squashed. I just lament Microsofts slow release process. It must be the most aggravating aspect of all this. Still, I have faith in you, since despite the critical bug, release 1.15 has been the best version to date by a long shot.

        • Sir Knight
          Posted September 4, 2012 at 03:15 | Permalink

          I second that. “+1”

  2. lowbudgetbatman
    Posted September 4, 2012 at 01:15 | Permalink | Reply

    if anyone is worried about their worlds id suggest using dropbox and upload your saves periodicly , better to lose a little work then all :P nice find tho kaalus! would it be better to play in lower settings for now?

  3. max
    Posted September 4, 2012 at 02:48 | Permalink | Reply

    Was this memory leak the cause of the freezes, and by extension will the freezes be fixed

    • Posted September 4, 2012 at 09:50 | Permalink | Reply

      The freezes were caused by something else and they are fixed as well.

      • max
        Posted September 4, 2012 at 21:14 | Permalink | Reply

        So both will be fixed in the repair patch?

        • Posted September 4, 2012 at 21:56 | Permalink

          Yep, freezes and memory leak. And you’ll get some new features as well.

        • jakeymacaroni
          Posted September 5, 2012 at 00:45 | Permalink

          Kaalus will one of the new features, the ones you just said would be in 1.16, be that feature that you said is messy in real life?

        • Posted September 5, 2012 at 03:20 | Permalink

          Yes. I’ve just finished working on it. It was quite messy in the code as well :-)

        • jakeymacaroni
          Posted September 5, 2012 at 05:38 | Permalink

          What do you mean it was messy in the code too?

        • Posted September 5, 2012 at 14:53 | Permalink

          I mean it was more difficult to do than I thought it will be.

        • Nait
          Posted September 5, 2012 at 21:45 | Permalink

          So what was it caused by? … The UI drawing system?

        • jakeymacaroni
          Posted September 6, 2012 at 04:17 | Permalink

          Oh okay, that’s what you meant.

  4. epic2015
    Posted September 4, 2012 at 03:07 | Permalink | Reply

    Is the memory leak the cause of the freezes?

  5. Jt
    Posted September 5, 2012 at 04:02 | Permalink | Reply

    Anybody lost one of their maps I did

Leave a Reply. No swearing please.

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s