[Mono-bugs] [Bug 537115] New: XML Serialization fails on device, works on Simulator
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Sep 6 23:20:17 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=537115
User sguindon at truecontext.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537115#c7
Summary: XML Serialization fails on device, works on Simulator
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Runtime
AssignedTo: gnorton at novell.com
ReportedBy: sguindon at truecontext.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us)
AppleWebKit/530.18 (KHTML, like Gecko) Version/4.0.1 Safari/530.18
When serializing XML on device an AOT exception occurs as follows (which does
not occur on simulator):
SAVE PATH:
/private/var/mobile/Applications/3F4708FF-C533-4019-884A-646A916ED238/Documents/test.xml
Unhandled Exception: System.ExecutionEngineException: Attempting to JIT compile
method
'System.Reflection.MonoProperty:GetterAdapterFrame<System.Collections.Generic.List`1<SerializationTest.Status>,
int>
(System.Reflection.MonoProperty/Getter`2<System.Collections.Generic.List`1<SerializationTest.Status>,
int>,object)' while running with --aot-only.
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[]
index) [0x00000]
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteListContent
(System.Object container, System.Xml.Serialization.TypeData listType,
System.Xml.Serialization.ListMap map, System.Object ob,
System.Text.StringBuilder targetString) [0x00000]
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteListElement
(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob,
System.String element, System.String namesp) [0x00000]
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObject
(System.Xml.Serialization.XmlType
Mapping typeMap, System.Object ob, System.String element, System.String namesp,
Boolean isNullable, Boolean needType, Boolean writeWrappingElem) [0x00000]
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteRoot
(System.Object ob) [0x00000]
at System.Xml.Serialization.XmlSerializer.Serialize (System.Object o,
System.Xml.Serialization.XmlSerializationWriter writer) [0x00000]
at System.Xml.Serialization.XmlSerializer.Serialize (System.Xml.XmlWriter
writer, System.Object o, System.Xml.Serialization.XmlSerializerNamespaces
namespaces) [0x00000]
(UIKitApplication:com.yourcompany.SerializationTest[0x1d33]) Exited with exit
code: 1
Application 'SerializationTest' exited abnormally with exit status 1
Could not receive size of message
(0x80b200) handle_connection: Could not receive USB message #7 from mtouch.
Killing connection
Reloading and rendering all application icons.
Reproducible: Always
Steps to Reproduce:
1.Run the sample project attached.
2.Look at the console of the device via Organizer in XCode.
3.
Actual Results:
Exception
Expected Results:
File serialized on device.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list