Author Topic: Too many heaps  (Read 2044 times)

Offline The Hunter

  • Full Member Mark II
  • ***
  • Posts: 153
  • H/K Mk5
Too many heaps
« on: June 29, 2013, 07:42:31 pm »
I occasionally either get crash that says 'too many heaps' or something along those lines(Can't fully recall, i should have print screen'd it or something) or the game outright freezes.  :-\
I am not sure what causes it but it seems to happen completely random, sometimes can go days without it, sometimes more than once a day.  ???
Has anyone encountered this before? Ofcourse i can go save every 10 minutes to avoid losing progress, but i really want to figure it out.
« Last Edit: June 29, 2013, 07:44:58 pm by The Hunter »

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Too many heaps
« Reply #1 on: June 29, 2013, 07:55:55 pm »
The error is "too many heap sections" (iirc) and it means the managed heap isn't allowed to get more memory so the game just dies, Is this just in MP or SP too?

In the past I've figured this was just because it was totally running out, but I'm starting to wonder if maybe it's that there's enough heap available but it gets really fragmented due to lots of allocation and deallocation and allocation and deallocation, etc.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
Re: Too many heaps
« Reply #2 on: June 29, 2013, 08:03:43 pm »
Gee. At this rate, you might get better luck hex editing in the better GC implementation(s) of newer mono version than waiting for Unity to update their Mono version (and fix the 4.0 loading time bugs)  ;D

Offline The Hunter

  • Full Member Mark II
  • ***
  • Posts: 153
  • H/K Mk5
Re: Too many heaps
« Reply #3 on: June 29, 2013, 09:28:54 pm »
The error is "too many heap sections" (iirc) and it means the managed heap isn't allowed to get more memory so the game just dies, Is this just in MP or SP too?

In the past I've figured this was just because it was totally running out, but I'm starting to wonder if maybe it's that there's enough heap available but it gets really fragmented due to lots of allocation and deallocation and allocation and deallocation, etc.

Both, i don't think it's running out. We have played very ship/everything count intense games while spamming cheats all over the place for fun without it crashing for me in this way, while in a normal simple game it did crashed. And in another game it did not, it's weird.