Author Topic: Exception at game load.  (Read 3158 times)

Offline unkwntech

  • Newbie
  • *
  • Posts: 6
Exception at game load.
« on: May 03, 2010, 04:48:46 pm »
Whenever I attempt to load a saved game or start a new one, I am getting the following un-handled exception:
Code: [Select]
5/3/2010 1:30:47 PM (3.0.6.0)
-----------------------------------Application_ThreadException-----------------------------------System.NullReferenceException: Object reference not set to an instance of an object.
   at AIWar.GameMusic.Dispose() in C:\vcprojs\AIWar\DX\GameMusic.cs:line 482
   at AIWar.GameForm.RunNextCycle(Boolean DoRendering, Boolean DoScrollingAndInput) in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 334
   at AIWar.GameForm.gameLoop() in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 248
   at AIWar.GameForm.GameForm_Load(Object sender, EventArgs e) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:line 275
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
« Last Edit: May 03, 2010, 04:51:28 pm by unkwntech »

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Exception at game load.
« Reply #1 on: May 03, 2010, 04:51:39 pm »
Hi there,

Sorry for the trouble -- it's possible you have a corrupt music file, but it's also possible that you are just running into a rare bug that was in 3.060.  That has since been fixed in the latest betas, so the best suggestion is probably just to update to those (they will be going official later this week, so they're pretty stable at this point).  If you're on the steam version, you might just need to run a Verify on your files to fix it, if something is messed up with a single file.

Hope that helps!
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 unkwntech

  • Newbie
  • *
  • Posts: 6
Re: Exception at game load.
« Reply #2 on: May 03, 2010, 04:56:45 pm »
I appreciate the quick response, however I was not able to resolve the issue.  I had steam verify the files and it downloaded and reinstalled 1 file, this did not help.  I then updated to the latest beta however this also did not help.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Exception at game load.
« Reply #3 on: May 03, 2010, 05:00:21 pm »
Hmm, okay, this seems to be a really rare cross-threading issue.  I am surprised no one else has ever run into this specific one.  I'll push a new beta version in just a couple of minutes with a fix for that in there; again, apologies.  Out of curiosity, is your machine abnormally fast or slow -- unusual in some fashion in terms of CPU, RAM, or hard disk speed?  Otherwise I guess it's just weird bad luck, and either way this upcoming fix should do it, but that's pretty odd.
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 unkwntech

  • Newbie
  • *
  • Posts: 6
Re: Exception at game load.
« Reply #4 on: May 03, 2010, 05:05:22 pm »
There is nothing super-extravagant about this system but the specs are below.

AMD Athlon II X4 620 (Quad-Core) 3.0Ghz (Overclocked the stock is 2.6)
8GB DDR2
ATI Radeon X1950 XTX 512MB (GDR4) (PCI-E, the GPU is overclocked to 1Ghz)
Kingston 64GB SSD (Windows & Scratch/Swap Space)
1TB SATA (Program Files/Users Folder)

Windows 7 Professional 64-bit

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Exception at game load.
« Reply #5 on: May 03, 2010, 05:06:49 pm »
Hmm -- that is a mystery, then, as to why you'd see it when others do not.  But, no matter, that doesn't prevent us from fixing 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 x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Exception at game load.
« Reply #6 on: May 03, 2010, 05:28:23 pm »
Okay, there is now a new beta out that should resolve the issue you were having: http://arcengames.com/forums/index.php/topic,5140.0.html

If you're still having the problem after this, please post an updated error file, as it would likely be a different error.  Since you're the only one with this particular crash, I can't exactly test to make sure that the fix is effective, but it should be based on the stack trace you posted.

Hope that does 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 unkwntech

  • Newbie
  • *
  • Posts: 6
Re: Exception at game load.
« Reply #7 on: May 03, 2010, 05:30:38 pm »
Awesome this seems to have resolved the issue.

Thanks for the update.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Exception at game load.
« Reply #8 on: May 03, 2010, 05:32:27 pm »
Excellent!  My pleasure.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!