problem with gtk 2.14: gdk_pixbuf_get_file_info
- From: ROBERTO FORTUNATO <rfortunato sisma com>
- To: gtk-list gnome org
- Subject: problem with gtk 2.14: gdk_pixbuf_get_file_info
- Date: Thu, 16 Oct 2008 10:44:26 +0200
Hi,
I have a problem with last version of
GTK under windows.
This simple code crashes when run with
gdb and it creates instability when it run in a more complex program.
Previous version hasn't this problem.
Is this a bug or in the new version
should I use a differente function?
Below the program code and a simple
report of gdb.
Thanks
Roberto
PROGRAM:
#include <gtk/gtk.h>
int
main (int argc, char *argv[])
{
gtk_init (&argc, &argv);
gint pb_width = 0, pb_height
= 0;
gchar *filename = "C:\\a.jpg";
gdk_pixbuf_get_file_info(filename,
&pb_width, &pb_height);
return 0;
}
REPORT
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
Program received signal SIGSEGV, Segmentation fault.
0x774d6136 in _libmsvcrt_a_iname ()
DATE AND TIME
16/10/2008
10.17
SOURCE
No current source file.
PROGRAM FILES
Symbols from "E:\Glade\Copia di testdgk/testgdk.exe".
Win32 child process:
Using the running image of child thread 3180.0x9bc.
While running this, GDB does not access memory from...
Local exec file:
`E:\Glade\Copia di testdgk/testgdk.exe', file type pei-i386.
Entry point: 0x401270
0x00401000 - 0x00406400 is .text
0x00407000 - 0x00407200 is .data
0x00408000 - 0x00408800 is .rdata
0x00409000 - 0x00409120 is .bss
0x0040a000 - 0x0040b800 is .idata
PROGRAM ARGUMENTS
Argument list to give program being debugged when it is started is "".
PROGRAM ENVIRONMENT
AexRS=C:\Programmi\Altiris\eXpress\Client Recovery Agent\
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\roberto\Dati applicazioni
CLIENTNAME=Console
CommonProgramFiles=C:\Programmi\File comuni
COMPUTERNAME=WSFORTUNATOR
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOME=C:\Documents and Settings\roberto
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\roberto
LOGONSERVER=\\WSFORTUNATOR
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\IBM\CLIENT~1;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1\Emulator;C:\Programmi\ZipGenius 6\;C:\Programmi\MinGW\GTK\2.0\bin;C:\Programmi\MinGW\EXTRA\bin;C:\Programmi\MinGW\bin;C:\Programmi\GnuWin32\bin;;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=040a
ProgramFiles=C:\Programmi
PROMPT=$P$G
PS1=\w
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\roberto\IMPOST~1\Temp
TMP=C:\DOCUME~1\roberto\IMPOST~1\Temp
USERDOMAIN=WSFORTUNATOR
USERNAME=roberto
USERPROFILE=C:\Documents and Settings\roberto
windir=C:\WINDOWS
PROGRAM SHARE
DLL Name Load Address
ntdll.dll 7c911000
C:\WINDOWS\system32\kernel32.dll 7c801000
C:\Programmi\MinGW\GTK\2.0\bin\libatk-1.0-0.dll 62941000
C:\Programmi\MinGW\GTK\2.0\bin\libglib-2.0-0.dll 685c1000
C:\WINDOWS\system32\advapi32.dll 77f41000
C:\WINDOWS\system32\rpcrt4.dll 77da1000
C:\WINDOWS\system32\secur32.dll 77f11000
C:\WINDOWS\system32\msvcrt.dll 77be1000
C:\WINDOWS\system32\ole32.dll 774b1000
C:\WINDOWS\system32\gdi32.dll 77e41000
C:\WINDOWS\system32\user32.dll 7e391000
C:\WINDOWS\system32\shell32.dll 7c9d1000
C:\WINDOWS\system32\shlwapi.dll 77e91000
C:\WINDOWS\system32\ws2_32.dll 71a31000
C:\WINDOWS\system32\ws2help.dll 71a21000
C:\Programmi\MinGW\GTK\2.0\bin\libgobject-2.0-0.dll 63a41000
C:\Programmi\MinGW\GTK\2.0\bin\intl.dll 69001000
C:\Programmi\MinGW\GTK\2.0\bin\libgdk_pixbuf-2.0-0.dll 65341000
C:\Programmi\MinGW\GTK\2.0\bin\libgio-2.0-0.dll 6d581000
C:\Programmi\MinGW\GTK\2.0\bin\libgmodule-2.0-0.dll 6dd01000
C:\Programmi\MinGW\GTK\2.0\bin\libpng12-0.dll 69c81000
C:\Programmi\MinGW\GTK\2.0\bin\zlib1.dll 10001000
C:\Programmi\MinGW\GTK\2.0\bin\libgtk-win32-2.0-0.dll 61781000
C:\Programmi\MinGW\GTK\2.0\bin\libgdk-win32-2.0-0.dll 6c341000
C:\Programmi\MinGW\GTK\2.0\bin\libcairo-2.dll 68dc1000
C:\WINDOWS\system32\msimg32.dll 76331000
C:\Programmi\MinGW\GTK\2.0\bin\libpango-1.0-0.dll 65581000
C:\Programmi\MinGW\GTK\2.0\bin\libpangocairo-1.0-0.dll 6d4c1000
C:\Programmi\MinGW\GTK\2.0\bin\libpangowin32-1.0-0.dll 6b281000
C:\WINDOWS\system32\imm32.dll 76341000
C:\WINDOWS\system32\comctl32.dll 5d4d1000
C:\WINDOWS\system32\comdlg32.dll 76361000
C:\WINDOWS\system32\winspool.drv 72f71000
C:\WINDOWS\system32\lpk.dll 62e41000
C:\WINDOWS\system32\usp10.dll 74d21000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll 773a1000
C:\WINDOWS\system32\uxtheme.dll 5b181000
C:\WINDOWS\system32\msctf.dll 746b1000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.5512_x-ww_dfb54e0c\GdiPlus.dll 4ebd1000
C:\WINDOWS\system32\msctfime.ime 752e1000
SOURCE LINE
1 #include <gtk/gtk.h>
2
3 int
4 main (int argc, char *argv[])
5 {
6
7 gtk_init (&argc, &argv);
8 gint pb_width = 0, pb_height = 0;
9 gchar *filename = "C:\\a.jpg";
10 gdk_pixbuf_get_file_info(filename, &pb_width, &pb_height);
FUNCTION ARGUMENTS
No symbol table info available.
LOCAL VARIABLES
No symbol table info available.
REGISTER
eax 0x1000 4096
ecx 0x2ac 684
edx 0x24bab0 2407088
ebx 0x24b5a0 2405792
esp 0x22ea14 0x22ea14
ebp 0x22ea20 0x22ea20
esi 0x24d000 2412544
edi 0xb35978 11753848
eip 0x774d6136 0x774d6136
eflags 0x10206 66054
cs 0x1b 27
ss 0x23 35
ds 0x23 35
es 0x23 35
fs 0x3b 59
gs 0x0 0
fctrl 0xffff067f -63873
fstat 0xffff0000 -65536
ftag 0xffffffff -1
fiseg 0x1b 27
fioff 0x4ec15089 1321291913
foseg 0xffff0023 -65501
fooff 0xb3a438 11772984
fop 0x3db 987
BACKTRACE ALL THREADS
Thread 3 (thread 3180.0x214):
#0 0x7c91e4f4 in _libmsvcrt_a_iname ()
#1 0x7c91dc0c in _libmsvcrt_a_iname ()
#2 0x7c9110fd in _libmsvcrt_a_iname ()
#3 0x7c926612 in _libmsvcrt_a_iname ()
#4 0x7c801bbd in _libmsvcrt_a_iname ()
#5 0x7c80aeec in _libmsvcrt_a_iname ()
#6 0x76353b26 in _libmsvcrt_a_iname ()
#7 0x76354320 in _libmsvcrt_a_iname ()
#8 0x7e3ec6f9 in _libmsvcrt_a_iname ()
#9 0x7e3ec97d in _libmsvcrt_a_iname ()
#10 0x7e398734 in _libmsvcrt_a_iname ()
#11 0x7e3abdf1 in _libmsvcrt_a_iname ()
#12 0x7e3a8ea0 in _libmsvcrt_a_iname ()
#13 0x7e3ace7c in _libmsvcrt_a_iname ()
#14 0x7c91e453 in _libmsvcrt_a_iname ()
#15 0x7e3ae442 in _libmsvcrt_a_iname ()
#16 0x7e3ae4dc in _libmsvcrt_a_iname ()
#17 0x4ebf6b4e in _libmsvcrt_a_iname ()
#18 0x4ebe72d8 in _libmsvcrt_a_iname ()
#19 0x7c80b713 in _libmsvcrt_a_iname ()
Thread 2 (thread 3180.0xbdc):
#0 0x7c91e4f4 in _libmsvcrt_a_iname ()
#1 0x7c91d1fc in _libmsvcrt_a_iname ()
#2 0x7c802455 in _libmsvcrt_a_iname ()
#3 0x004058ac in profthr_func 4 ()
#4 0x7c80b713 in _libmsvcrt_a_iname ()
Thread 1 (thread 3180.0x9bc):
#0 0x774d6136 in _libmsvcrt_a_iname ()
#1 0x00b34538 in ?? ()
#2 0x4ed0fb96 in _libmsvcrt_a_iname ()
#3 0x4ed41c27 in _libmsvcrt_a_iname ()
#4 0x4ed4201d in _libmsvcrt_a_iname ()
#5 0x4ed40951 in _libmsvcrt_a_iname ()
#6 0x4ed433df in _libmsvcrt_a_iname ()
#7 0x4ed36803 in _libmsvcrt_a_iname ()
#8 0x4ed101c4 in _libmsvcrt_a_iname ()
#9 0x4ec28472 in _libmsvcrt_a_iname ()
#10 0x4ec2842d in _libmsvcrt_a_iname ()
#11 0x4ec14b64 in _libmsvcrt_a_iname ()
#12 0x4ec14ab8 in _libmsvcrt_a_iname ()
#13 0x4ec287c2 in _libmsvcrt_a_iname ()
#14 0x4ebe8040 in _libmsvcrt_a_iname ()
#15 0x4ec2aa53 in _libmsvcrt_a_iname ()
#16 0x4ec2aa04 in _libmsvcrt_a_iname ()
#17 0x4ec2a9bc in _libmsvcrt_a_iname ()
#18 0x6535b54b in stop_load ()
#19 0x6535ba90 in gdk_pixbuf__gdip_image_stop_load ()
#20 0x65347dde in gdk_pixbuf_loader_close ()
#21 0x65345f96 in gdk_pixbuf_get_file_info ()
#22 0x00404992 in main (argc=1, argv=0x3e4668) at src/main.c:10
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]