# Alpha 10 Unstable Branc Memory Leak

**URL:** <https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958>\
**Category:** Previous Build Reports\
**Created:** [April 25, 2015, 10:01pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958 "2015-04-25T22:01:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![athenalras](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@athenalras](https://discourse.stonehearth.net/u/athenalras)\
**Post date:** [April 25, 2015, 10:01pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/1 "2015-04-25T22:01:24Z")

</div>

Game kept on crashing on me. Stonehearth took more than 5,000,000 mb of RAM.

Possible memory leak.

---

<div class="post-metadata">

**Author:** ![Atralane](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/atralane/32/42027_2.png) [@Atralane](https://discourse.stonehearth.net/u/Atralane)\
**Post date:** [April 25, 2015, 10:03pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/2 "2015-04-25T22:03:39Z")

</div>

Yes, it’s a memory leak. The team’s currently looking into its causes and possible solutions for longer gameplay.

---

<div class="post-metadata">

**Author:** ![athenalras](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@athenalras](https://discourse.stonehearth.net/u/athenalras)\
**Post date:** [April 25, 2015, 10:07pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/3 "2015-04-25T22:07:35Z")

</div>

Whoa, how did you respond so fast? Is this an automated messaging machine?

---

<div class="post-metadata">

**Author:** ![Minerexstacy](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@Minerexstacy](https://discourse.stonehearth.net/u/Minerexstacy)\
**Post date:** [April 25, 2015, 10:27pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/4 "2015-04-25T22:27:33Z")

</div>

was 2 minutes apart 😛

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [April 25, 2015, 10:44pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/5 "2015-04-25T22:44:52Z")

</div>

no hes probably like me and always has a discourse tab open when hes on 😛

---

<div class="post-metadata">

**Author:** ![Atralane](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/atralane/32/42027_2.png) [@Atralane](https://discourse.stonehearth.net/u/Atralane)\
**Post date:** [April 25, 2015, 10:55pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/6 "2015-04-25T22:55:29Z")

</div>

_I’m always watching._

---

<div class="post-metadata">

**Author:** ![SirAstrix](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/sirastrix/32/68490_2.png) [@SirAstrix](https://discourse.stonehearth.net/u/SirAstrix)\
**Post date:** [April 26, 2015, 4:39am UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/7 "2015-04-26T04:39:48Z")

</div>

> [@athenalras](#):
>
> 5,000,000 mb of RAM

Could you share your build that has 5 terra bytes of ram? I’d be interested in how you did that.

---

<div class="post-metadata">

**Author:** ![Aviex](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/aviex/32/51813_2.png) [@Aviex](https://discourse.stonehearth.net/u/Aviex)\
**Post date:** [April 26, 2015, 4:46am UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/8 "2015-04-26T04:46:30Z")

</div>

> [@8BitCrab](#):
>
> no hes probably like me and always has a discourse tab open when hes on 😛

Nerd.

> [@"SirAstrix](#):
>
> Could you share your build that has 5 terra bytes of ram? I’d be interested in how you did that.

Magic. obviously 1,25TB sticks, 4 of em easy

But Yeah on my 16gb desktop I’ve seen stonehearth get up into the 11GB ranges

---

<div class="post-metadata">

**Author:** ![athenalras](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@athenalras](https://discourse.stonehearth.net/u/athenalras)\
**Post date:** [April 26, 2015, 6:30am UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/9 "2015-04-26T06:30:53Z")

</div>

Whoops. Meant to say 5+ gb in RAM. Wish I had a laptop from the future though. Didn’t realize ‘kb’ to ‘mb’ would devastate my statement so completely.

---

<div class="post-metadata">

**Author:** ![SirAstrix](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/sirastrix/32/68490_2.png) [@SirAstrix](https://discourse.stonehearth.net/u/SirAstrix)\
**Post date:** [April 26, 2015, 12:16pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/10 "2015-04-26T12:16:10Z")

</div>

I wa just messing with you. I worked IT for a bit and saw that same mistake many a times.

---

<div class="post-metadata">

**Author:** ![Xard](https://avatars.discourse-cdn.com/v4/letter/x/cab0a1/32.png) [@Xard](https://discourse.stonehearth.net/u/Xard)\
**Post date:** [April 28, 2015, 9:35pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/11 "2015-04-28T21:35:29Z")

</div>

I was working on a Program for a firm, that releases the Memory for servers.  
It works for every game Stonehearth to without lag.

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/f/a/fa72284f8c2472f6b127d4170abd8c5e2ee3b180.gif)

If i was allowed to share it i would. 😄

---

<div class="post-metadata">

**Author:** ![Wiese2007](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/wiese2007/32/15946_2.png) [@Wiese2007](https://discourse.stonehearth.net/u/Wiese2007)\
**Post date:** [April 29, 2015, 2:27am UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/12 "2015-04-29T02:27:34Z")

</div>

perhaps you should also give this to my firm 😂 our devs produce with every release some very epic fails -.- xD

---

<div class="post-metadata">

**Author:** ![Xard](https://avatars.discourse-cdn.com/v4/letter/x/cab0a1/32.png) [@Xard](https://discourse.stonehearth.net/u/Xard)\
**Post date:** [April 29, 2015, 3:36pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/13 "2015-04-29T15:36:03Z")

</div>

It would help a lot to make an Automatic memory release in the game, that has a restriction of memory.

In this Gif i recorded I told NovaxMM(Prototype) program that the it should make Stonehearth.exe max use 10000KB (1MB) memory every 15 sec. I have experience that giving it an max of 100000 KB (100MB) memory every 15 sec, Is much better, and the memory will not spike as much. 😄

---

<div class="post-metadata">

**Author:** ![Xard](https://avatars.discourse-cdn.com/v4/letter/x/cab0a1/32.png) [@Xard](https://discourse.stonehearth.net/u/Xard)\
**Post date:** [April 29, 2015, 4:00pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/14 "2015-04-29T16:00:27Z")

</div>

The Stonehearth.exe will not stop, taking your memory until it is depleted.  
Over night it can easy take 11 GB of Ram, if not much more.  
Lua does not need all that memory, its Influenced from C++, CLU SNOBOL,Scheme, and Modula.  
Its an optimization problem that, Lua is not able to release because mainly Lua collection stacks it.  
Lua collectgarbage can be used must of times to resolve any memory issues.  
😌

(Update: Bad spelling)

---

<div class="post-metadata">

**Author:** ![Aviex](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/aviex/32/51813_2.png) [@Aviex](https://discourse.stonehearth.net/u/Aviex)\
**Post date:** [April 30, 2015, 3:39am UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/15 "2015-04-30T03:39:34Z")

</div>

Oh 11GB was after 3-4hrs…  
Not all night

---

<div class="post-metadata">

**Author:** ![Atralane](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/atralane/32/42027_2.png) [@Atralane](https://discourse.stonehearth.net/u/Atralane)\
**Post date:** [April 30, 2015, 4:04am UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/16 "2015-04-30T04:04:31Z")

</div>

So wait, is there still a major memory leak issue? I thought the recent update eliminated most of that for now. I haven’t played for a few weeks due to schoolwork, so I haven’t been able to check it myself.

---

<div class="post-metadata">

**Author:** ![SirAstrix](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/sirastrix/32/68490_2.png) [@SirAstrix](https://discourse.stonehearth.net/u/SirAstrix)\
**Post date:** [April 30, 2015, 5:56am UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/17 "2015-04-30T05:56:19Z")

</div>

I can’t confirm this was ever a problem. My game never uses more than 4gb of ram, even if I want it to.

---

<div class="post-metadata">

**Author:** ![Wiese2007](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/wiese2007/32/15946_2.png) [@Wiese2007](https://discourse.stonehearth.net/u/Wiese2007)\
**Post date:** [April 30, 2015, 2:42pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/18 "2015-04-30T14:42:42Z")

</div>

Do you have activate x64?

---

<div class="post-metadata">

**Author:** ![Ponder](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/ponder/32/43538_2.png) [@Ponder](https://discourse.stonehearth.net/u/Ponder)\
**Post date:** [April 30, 2015, 2:55pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/19 "2015-04-30T14:55:20Z")

</div>

If anyone can reproduce this, I would love to have your save to see if we can fix it in house! Thanks.

---

<div class="post-metadata">

**Author:** ![devoderek](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/devoderek/32/15730_2.png) [@devoderek](https://discourse.stonehearth.net/u/devoderek)\
**Post date:** [April 30, 2015, 3:44pm UTC](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958/20 "2015-04-30T15:44:04Z")

</div>

I run x64 And never have any issues! I get the stutter when my hearthings have to many jobs going on!(tony was talking about it on the stream) But i never have issues with to much mem being used!

[Next page](https://discourse.stonehearth.net/t/alpha-10-unstable-branc-memory-leak/11958.md?page=2)
