April 25, 2017, 03:23:04 PM

Author Topic: Game Crashing During Launch  (Read 397 times)

Ulta

  • Newbie
  • *
  • Posts: 1
    • View Profile
Game Crashing During Launch
« on: December 24, 2016, 08:12:30 PM »
Hi,

When I launch the game, the game crashes before the game window appears. Here is the crash log.

Code: [Select]
////////////////////////////////////////////////////////////////
    Date: 12/24/2016 11:01:35 PM
Assembly: Gnomoria.exe
 Version: 1.0.0.0
   World:
 Message: Error loading "Cursors\Horizontal".
////////////////////////////////////////////////////////////////
   at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
   at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject)
   at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName)
   at Game.GUI.Controls.Skin.Init()
   at Game.GUI.Controls.Manager.SetSkin(Skin skin)
   at Game.GUI.Controls.Manager.Initialize()
   at Game.GUI.GuiManager.Initialize()
   at Game.GUI.GuiManager..ctor()
   at Game.GnomanEmpire.Initialize()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at A.cebc1c67c4a164a49b1c279b0006957be.c49a93168dc3d77742f5742786a5b60b9(String[] c51864dddd6353b79e1a34e131a62f09a)
////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////
    Date: 12/24/2016 11:01:35 PM
Assembly: Gnomoria.exe
 Version: 1.0.0.0
   World:
 Message: The process cannot access the file 'C:\Users\Name\AppData\Local\Temp\tmp8CA.tmp' because it is being used by another process.
////////////////////////////////////////////////////////////////
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Game.GUI.Controls.CursorReader.Read(ContentReader input, Cursor existingInstance)
   at Microsoft.Xna.Framework.Content.ContentReader.InvokeReader[T](ContentTypeReader reader, Object existingInstance)
   at Microsoft.Xna.Framework.Content.ContentReader.ReadObjectInternal[T](Object existingInstance)
   at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
   at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
////////////////////////////////////////////////////////////////

They both happen, which leads me to suspect the first is caused by the second. After each time it fails to launch, I check which processes are using the tmp file with tasklist /m and I always end up with nothing. I cannot check before launch since it always uses/generates a random tmp file. My only guess is that it could be something in launch trying to access this file multiple times.

Thanks in advance!

admanter

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Game Crashing During Launch
« Reply #1 on: January 04, 2017, 07:16:11 AM »
Reading the error carefully it looks like its trying to delete the file.
Clearing your temp files may help.

You may need to look up this error in regards to the Microsoft Xna Framework.

I assume you're running windows 10? Try compatibility mode on the application.

If that fails, see if you can find issues and workarounds related to the Xna framework and windows 10.
« Last Edit: January 12, 2017, 11:46:39 AM by admanter »