Author Topic: Unhandled Execptions  (Read 4009 times)

Offline Cinth

  • Core Member Mark II
  • *****
  • Posts: 2,527
  • Resident Zombie
Unhandled Execptions
« on: July 20, 2012, 03:50:16 am »
 :-\ These buggers have been cropping up with the last few updates.  Not exactly sure what in the blue devil it could be... Maybe the AI is hacking my machine for a change lol.
Quote from: keith.lamothe
Opened your save. My computer wept. Switched to the ST planet and ship icons filled my screen, so I zoomed out. Game told me that it _was_ totally zoomed out. You could seriously walk from one end of the inner grav well to the other without getting your feet cold.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Unhandled Execptions
« Reply #1 on: July 20, 2012, 09:28:56 am »
Those are out of memory exceptions, is this a particularly large game (high caps, lots of planets, otherwise lots of ships, etc)?  Thanks :)
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 Cinth

  • Core Member Mark II
  • *****
  • Posts: 2,527
  • Resident Zombie
Re: Unhandled Execptions
« Reply #2 on: July 20, 2012, 01:23:06 pm »
120 planet + 16 HW + Normal caps. I was fielding about 10k ships. Normally under these settings, my computer would crawl (slide show) but chug through the melee. Now with the last few updates its been tossing exceptions.
Quote from: keith.lamothe
Opened your save. My computer wept. Switched to the ST planet and ship icons filled my screen, so I zoomed out. Game told me that it _was_ totally zoomed out. You could seriously walk from one end of the inner grav well to the other without getting your feet cold.

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
Re: Unhandled Execptions
« Reply #3 on: July 20, 2012, 01:34:51 pm »
120 planet + 16 HW + Normal caps. I was fielding about 10k ships. Normally under these settings, my computer would crawl (slide show) but chug through the melee. Now with the last few updates its been tossing exceptions.


Ah, 16 HWs, that would do it. I still think that the number of homeworld players should be allowed to have in conquest mode should be capped at 8. There is a reason why the game does not allow more than 8 human players after all. It should still offer a choice of 16 planets, but stop you from selecting more once you get to 8 total by all players. Or at least, you should document that >8 total homeworld across all players in conquest mode is not officially supported, and you are on your own if you do so.


Still, it might be worth looking into why it seems to be crashing rather than (presumably) giving the GC a workout ans slowing things down like previously in his/her case.

Offline Hearteater

  • Core Member
  • *****
  • Posts: 2,334
Re: Unhandled Execptions
« Reply #4 on: July 20, 2012, 01:40:15 pm »
16 HW + Normal Caps is unlikely to be winnable due to memory issues.  If I recall correctly, even on Low Caps you can have problems.  I believe Ultra-Low Caps was added for this specific reason.  Not to mention that at 16 HWs you actually have an issue of not getting all your ship types due to capping out on the UI for ships.

Offline Cinth

  • Core Member Mark II
  • *****
  • Posts: 2,527
  • Resident Zombie
Re: Unhandled Execptions
« Reply #5 on: July 20, 2012, 01:48:13 pm »
His case :) Anyway. I play with what you all would consider "high" AI Progress.  120 worlds wiped clean is no joke and late game without the extra room in the caps I would get run over (even with high caps).  And throwing 10k ships into an exo is very fun to watch :) Also multi-HW since my choice ships tend to have a very low cap.

Quote from: keith.lamothe
Opened your save. My computer wept. Switched to the ST planet and ship icons filled my screen, so I zoomed out. Game told me that it _was_ totally zoomed out. You could seriously walk from one end of the inner grav well to the other without getting your feet cold.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Unhandled Execptions
« Reply #6 on: July 20, 2012, 01:51:53 pm »
I'm putting in a memory optimization for the next version that may help :)  I've been adding some new ship types for the expansion and that does push the memory footprint up a bit.  Not a lot, but if you're already on the razor's edge... ;)  Anyway, this should compensate for that.
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 Cinth

  • Core Member Mark II
  • *****
  • Posts: 2,527
  • Resident Zombie
Re: Unhandled Execptions
« Reply #7 on: July 20, 2012, 01:59:26 pm »
Well... I do have a bunch of mem lol.... 24 GB RAM and 24 GB swap file ... My system is very beefy and purpose built for gaming. 
Quote from: keith.lamothe
Opened your save. My computer wept. Switched to the ST planet and ship icons filled my screen, so I zoomed out. Game told me that it _was_ totally zoomed out. You could seriously walk from one end of the inner grav well to the other without getting your feet cold.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Unhandled Execptions
« Reply #8 on: July 20, 2012, 02:01:48 pm »
Well... I do have a bunch of mem lol.... 24 GB RAM and 24 GB swap file ... My system is very beefy and purpose built for gaming.
It's a 32 bit application, meaning it can use 4 GB absolute tops and generally more like 1.5 to 2 due to how much of the address space is reserved by the OS.

And as a Unity game its actual managed heap max size is closer to 800MB.  So even if you had a terabyte of RAM it wouldn't help :)
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: Unhandled Execptions
« Reply #9 on: July 20, 2012, 02:03:21 pm »
Well... I do have a bunch of mem lol.... 24 GB RAM and 24 GB swap file ... My system is very beefy and purpose built for gaming.

Sadly, that won't help much.

Thanks to a limitation of the underlying engine that they use (Unity 3D), the game caps out at around 800MB, and is likely to crash if you try to push it too much beyond that. Yes, it is as stupid as it sounds, but short of moving to another game engine, there isn't much they can do about but continue to pester the Unity 3D guys.

EDIT: Ninja'd

Offline Hearteater

  • Core Member
  • *****
  • Posts: 2,334
Re: Unhandled Execptions
« Reply #10 on: July 20, 2012, 02:42:59 pm »
Is it a Mono limitation or a Unity limitation?  I thought it was Mono, and since Unity uses Mono that short coming gets inherited.

Offline Cinth

  • Core Member Mark II
  • *****
  • Posts: 2,527
  • Resident Zombie
Re: Unhandled Execptions
« Reply #11 on: July 20, 2012, 02:45:26 pm »
Running a SB version of the seed I was playing last night but with Low caps... and yeah.. after 75 minutes of play, I'm sitting at ~915k for mem use.

The whole 32 bit ap thing I should have known better ... 6 years as an electronics tech and working on my BSEE ... ::)
Quote from: keith.lamothe
Opened your save. My computer wept. Switched to the ST planet and ship icons filled my screen, so I zoomed out. Game told me that it _was_ totally zoomed out. You could seriously walk from one end of the inner grav well to the other without getting your feet cold.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Unhandled Execptions
« Reply #12 on: July 20, 2012, 02:48:48 pm »
Is it a Mono limitation or a Unity limitation?  I thought it was Mono, and since Unity uses Mono that short coming gets inherited.
I'm pretty sure Mono would let you change the max heap size.  I know Java's JVM does, having worked with a lot in the past.  So I'm assuming Unity could squeeze at least something more out in that regard, but we can't get at the runtime setting for it.
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 Cinth

  • Core Member Mark II
  • *****
  • Posts: 2,527
  • Resident Zombie
Re: Unhandled Execptions
« Reply #13 on: July 20, 2012, 11:54:53 pm »
Just a quickie here... My sandbox version at about 8 hours now (about half the map is controlled be me) and mem used hovers around a GB .. game slows up a good bit at this point but no exceptions yet.

I'm wondering if it was just the combination of doing my first 7/7 game with normal caps and my setup that blew it out the water.
Quote from: keith.lamothe
Opened your save. My computer wept. Switched to the ST planet and ship icons filled my screen, so I zoomed out. Game told me that it _was_ totally zoomed out. You could seriously walk from one end of the inner grav well to the other without getting your feet cold.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Unhandled Execptions
« Reply #14 on: July 21, 2012, 12:07:21 am »
Yea, it can actually handle a fair bit.  The memory usage you can see from task-manager or whatever is actually the managed-heap usage (the part capped at around 800MB) plus unmanaged memory (where Unity keeps almost all the texture data), so it can actually get into the 1.2GB - 1.3GB range before things die, depending on circumstances.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!