[Mono-bugs] [Bug 547484] I get an exception when trying to serialize an object with BinaryFormatter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 2 18:28:36 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=547484

User gnorton at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547484#c6


Geoff Norton <gnorton at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gnorton at novell.com




--- Comment #6 from Geoff Norton <gnorton at novell.com>  2009-11-02 16:28:32 MST ---
Ok updated information:

The attempting-to-aot bug above, is a linker bug, its changing the IL to be
invalid and the aot compielr cannot compile the method.  Adding CC to jb.

After working around that we're getting:

System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ExecutionEngineException: Attempting to
JIT compile method 'Settings__TypeMetadata:.ctor ()' while running with
--aot-only.
 at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000]
 --- End of inner exception stack trace --- at
System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000]
 at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000]
 at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters)
[0x00000] 
 at System.Activator.CreateInstance (System.Type type, Boolean nonPublic)
[0x00000] 
 at System.Activator.CreateInstance (System.Type type) [0x00000] 
 at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.CreateMemberTypeMetadata
(System.Type type) [0x00000] 
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.GetObjectData
(System.Object obj,
System.Runtime.Serialization.Formatters.Binary.TypeMetadata& metadata,
System.Object& data) [0x00000] at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject
(System.IO.BinaryWriter writer, Int64 id, System.Object obj) [0x00000]
 at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInstance
(System.IO.BinaryWriter writer, System.Object obj, Boolean isValueObject)
[0x00000]
 at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects
(System.IO.BinaryWriter writer) [0x00000] 
 at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph
(System.IO.BinaryWriter writer, System.Object obj,
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize
(System.IO.Stream serializationStream, System.Object graph,
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize
(System.IO.Stream serializationStream, System.Object graph) [0x00000]
 at bintest.Settings.Dispose () [0x00000] 
 at bintest.AppDelegate.ButtonhandleTouchUpInside (System.Object sender,
System.EventArgs e) [0x00000] 


Which appears to be a seperate AOT bug.

-- 
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