Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008186opensim[REGION] OpenSim Corepublic2017-06-08 03:282017-06-09 03:03
Reporteraiaustin 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformPCOSWindowsOS Version10
Product Versionmaster (dev code) 
Target Versionmaster (dev code)Fixed in Version 
Summary0008186: Save IAR ... [SceneObjectSerializer]: Error while parsing element Media in Shape property of object
DescriptionWhen archiving avatar inventory using save iar I have seen this error on some elements. I have not noticed this in previous archiving. All the items appear to be simple single prim items where the Texture Media is set on one face.

Could recent changes have caused this issue? Using latest dev master at opensim-0.9.0-1470-g02b51b8 (2017-06-07).
Additional Information11:20:37 - [SceneObjectSerializer]: Error while parsing element Media in Shape property of object Screen - Media on a Prim - 10mx7.5m 77cb445e-671d-4353-a7ec-90ae2f73efea System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlReader.MoveToContent()
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.ReadXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1592
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.FromXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1582
   at OpenSim.Region.Framework.Scenes.Serialization.SceneObjectSerializer.ProcessShpMedia(PrimitiveBaseShape shp, XmlReader reader) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Region\Framework\Scenes\Serialization\SceneObjectSerializer.cs:line 1366
   at OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors[NodeType](NodeType nodeToFill, Dictionary`2 processors, XmlReader xtr, Action`3 parseExceptionAction) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\Serialization\External\ExternalRepresentationUtils.cs:line 103

11:20:37 - [SceneObjectSerializer]: Parsing PrimitiveBaseShape for object part Screen - Media on a Prim - 10mx7.5m 77cb445e-671d-4353-a7ec-90ae2f73efea encountered errors in properties Media.
11:20:38 - [SceneObjectSerializer]: Error while parsing element Media in Shape property of object Media on a Prim 9fe51484-a415-4cb5-a4dd-18462c5a2b94 System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlReader.MoveToContent()
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.ReadXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1592
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.FromXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1582
   at OpenSim.Region.Framework.Scenes.Serialization.SceneObjectSerializer.ProcessShpMedia(PrimitiveBaseShape shp, XmlReader reader) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Region\Framework\Scenes\Serialization\SceneObjectSerializer.cs:line 1366
   at OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors[NodeType](NodeType nodeToFill, Dictionary`2 processors, XmlReader xtr, Action`3 parseExceptionAction) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\Serialization\External\ExternalRepresentationUtils.cs:line 103

11:20:38 - [SceneObjectSerializer]: Parsing PrimitiveBaseShape for object part Media on a Prim 9fe51484-a415-4cb5-a4dd-18462c5a2b94 encountered errors in properties Media.
11:20:38 - [SceneObjectSerializer]: Error while parsing element Media in Shape property of object Media on a Prim - Water Ripples 9951d881-1ffe-4374-82fa-695e2526338a System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlReader.MoveToContent()
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.ReadXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1592
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.FromXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1582
   at OpenSim.Region.Framework.Scenes.Serialization.SceneObjectSerializer.ProcessShpMedia(PrimitiveBaseShape shp, XmlReader reader) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Region\Framework\Scenes\Serialization\SceneObjectSerializer.cs:line 1366
   at OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors[NodeType](NodeType nodeToFill, Dictionary`2 processors, XmlReader xtr, Action`3 parseExceptionAction) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\Serialization\External\ExternalRepresentationUtils.cs:line 103

11:20:38 - [SceneObjectSerializer]: Parsing PrimitiveBaseShape for object part Media on a Prim - Water Ripples 9951d881-1ffe-4374-82fa-695e2526338a encountered errors in properties Media.
11:20:38 - [SceneObjectSerializer]: Error while parsing element Media in Shape property of object Media on a Prim - Hedlamp MoPad 1cbbbb08-1e17-4431-bbf9-3c7b3c3332bb System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlReader.MoveToContent()
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.ReadXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1592
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.FromXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1582
   at OpenSim.Region.Framework.Scenes.Serialization.SceneObjectSerializer.ProcessShpMedia(PrimitiveBaseShape shp, XmlReader reader) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Region\Framework\Scenes\Serialization\SceneObjectSerializer.cs:line 1366
   at OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors[NodeType](NodeType nodeToFill, Dictionary`2 processors, XmlReader xtr, Action`3 parseExceptionAction) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\Serialization\External\ExternalRepresentationUtils.cs:line 103

11:20:38 - [SceneObjectSerializer]: Parsing PrimitiveBaseShape for object part Media on a Prim - Hedlamp MoPad 1cbbbb08-1e17-4431-bbf9-3c7b3c3332bb encountered errors in properties Media.
11:20:38 - [SceneObjectSerializer]: Error while parsing element Media in Shape property of object Media on a Prim - Hedlamp Web 9951d881-1ffe-4374-82fa-695e2526338a System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlReader.MoveToContent()
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.ReadXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1592
   at OpenSim.Framework.PrimitiveBaseShape.MediaList.FromXml(String rawXml) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\PrimitiveBaseShape.cs:line 1582
   at OpenSim.Region.Framework.Scenes.Serialization.SceneObjectSerializer.ProcessShpMedia(PrimitiveBaseShape shp, XmlReader reader) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Region\Framework\Scenes\Serialization\SceneObjectSerializer.cs:line 1366
   at OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors[NodeType](NodeType nodeToFill, Dictionary`2 processors, XmlReader xtr, Action`3 parseExceptionAction) in d:\Temp\opensim-0.9.0-1470-g02b51b8\OpenSim\Framework\Serialization\External\ExternalRepresentationUtils.cs:line 103

11:20:38 - [SceneObjectSerializer]: Parsing PrimitiveBaseShape for object part Media on a Prim - Hedlamp Web 9951d881-1ffe-4374-82fa-695e2526338a encountered errors in properties Media.
TagsNo tags attached.
Git Revision or version numberopensim-0.9.0-1470-g02b51b8
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Environment.NET / Windows64
Mono VersionNone
ViewerN/A
Attached Files

- Relationships

-  Notes
(0032001)
UbitUmarov (administrator)
2017-06-08 03:48

yes there was a change by Robert.
I temporary reverted it, can you please check?
also please check it the relevant information is actually set on the prim, since that was the reason for the code change
(0032002)
UbitUmarov (administrator)
2017-06-08 03:50

btw I did assume you are on master, including that change :)
(0032003)
aiaustin (developer)
2017-06-08 04:04
edited on: 2017-06-08 04:11

yes @Ubit I was on opensim-0.9.1-1470-g02b51b8.zip (2017-06-07 18:08. Now installed the reverted version...opensim-0.9.1-1471-g29f2421.zip (2017-06-08 10:45)

Save IAR works on that reverted version without the errors reported.

The ones with simple URLs for the media on a prim face works fine as far as I can see...

I have had issues with one that had a data:text/html in line description which gave a water ripple effect... but that's been broken a while and I have assumed that is because of a change in using flash as media on a prim.

(0032004)
UbitUmarov (administrator)
2017-06-08 04:08

Robert fix does make sense, so there is a another issue somewhere.
I need to remember what media on a prim is to test ;)
(0032005)
aiaustin (developer)
2017-06-08 04:10
edited on: 2017-06-08 06:08

It is an ability to select a face of a prim and in "Texture" you can select "Media" and set it, e.g. to show a URL, as well as the usual directly visual "Material".

http://wiki.secondlife.com/wiki/Category:Shared_Media [^]

(0032006)
UbitUmarov (administrator)
2017-06-08 06:21

Yes made a simple one, and master code is working
not sure what was the problem Robert did tried to fix, but his that did not work.
I just don't see anything until I do click/zoom in and or do page reload
seems worse on FS
(0032007)
UbitUmarov (administrator)
2017-06-08 06:26

never mind.. having viewer autoload option set does help ;)
(0032008)
aiaustin (developer)
2017-06-08 06:26
edited on: 2017-06-08 06:29

Yes.. I usually have to click on it to see the content (or hit the "Home" key if the controls show that float above media on a prim). But it could be my media autoload settings as you say. I turned autoload on and it shows the web site content via the URL for media on a prim on entry now...

Firestorm settings -> Sound & media -> Media tab -> Allow media to autoplay

(0032009)
aiaustin (developer)
2017-06-08 06:35

Robert's fix was trying to do something with 'Media' XML element in PrimitiveBaseShape... yet it was impacting on a 'Media' element set for a face on Media on a Prim... so there must be some overlap and one fix broke another thing.
(0032010)
UbitUmarov (administrator)
2017-06-08 07:12

that's the same thing. "Media" only contains "OSMedia" and that in turn contains a list of media entries for the faces.
(0032011)
Robert Adams (administrator)
2017-06-08 10:04

aiaustin: is there some way you could get me a copy of the IAR giving the error? There must be some different formats saved in different versions. It looks like some savers must output XML in the Media element and others are just output text.
(0032012)
aiaustin (developer)
2017-06-08 10:15
edited on: 2017-06-08 11:09

Its the SAVE of the IAR that threw the error Robert.. but I will make an IAR of the 4 items involved and send it to you. One screen is just a simple one prim cube with media on a prim set as a URL on one face... could not be simpler. Another has an encoded data-text/html active content item that worked up to the apparent removal of shockwave handling in recent viewers. Not a problem if I have to delete that as it was just a demo. Of course it could be that the issue is with the item in inventory/assets and a resave could change what is encoded... but lets see.

(0032013)
aiaustin (developer)
2017-06-08 11:48

IAR sent to Robert via e-mail.
(0032014)
Robert Adams (administrator)
2017-06-08 21:49

aiaustin: I just checked in another attempt at parsing the various formats for the MOAP information in OAR files. Could you please test?

Seems that the media element contents changed early on in the development of the MOAP support and that some other simulators in the world still generate the old serialization format.

This change increases compatibility.
(0032016)
aiaustin (developer)
2017-06-09 03:03
edited on: 2017-06-09 03:05

Thanks Robert... I installed opensim-0.9.1-1474-g5bfe8b1.zip (2017-06-09 04:41) with the revised MOAP media parser and that allows a "save iar" of a folder containing the problematic MOAP screen inventory items with no errors reported.

These screens are likely to be ones set up when MOAP first appeared and have been reused since.

Would you recommend setting up such problematic screens as new assets and setting the Media URL/contents again to generate new content that will be more compatible?


- Issue History
Date Modified Username Field Change
2017-06-08 03:28 aiaustin New Issue
2017-06-08 03:42 aiaustin Description Updated View Revisions
2017-06-08 03:48 UbitUmarov Note Added: 0032001
2017-06-08 03:50 UbitUmarov Note Added: 0032002
2017-06-08 04:04 aiaustin Note Added: 0032003
2017-06-08 04:08 UbitUmarov Note Added: 0032004
2017-06-08 04:08 aiaustin Note Edited: 0032003 View Revisions
2017-06-08 04:10 aiaustin Note Added: 0032005
2017-06-08 04:11 aiaustin Note Edited: 0032003 View Revisions
2017-06-08 06:08 aiaustin Note Edited: 0032005 View Revisions
2017-06-08 06:21 UbitUmarov Note Added: 0032006
2017-06-08 06:26 UbitUmarov Note Added: 0032007
2017-06-08 06:26 aiaustin Note Added: 0032008
2017-06-08 06:27 aiaustin Note Edited: 0032008 View Revisions
2017-06-08 06:29 aiaustin Note Edited: 0032008 View Revisions
2017-06-08 06:35 aiaustin Note Added: 0032009
2017-06-08 07:12 UbitUmarov Note Added: 0032010
2017-06-08 10:04 Robert Adams Note Added: 0032011
2017-06-08 10:15 aiaustin Note Added: 0032012
2017-06-08 10:15 aiaustin Note Edited: 0032012 View Revisions
2017-06-08 11:09 aiaustin Note Edited: 0032012 View Revisions
2017-06-08 11:48 aiaustin Note Added: 0032013
2017-06-08 21:49 Robert Adams Note Added: 0032014
2017-06-09 03:03 aiaustin Note Added: 0032016
2017-06-09 03:05 aiaustin Note Edited: 0032016 View Revisions
2017-06-09 03:05 aiaustin Note Edited: 0032016 View Revisions


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker