[Mono-dev] FULL-AOT problem in SUSE 11.2

huseyin cakir huseyin.cakir35 at gmail.com
Sat May 7 14:14:02 EDT 2011


Hi, we have a problem in full-aot is it possible that someone help about
the problem we have? There are no problems in aot but we dont see any
performance improvements with aot so we tried full aot.

*For the first step we full-aot all libraries with a bash like this:*

#!/bin/bash
mono --aot=full /usr/lib/mono/1.0/mscorlib.dll
mono --aot=full /usr/lib/mono/2.0/mscorlib.dll
for i in /usr/lib/mono/gac/*/*/*.dll; do mono --aot=full $i; done

*Then in we full-aot our appllication like this:*

mono --aot=full testProject.exe
mono --full-aot testProject.exe

*But we got the error:*

Unhandled Exception: System.TypeInitializationException: An exception was
thrown
by the type initializer for GLib.GType ---> System.ExecutionEngineException:
Attempting to JIT compile method '(wrapper native-to-managed)
GLib.ManagedValue:Copy (intptr)' while running with --aot-only.
  at (wrapper managed-to-native)
object:__icall_wrapper_mono_delegate_to_ftnptr
(object)
  at (wrapper managed-to-native)
GLib.ManagedValue:g_boxed_type_register_static
(intptr,GLib.ManagedValue/CopyFunc,GLib.ManagedValue/FreeFunc)
  at GLib.ManagedValue.get_GType () [0x00000] in <filename unknown>:0
  at GLib.GType.Register (GType native_type, System.Type type) [0x00000] in
<filename unknown>:0
  at GLib.GType..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at GLib.Value..ctor (System.Object obj) [0x00000] in <filename unknown>:0
  at Gtk.Window..ctor (WindowType type) [0x00000] in <filename unknown>:0
  at MainWindow..ctor () [0x00000] in <filename unknown>:0
  at testProject.MainClass.Main (System.String[] args) [0x00000] in
<filename
unknown>:0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110507/907e2440/attachment.html 


More information about the Mono-devel-list mailing list