#430

New

settings.xml file gets corrupted each time I try to start a new game

Reported by Ivano Scoppetta on OCTGN · 20/11/2013 17:12:16

Assigned to:
jods
Priority:
Normal
Status:
New
Category:
None
Version:
0.3.1.5
Issue type:
Bug

Each time I click on the green Start button in the ‘play’ tab I get the following popup message:

<<there was file an config error reading your>>

After that, if I close and start OCTGN, it crashes at the very startup.
The only way is to delete the file settings.xml in the \OCTGN\Config Folder (OCTGN will create a new one), but the new settings.xml File will get corrupted as well as soon as I try to start a game (so, it’s an endless loop).

I read a bit into the logs and here’s the interesting stuff:

WARN 2013-11-20 18:03:37,402 3.1.109.244 1 Octgn.Library.SimpleConfig [(null)] – ReadValue Error Polenter.Serialization.Core.DeserializingException: An error occured during the deserialization. Details are in the inner exception. —→ System.ArgumentNullException: Value cannot be null.

Parameter name: property
at Polenter.Serialization.Deserializing.ObjectFactory.CreateObject(Property property)
at Polenter.Serialization.Deserializing.ObjectFactory.createObjectFromDictionaryProperty(DictionaryProperty property)
at Polenter.Serialization.Deserializing.ObjectFactory.CreateObject(Property property)
at Polenter.Serialization.SharpSerializer.Deserialize(Stream stream)
- End of inner exception stack trace -
at Polenter.Serialization.SharpSerializer.Deserialize(Stream stream)
at Octgn.Library.SimpleConfig.ReadValue[T](String valName, T def) in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn.Library\SimpleConfig.cs:line 132
WARN 2013-11-20 18:03:37,405 3.1.109.244 1 Octgn.Library.SimpleConfig [(null)] – SReadValue Error: Couldn’t delete the corrupt config file.
System.IO.IOException: The process cannot access the file ‘C:\Users\Ivano\Documents\Octgn\Config\settings.xml’ because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at Octgn.Library.SimpleConfig.ReadValue[T](String valName, T def) in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn.Library\SimpleConfig.cs:line 167
INFO 2013-11-20 18:03:37,407 3.1.109.244 1 Octgn.OctgnApp [(null)] – LOADED ASSEMBLY: Octgn.DataNew, Version=3.1.109.244, Culture=neutral, PublicKeyToken=null – C:\Users\Ivano\Documents\OCTGN\OCTGN\Octgn.DataNew.dll

Fact is, there is no (apparent) other process accessing the settings.xml file.

Attachments

No attachment has been uploaded, yet.


Loading comments...