[Mono-list] Crash while creating Pixbuf from file
Julien Sobrier
julien at sobrier.net
Wed Jan 16 13:02:25 EST 2008
Hello,
here is my test program:
using System;
using Gdk;
public class test
{
public static void Main(string[] args)
{
string file = "/tmp/lesgrossestetes.jpg";
Pixbuf pic = new Pixbuf(file);
}
}
# gmcs -r:/usr/lib/mono/gtk-sharp-2.0/gdk-sharp.dll -target:exe test.cs
# mono test.exe
(test.exe:9545): GLib-GObject-CRITICAL **: gtype.c:2240: initialization
assertion failed, use IA__g_type_init() prior to this function
(test.exe:9545): GLib-GObject-CRITICAL **: g_object_new: assertion
`G_TYPE_IS_OBJECT (object_type)' failed
Stacktrace:
at (wrapper managed-to-native) Gdk.Pixbuf.gdk_pixbuf_new_from_file
(intptr,intptr&) <0x00004>
at (wrapper managed-to-native) Gdk.Pixbuf.gdk_pixbuf_new_from_file
(intptr,intptr&) <0xffffffff>
at Gdk.Pixbuf..ctor (string) <0x00042>
at test.Main (string[]) <0x0001e>
at (wrapper runtime-invoke) test.runtime_invoke_void_string[]
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono [0x816e6be]
mono [0x807b292]
[0x332440]
/usr/lib/libgdk_pixbuf-2.0.so.0(gdk_pixbuf_new_from_data+0x109)
[0x343359]
/usr/lib/libgdk_pixbuf-2.0.so.0(gdk_pixbuf_new+0xea) [0x34145a]
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so [0x147fa7]
/usr/lib/libgdk_pixbuf-2.0.so.0 [0x344ff0]
/usr/lib/libgdk_pixbuf-2.0.so.0(gdk_pixbuf_new_from_file+0x114)
[0x346134]
[0x13096e]
[0x12932b]
[0x129257]
[0x1291c3]
mono(mono_runtime_exec_main+0xbb) [0x8098ecb]
mono(mono_runtime_run_main+0x1ba) [0x809a2da]
mono(mono_main+0xfe3) [0x8059403]
mono [0x8057f12]
/lib/libc.so.6(__libc_start_main+0xdc) [0x186dec]
mono [0x8057e31]
Debug info from gdb:
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1120480 (LWP 9545)]
[New Thread 9558928 (LWP 9547)]
[New Thread 12004240 (LWP 9546)]
0x00332402 in __kernel_vsyscall ()
3 Thread 12004240 (LWP 9546) 0x00332402 in __kernel_vsyscall ()
2 Thread 9558928 (LWP 9547) 0x00332402 in __kernel_vsyscall ()
1 Thread 1120480 (LWP 9545) 0x00332402 in __kernel_vsyscall ()
Thread 3 (Thread 12004240 (LWP 9546)):
#0 0x00332402 in __kernel_vsyscall ()
#1 0x002ee616 in nanosleep () from /lib/libpthread.so.0
#2 0x08109c21 in collection_thread (unused=0x0) at collection.c:34
#3 0x002e745b in start_thread () from /lib/libpthread.so.0
#4 0x0023f24e in clone () from /lib/libc.so.6
Thread 2 (Thread 9558928 (LWP 9547)):
#0 0x00332402 in __kernel_vsyscall ()
#1 0x002eb256 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2 0x0810a2af in timedwait_signal_poll_cond (cond=0x4a11dc, mutex=0x4a11c4,
timeout=0x0, alertable=0) at handles.c:1443
#3 0x0810ce8f in _wapi_handle_timedwait_signal_handle (handle=0x404,
timeout=0x0, alertable=0) at handles.c:1523
#4 0x0810cf0c in _wapi_handle_wait_signal_handle (handle=0x404,
alertable=0)
at handles.c:1483
#5 0x081095b4 in WaitForSingleObjectEx (handle=0x404, timeout=4294967295,
alertable=0) at wait.c:200
#6 0x080b6bea in finalizer_thread (unused=0x0) at gc.c:894
#7 0x080c6fc4 in start_wrapper (data=0x9bfc930) at threads.c:573
#8 0x081105b2 in thread_start_routine (args=0xc4b3c0) at threads.c:264
#9 0x0812f2f7 in GC_start_routine (arg=0x22f40) at pthread_support.c:1369
#10 0x002e745b in start_thread () from /lib/libpthread.so.0
#11 0x0023f24e in clone () from /lib/libc.so.6
Thread 1 (Thread 1120480 (LWP 9545)):
#0 0x00332402 in __kernel_vsyscall ()
#1 0x001ffa6f in fork () from /lib/libc.so.6
#2 0x002f0414 in fork () from /lib/libpthread.so.0
#3 0x0043dc19 in g_spawn_error_quark () from /lib/libglib-2.0.so.0
#4 0x0043e80b in g_spawn_sync () from /lib/libglib-2.0.so.0
#5 0x0043ecac in g_spawn_command_line_sync () from /lib/libglib-2.0.so.0
#6 0x0816e771 in mono_handle_native_sigsegv (signal=11, ctx=0xc4ad0c)
at mini-exceptions.c:1061
#7 0x0807b292 in mono_arch_handle_altstack_exception (sigctx=0xc4ad0c,
fault_addr=0x28, stack_ovf=0) at exceptions-x86.c:854
#8 <signal handler called>
#9 0x00343359 in gdk_pixbuf_new_from_data ()
from /usr/lib/libgdk_pixbuf-2.0.so.0
#10 0x0034145a in gdk_pixbuf_new () from /usr/lib/libgdk_pixbuf-2.0.so.0
#11 0x00147fa7 in to_callback_terminate ()
from /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so
#12 0x00344ff0 in gdk_pixbuf_new_from_file_at_size ()
from /usr/lib/libgdk_pixbuf-2.0.so.0
#13 0x00346134 in gdk_pixbuf_new_from_file ()
from /usr/lib/libgdk_pixbuf-2.0.so.0
#14 0x0013096e in ?? ()
#15 0x09c60338 in ?? ()
#16 0xbfb04200 in ?? ()
#17 0xbfb0420c in ?? ()
#18 0x0012932b in ?? ()
#19 0x09bd3ad0 in ?? ()
#20 0xbfb04200 in ?? ()
#21 0x00048fc0 in ?? ()
#22 0x09c60338 in ?? ()
#23 0x00000000 in ?? ()
#0 0x00332402 in __kernel_vsyscall ()
=================================================================
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.
=================================================================
Aborted
I use this version of Mono:
Mono JIT compiler version 1.2.6 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
And this version of gdk:
$ rpm -q gtk-sharp2
gtk-sharp2-2.10.0-6
Anybody has the same issue?
Thank you
More information about the Mono-list
mailing list