segmentation fault when trying to save a pixbuf into a file



Hello,

I had posted in the past but with no luck about segmentation faults
that I am getting when trying to save a pixbuf into a file. With a bit
more debugging this is the error I am getting when I try:
gdk_pixbuf_save(pixbuf, "temp.bmp", "bmp", NULL);

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208932672 (LWP 8874)]
0x00b9d8c5 in IA__g_strdup (str=0x258 <Address 0x258 out of bounds>)
at gstrfuncs.c:90
~/Downloads/gtk2.6/glib-2.6.4/glib/gstrfuncs.c:90:2850:beg:0xb9d8c5

As a first sign I am noticing that
~/Downloads/gtk2.6/glib-2.6.4/glib/gstrfuncs.c:90:2850:beg:0xb9d8c5
are the extracted files when I installed gtk2.6. I was quite sure that
I had setup my environment variables properly:

CPATH=/opt/gtk-2.6/include:/opt/gtk-2.6/include:atk-1.0:/opt/gtk-2.6/include/glib-2.0:/opt/gtk-2.6/include/gtk-2.0:/opt/gtk-2.6/include/libglade-2.0:pango-1.0:$PSG/include:/usr/local/include:/usr/include:$LOCAL/include:$CPATH
C_INCLUDE_PATH=$CPATH:$C_INCLUDE_PATH
LIBRARY_PATH=/opt/gtk-2.6/lib:$PSG/lib:/usr/local/lib:/usr/lib:$LOCAL/lib:$LIBRARY_PATH
LIBRARY=$LIBRARY:$LIBRARY_PATH
PKG_CONFIG_PATH=/opt/gtk-2.6/lib/pkgconfig:$PSG/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:$LOCAL/lib/pkgconfig:$PKG_CONFIG_PATH
PYTHONPATH=$PYTHONPATH:$PSG/lib/python2.3/site-packages:/usr/local/lib/python2.3/site-packages:/usr/lib/python2.3/site-packages
LD_LIBRARY_PATH=/opt/gtk-2.6/lib:$PSG/lib/python2.3/site-packages:$PSG/lib/osgPlugins:$PSG/lib:$LOCAL/lib:$LD_LIBRARY_PATH
PLAYERPATH=$PSG/lib:$PSG/lib/python2.3/site-packages
CPPFLAGS=-I/opt/gtk-2.6/include
LDFLAGS=-L/opt/gtk-2.6/lib

Anyone any clues?

Cheers,
@Yiannis



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]