& Character In MOTD Causes Loading To Fail

Warlord shared this bug 5 years ago
Outdated

After changing the Message of The Day on my server, suddenly the world failed to load. I had changed it and included "&" in one of the sentences. This was enough to cause the entire server loading to fail.


From reading up a bit it seems & is a special character in XML, so this might not be a bug after all.


Error msgs from log:


2018-09-18 09:40:58.302 - Thread: 1 -> ERROR: Exception during objectbuilder read! (xml): MyObjectBuilder_Checkpoint

2018-09-18 09:40:58.312 - Thread: 1 -> Exception occured: System.InvalidOperationException: There is an error in the XML document. ---> System.Xml.XmlException: An error occurred while parsing EntityName. Line 18832, position 54.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)

at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)

at System.Xml.XmlTextReaderImpl.SkipPartialTextValue()

at System.Xml.XmlTextReaderImpl.Read()

at System.Xml.XmlReader.SkipSubtree()

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read4768_MyObjectBuilder_Checkpoint(Boolean isNullable, Boolean checkType)

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read6044_MyObjectBuilder_Checkpoint()

--- End of inner exception stack trace ---

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

at VRage.ObjectBuilders.MyObjectBuilderSerializer.DeserializeXML(Stream reader, MyObjectBuilder_Base& objectBuilder, Type builderType, Dictionary`2 typeOverrideMap)

2018-09-18 09:40:58.312 - Thread: 1 -> InnerException:

2018-09-18 09:40:58.312 - Thread: 1 -> Exception occured: System.Xml.XmlException: An error occurred while parsing EntityName. Line 18832, position 54.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)

at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)

at System.Xml.XmlTextReaderImpl.SkipPartialTextValue()

at System.Xml.XmlTextReaderImpl.Read()

at System.Xml.XmlReader.SkipSubtree()

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read4768_MyObjectBuilder_Checkpoint(Boolean isNullable, Boolean checkType)

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read6044_MyObjectBuilder_Checkpoint()

2018-09-18 09:40:58.312 - Thread: 1 -> Failed to deserialize file 'E:\space1141\Saves\PVP_World\Sandbox.sbc'

2018-09-18 09:40:58.313 - Thread: 1 -> This world cannot be loaded. It has been created in a newer version of the game or in a different branch of the game. You can change the branch, before launching the game, in game properties.

2018-09-18 09:40:58.314 - Thread: 1 -> MySandboxGame.Initialize() - END

2018-09-18 09:40:58.330 - Thread: 1 -> Timer Frequency: 10000000

2018-09-18 09:40:58.330 - Thread: 1 -> Ticks per frame: 166667

2018-09-18 09:40:58.331 - Thread: 1 -> Exiting..

2018-09-18 09:40:58.344 - Thread: 1 -> MySandboxGame.UnloadData() - START

2018-09-18 09:40:58.400 - Thread: 1 -> MySandboxGame.UnloadData() - END

2018-09-18 09:41:02.057 - Thread: 16 -> MyDefinitionManager.PrepareBaseDefinitions() - END

2018-09-18 09:41:02.385 - Thread: 1 -> Network readers disposed

2018-09-18 09:41:02.387 - Thread: 1 -> Logging off Steam...

2018-09-18 09:41:02.388 - Thread: 1 -> Shutting down server...

2018-09-18 09:41:02.543 - Thread: 1 -> Done

2018-09-18 09:41:02.552 - Thread: 1 -> Steam closed

2018-09-18 09:41:02.578 - Thread: 1 -> Log Closed

Replies (3)

photo
1

What way did you set that MotD? "&" is indeed special character along with "<" and ">" and so on. But after testing it, it is being correctly saved in config file (SpaceEngineers.cfg) as "& amp;", "& lt;" and "& gt;" and are correctly loaded into the game.


What way did you edit MotD? Have you been using our DS Manager or some 3rd party program?

photo
1

Also after checking it, even if you put & directly into config, the game will run correctly (but with missing information such as MotD). After checking info from log, it is apparent that exception happened while loading file "E:\space1141\Saves\PVP_World\Sandbox.sbc". This means the world itself is corrupted in some way (Problem is with EntityName). Have you been modifying that world outside of the game in some way? But without that world, there is not much we can do about it.

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.


We will address all reported issues during future development and we will attempt to fix your issue as soon as possible. We are currently close to a Major release, which is under heavy development and this takes up a lot of our time.


Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards


Keen Software House: QA Department

Leave a Comment
 
Attach a file