# Severe memory leak when opening event keys 1 at a time

**URL:** <https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036>\
**Category:** Bug Reports\
**Created:** [March 13, 2018, 2:39pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036 "2018-03-13T14:39:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mithran](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/mithran/32/18064_2.png) [@Mithran](https://community.gemsofwar.com/u/Mithran)\
**Post date:** [March 13, 2018, 2:39pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/1 "2018-03-13T14:39:33Z")

</div>

**Platform, device, and operating system**  
PC/Mobile, Steam, latest version. Windows 7 x64. But others below corroborate the problem on other versions.

**What you were expecting to happen, and what actually happened?**  
I expected the game to be able to be able to handle flipping through some chest animations and rewards screens while trying to conserve keys. Instead, opening a chest started to take longer and longer, eventually freezing for several seconds at a time and crashing if pressed hard enough.

**How often does this happen? When did it begin happening?**  
Every time. Trivially repeatable.

**What are the steps to make it happen again?**  
Enter event chest screen. Choose one key. Immediately start clicking to skip the animation and click the left side of the screen to close the subsequent rewards overlay. Might only happen with event keys.

Note that so far, this only seems to happen with event keys. Could not reproduce the issue with 50 gold keys opened one at a time. Could not reproduce within 50 gem keys opened one by one. Reproduced within 20 event keys, several times

**Do you have any screenshots or video you want to share with us so we can see the problem? Attach them to your post!**

[![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/7/7/7786b4c5bb9ac8122e609e37dc1965168f215a89.jpeg "Gems of War - Chest Memory Leak") ](https://www.youtube.com/watch?v=Uamz7s6gcbE)

After noticeable lag on event keys:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/b/a/badfcbf92cab6da2079560942c4615c53722159b.png)

On fresh restart:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/c/2/c2421e6121cfa4b372ed951223e5e4c40a3727bb.png)

On retest, I noticed the memory started ballooning at about the 15 key mark, then _severely_ spiked beyond that. This time, I captured the memory spike in real time and overlayed it on the video.

[![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/b/e/be096a624b386e57f5471e580542c328fb1583f5.jpeg "Gems of War - Event Key Hard Crash") ](https://www.youtube.com/watch?v=_nk_FsVRNG8)

And heres my final retest. Went to low quality graphics before starting and did a fresh restart. You stop spiraling toward a crash if you back out of the window and reenter the chest screen after about 10 chests or so, but your memory footprint continues to increase.

[![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/c/1/c10de4450546bee647cfc821b110a05a027bfe43.jpeg "Gems of War - Event Key memory leak") ](https://www.youtube.com/watch?v=cXina2NCZkQ)

Well, so much for being conservative. I’ve lost count of how many event keys, but it is at least a few hundred. This account (not my main account) has now pulled 8 copies of Jarl and 3 (additional duplicate) Jotnar without seeing the new legendary. I’m fairly sure the two aren’t related, but…

---

<div class="post-metadata">

**Author:** ![Santandrix](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/santandrix/32/68758_2.png) [@Santandrix](https://community.gemsofwar.com/u/Santandrix)\
**Post date:** [March 13, 2018, 2:44pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/2 "2018-03-13T14:44:43Z")

</div>

I pulled 34 individually and felt like I had no luck, so used up my last 50 event keys and pulled 3.  
I have no luck with the one key at a time do ill just do my chest openings in bulk.

---

<div class="post-metadata">

**Author:** ![Mithran](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/mithran/32/18064_2.png) [@Mithran](https://community.gemsofwar.com/u/Mithran)\
**Post date:** [March 13, 2018, 2:47pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/3 "2018-03-13T14:47:56Z")

</div>

> [@Santandrix](#):
>
> I pulled 34 individually and felt like I had no luck, so used up my last 50 event keys and pulled 3.

No crash, though? I’m consistently getting a very clear memory leak that balloons out of control past 10-15 consecutive single specifically _event_ chests. Almost certain I’ve opened more than this consecutively on other weeks, but I’m having this issue now.

For further info, I’m on Steam and I’ve verified the integrity of the game cache and I’ve restarted several times (clearly, because it keeps crashing).

---

<div class="post-metadata">

**Author:** ![Santandrix](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/santandrix/32/68758_2.png) [@Santandrix](https://community.gemsofwar.com/u/Santandrix)\
**Post date:** [March 13, 2018, 2:53pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/4 "2018-03-13T14:53:07Z")

</div>

You know what, I’m on ps4 and come to think of it, it did start slowing down the more I went.  
Also when upgrading sentinels I did it super fast and by the last one I had a never ending loading symbol so I had to restart the application.

It has been rather buggy.

---

<div class="post-metadata">

**Author:** ![Grundulum](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@Grundulum](https://community.gemsofwar.com/u/Grundulum)\
**Post date:** [March 13, 2018, 3:18pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/5 "2018-03-13T15:18:38Z")

</div>

On iOS this is repeatable and irritating. Thank you for showing what the immediate cause of the crashes is. Now it’s on the devs to figure out why the memory usage more than doubles after opening 10 event keys.

---

<div class="post-metadata">

**Author:** ![Stan](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/stan/32/29888_2.png) [@Stan](https://community.gemsofwar.com/u/Stan)\
**Post date:** [March 13, 2018, 3:23pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/6 "2018-03-13T15:23:56Z")

</div>

I experienced exactly the same thing on PS4 yesterday but have no way to monitor memory usage (as far as I know). I had slow-down and lag after about 10 or 15 keys, finally crashing before 20. When I restarted, it seemed to run better and I managed to open another 20. Once I was down to 50, I began opening in groups of 10 and had no troubles after that.

---

<div class="post-metadata">

**Author:** ![vanyel](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/vanyel/32/32071_2.png) [@vanyel](https://community.gemsofwar.com/u/vanyel)\
**Post date:** [March 13, 2018, 3:59pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/7 "2018-03-13T15:59:11Z")

</div>

Though I’ve never gone to crash, I’ve also experienced this phenomenon on android but it usually starts slowing down noticeably sooner than 10 keys.

---

<div class="post-metadata">

**Author:** ![TheDragonSeoul](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/thedragonseoul/32/17754_2.png) [@TheDragonSeoul](https://community.gemsofwar.com/u/TheDragonSeoul)\
**Post date:** [March 13, 2018, 5:01pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/8 "2018-03-13T17:01:10Z")

</div>

Console version, here (Xbox One).

While opening Event Chests in lots of ten, I noticed significant lag between each and every “roll of the die.”

What was also noticeable was the significant amount of resources spent to simply acquire one Hyndla Frostcrown. ☹

Like, _ **an unusually inordinate amount** _.

---

<div class="post-metadata">

**Author:** ![mld-81](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/mld-81/32/63170_2.png) [@mld-81](https://community.gemsofwar.com/u/mld-81)\
**Post date:** [March 13, 2018, 5:05pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/9 "2018-03-13T17:05:17Z")

</div>

I’ve also had this problem on PS4, I thought it might just be me. Opening keys 1 at a time gradually slows down and a longer loading screen shows. After a while it crashed the PS4 and I had to restart the game. To overcome it, I have had back out to the main screen of the game after opening a number of keys then go back in again sorts it, not good nevertheless.

---

<div class="post-metadata">

**Author:** ![einsteinle](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@einsteinle](https://community.gemsofwar.com/u/einsteinle)\
**Post date:** [March 14, 2018, 1:12am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/10 "2018-03-14T01:12:09Z")

</div>

I too noticed this problem when opening keys on the Xbox One.

The problem is exacerbated by the fact that you your options of opening chests are in batches of 1, 50, or 200 (seriously, can this PLEASE be fixed for gem chests and event chests, at least).

Being the key conservationist that I am, there I was opening event chests. One. At. A. Time. 114 guild keys and countless lags/near-crashes later, I finally pulled Hyndla. Don’t know which was more aggravating, the number of keys it took or the time that it took to open them. 🙄

---

<div class="post-metadata">

**Author:** ![Mithran](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/mithran/32/18064_2.png) [@Mithran](https://community.gemsofwar.com/u/Mithran)\
**Post date:** [March 14, 2018, 1:50am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/11 "2018-03-14T01:50:17Z")

</div>

Updated the category to Bug Reports (apparently this is a thing now, since… yesterday it looks like?) and added a bit more info.

---

<div class="post-metadata">

**Author:** ![Saltypatra](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/saltypatra/32/59750_2.png) [@Saltypatra](https://community.gemsofwar.com/u/Saltypatra)\
**Post date:** [March 14, 2018, 2:14am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/12 "2018-03-14T02:14:28Z")

</div>

Thank you for letting us know. I will pass this on.

---

<div class="post-metadata">

**Author:** ![Drathas](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/drathas/32/7344_2.png) [@Drathas](https://community.gemsofwar.com/u/Drathas)\
**Post date:** [March 14, 2018, 3:39am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/13 "2018-03-14T03:39:43Z")

</div>

I’ll add that I’ve experienced this on iOS as well.

---

<div class="post-metadata">

**Author:** ![NowayJoe2Go](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/nowayjoe2go/32/14045_2.png) [@NowayJoe2Go](https://community.gemsofwar.com/u/NowayJoe2Go)\
**Post date:** [March 14, 2018, 4:36am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/14 "2018-03-14T04:36:08Z")

</div>

I’ve used 450 keys so far and have not pulled the Legend. @sirrian @Nimhain You gonna tell me this is RNG? Your RNG statss engine is clearly bugged if this is considered “normal” for your game. I should have pulled 1 or 2 now based on the odds in the API.

NowayJoe2Go

---

<div class="post-metadata">

**Author:** ![Grundulum](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@Grundulum](https://community.gemsofwar.com/u/Grundulum)\
**Post date:** [March 14, 2018, 4:58am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/15 "2018-03-14T04:58:56Z")

</div>

No, it’s not normal. You can see the odds, so you know how not-normal it is. It is, of course, **possible** to be as “lucky” as you have been, but it is far from normal. (@Mithran pulled the new legendary in three event keys, so it’s also possible to be equally lucky but with a happy outcome. His alt account got three Jotnars in 300 event keys chasing the new legendary. Both of these are very low-probability outcomes.)

---

<div class="post-metadata">

**Author:** ![NowayJoe2Go](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/nowayjoe2go/32/14045_2.png) [@NowayJoe2Go](https://community.gemsofwar.com/u/NowayJoe2Go)\
**Post date:** [March 14, 2018, 5:03am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/16 "2018-03-14T05:03:12Z")

</div>

3 event keys about a 5% chance, so possible. 450 event keys for zip is broken. That’s not even on the “far tail of the probably curve”, it’s **a totally unacceptable result for a Pay to Win game like Gems of War** …

NowayJoe2Go

---

<div class="post-metadata">

**Author:** ![Mithran](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/mithran/32/18064_2.png) [@Mithran](https://community.gemsofwar.com/u/Mithran)\
**Post date:** [March 14, 2018, 5:31am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/17 "2018-03-14T05:31:53Z")

</div>

> [@NowayJoe2Go](#):
>
> That’s not even on the “far tail of the probably curve”,

Cumulative probability of hitting a success at 1.2% chance each in 450 trials is 99.56%, so about a 0.44% chance of hitting zero successes. Assuming nothing is actually broken, expectation would be that if 250 players all spent 450 event keys each, one of them would not have gotten the new legendary. Looks like today is your (un)lucky day. Incidentally, 3 Jotnar in 300 keys is just slightly (un)luckier, at about ~0.3% cumulative probability. Yeah, it sucks that you aren’t even _that_ much of an outlier in a system that is _working as intended_, but that doesn’t mean that it isn’t working as intended.

My remark was more at the fact that I wasn’t sure if the constant reseeding of the RNG by opening 1 chest at a time or crashing influencing when I was opening the chests and therefore the seed I was getting was affecting the outcome. To which: yes, it probably was, but no, not in a way that would make it “not random”, just in a sense that I probably would have gotten different “random” pulls (possibly still not the ones I wanted, but possibly yes) had I not been constantly crashing and insisting on opening one key at a time and forcing the crash.

---

<div class="post-metadata">

**Author:** ![Dorgath](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Dorgath](https://community.gemsofwar.com/u/Dorgath)\
**Post date:** [March 14, 2018, 3:12pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/18 "2018-03-14T15:12:14Z")

</div>

I got it in 7 event keys on iPhone (which means I didn’t run into the memory leak either). Take it as you will…

---

<div class="post-metadata">

**Author:** ![NowayJoe2Go](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/nowayjoe2go/32/14045_2.png) [@NowayJoe2Go](https://community.gemsofwar.com/u/NowayJoe2Go)\
**Post date:** [March 15, 2018, 6:03am UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/19 "2018-03-15T06:03:53Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/9/6/96fa4a01d6b3811ac2a6e464ff9012d6e00013da.jpg)

@Mithran @cyrup

---

<div class="post-metadata">

**Author:** ![Slypenslyde](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/slypenslyde/32/30373_2.png) [@Slypenslyde](https://community.gemsofwar.com/u/Slypenslyde)\
**Post date:** [April 2, 2018, 2:24pm UTC](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036/20 "2018-04-02T14:24:35Z")

</div>

Can confirm on iOS, crashed opening event keys and was up to 5-8s per opening today.

[Next page](https://community.gemsofwar.com/t/severe-memory-leak-when-opening-event-keys-1-at-a-time/37036.md?page=2)
