[Mono-list] Gdk.Pixbuf error using xsp

Bryan Buchanan bryanb at webbtide.com
Fri Sep 22 04:42:49 EDT 2006


My Mono app barfs a this line of code:

Gdk.Pixbuf pixbuf = new Gdk.Pixbuf(filename);

This is on an OpenSuse 10.1 system, running xsp. I've downloaded the
Mono installer and I get the same error.

Interestingly, exactly the same code using Mono on an Ubuntu
6.06.1 system works fine.

Can anyone point me in a direction to solve this ?

The Suse Mono version is:
Mono JIT compiler version, (C) 2002-2005 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV      : normal

The relevant errors are:

(/usr/lib/xsp/1.0/xsp.exe:30726): GLib-GObject-CRITICAL **: gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function

(/usr/lib/xsp/1.0/xsp.exe:30726): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.


in (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_new_from_file (intptr,intptr&) <0x4>
in (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_new_from_file (intptr,intptr&) <0xfffff6b2>
in Gdk.Pixbuf:.ctor (string) <0x42>
in Meta.RunProgram:print_report (System.IO.MemoryStream) <0x1370>

Native stacktrace:

        /usr/bin/mono(mono_handle_native_sigsegv+0xbb) [0x8149e7b]
        /usr/bin/mono [0x8119130]
        /opt/gnome/lib/libgdk_pixbuf-2.0.so.0(IA__gdk_pixbuf_new+0xed) [0xb606332d]
        /opt/gnome/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so [0xb6b70187]
        /opt/gnome/lib/libgdk_pixbuf-2.0.so.0 [0xb6066c10]
        /opt/gnome/lib/libgdk_pixbuf-2.0.so.0(IA__gdk_pixbuf_new_from_file+0x114) [0xb6067d44]



More information about the Mono-list mailing list