From: Joshua N P. <vi...@po...> - 2001-07-23 16:48:55
Attachments:
redael.c
|
i wrote a simple problem (attached) to see whether i had everything compiled properly. gtk seems to work fine without gstreamer. When i use both, however ... here's the gdb output: Cannot access memory at address 0x11. (gdb) where #0 0x4000c500 in _dl_debug_state () from /lib/ld-linux.so.2 #1 0x40660edc in getutmpx () from /lib/libc.so.6 #2 0x4000be3b in _dl_catch_error () from /lib/ld-linux.so.2 #3 0x40660fcd in _dl_open () from /lib/libc.so.6 #4 0x40661b11 in _dl_mcount_wrapper_check () from /lib/libc.so.6 #5 0x4000be3b in _dl_catch_error () from /lib/ld-linux.so.2 #6 0x40661ac0 in _dl_mcount_wrapper_check () from /lib/libc.so.6 #7 0x40661baa in _dl_mcount_wrapper_check () from /lib/libc.so.6 #8 0x40593b8a in iconv_close () from /lib/libc.so.6 #9 0x4058d494 in iconv_close () from /lib/libc.so.6 #10 0x4058dc0a in iconv_close () from /lib/libc.so.6 #11 0x4058de6c in iconv_close () from /lib/libc.so.6 #12 0x4058cb87 in iconv_close () from /lib/libc.so.6 #13 0x4058c699 in iconv_open () from /lib/libc.so.6 #14 0x404ae1fd in g_iconv_open (to_codeset=0x4025040b "ISO-8859-1", from_codeset=0x40250416 "UTF-8") at gconvert.c:74 #15 0x404ae27d in open_converter (to_codeset=0x4025040b "ISO-8859-1", from_codeset=0x40250416 "UTF-8", error=0xbfffea08) at gconvert.c:136 #16 0x404ae3ee in g_convert (str=0x808a6a8 "redael", len=6, to_codeset=0x4025040b "ISO-8859-1", from_codeset=0x40250416 "UTF-8", bytes_read=0x0, bytes_written=0x0, error=0xbfffea08) at gconvert.c:203 #17 0x404ae707 in g_convert_with_fallback (str=0x808a6a8 "redael", len=-1, to_codeset=0x4025040b "ISO-8859-1", from_codeset=0x40250416 "UTF-8", fallback=0x0, bytes_read=0x0, bytes_written=0x0, error=0xbfffea58) at gconvert.c:378 #18 0x4023b816 in gdk_utf8_to_string_target (str=0x804eed8 "redael") at gdkselection-x11.c:565 #19 0x4023f1ea in set_text_property (window=0x808a128, property=39, utf8_str=0x804eed8 "redael") at gdkwindow-x11.c:1487 #20 0x4023f3c7 in gdk_window_set_title (window=0x808a128, title=0x804eed8 "redael") at gdkwindow-x11.c:1527 ... Here are the versions i'm using: pkgconfig-0.7.0.tar.gz freetype-2.0.2.tar.bz2 gtk+-all-1.3.6.tar.gz gstreamer-0.2.1.tar.bz2 Linux ns.durga.edu.in 2.4.5 #1 Thu Jun 14 08:58:03 IST 2001 i586 unknown gcc version 2.95.4 20010319 (Debian prerelease) joshua@ns:~/redael$ ldd ./redael libgtk-x11-1.3.so.6 => /home/joshua/t/lib/libgtk-x11-1.3.so.6 (0x40017000) libgdk-x11-1.3.so.6 => /home/joshua/t/lib/libgdk-x11-1.3.so.6 (0x40204000) libgdk_pixbuf-1.3.so.6 => /home/joshua/t/lib/libgdk_pixbuf-1.3.so.6 (0x40257000) libm.so.6 => /lib/libm.so.6 (0x4026e000) libpangox-0.17.so => /home/joshua/t/lib/libpangox-0.17.so (0x40290000) libpangoxft-0.17.so => /home/joshua/t/lib/libpangoxft-0.17.so (0x4029d000) libXft.so.1 => /usr/X11R6/lib/libXft.so.1 (0x402b9000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x402dd000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x402e2000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402f0000) libfreetype.so.6 => /home/joshua/t/lib/libfreetype.so.6 (0x403cb000) libatk.so.2 => /home/joshua/t/lib/libatk.so.2 (0x403fd000) libpango-0.17.so => /home/joshua/t/lib/libpango-0.17.so (0x4040d000) libgmodule-1.3.so.6 => /home/joshua/t/lib/libgmodule-1.3.so.6 (0x4043a000) libdl.so.2 => /lib/libdl.so.2 (0x4043e000) libgst.so.0 => /home/joshua/t/lib/libgst.so.0 (0x40442000) libgobject-1.3.so.6 => /home/joshua/t/lib/libgobject-1.3.so.6 (0x4046c000) libglib-1.3.so.6 => /home/joshua/t/lib/libglib-1.3.so.6 (0x4049e000) libxml.so.1 => /home/joshua/t/lib/libxml.so.1 (0x404ef000) libz.so.1 => /usr/lib/libz.so.1 (0x40560000) libc.so.6 => /lib/libc.so.6 (0x4056f000) libgthread-1.3.so.6 => /home/joshua/t/lib/libgthread-1.3.so.6 (0x40682000) libpthread.so.0 => /lib/libpthread.so.0 (0x40687000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Any ideas? -- Get self-realization at <http://sahajayoga.org> ... <http://why-compete.org> ? Victory to the Divine Mother!! |
From: Andy W. <ap...@eo...> - 2001-07-23 19:03:40
|
On Mon, 23 Jul 2001, Joshua N Pritikin wrote: > i wrote a simple problem (attached) to see whether i had everything > compiled properly. gtk seems to work fine without gstreamer. When i use > both, however ... here's the gdb output: [snip] > Any ideas? odd. I'm running gtk-1.2 and this did not occur for me when I just ran your program. is it a gtk2 bug? (I'm not one of the glib2 people here ;) Andy |
From: Erik W. <om...@te...> - 2001-07-23 19:08:51
|
On Mon, 23 Jul 2001, Joshua N Pritikin wrote: > Here are the versions i'm using: > > pkgconfig-0.7.0.tar.gz > freetype-2.0.2.tar.bz2 > gtk+-all-1.3.6.tar.gz > gstreamer-0.2.1.tar.bz2 The problem is that while we do use glib-2.0 and gobject-2.0, we have not ported nor do we have shims to use gtk-2.0. I also have never tried to link against gtk-2.0, so there are likely some minor issues left over as far as what gst_init() actually does, and whether some of that is being done wrong in the case of gtk_init() already having been called. I'll look into that sometime soon. In the meantime, if you can link against gtk-1.2, I'd suggesting doing so. Erik Walthinsen <om...@te...> - System Administrator __ / \ GStreamer - The only way to stream! | | M E G A ***** http://gstreamer.net/ ***** _\ /_ |
From: Joshua N P. <vi...@po...> - 2001-07-24 04:23:32
|
On Mon, Jul 23, 2001 at 12:08:43PM -0700, Erik Walthinsen wrote: > On Mon, 23 Jul 2001, Joshua N Pritikin wrote: > > > Here are the versions i'm using: > > > > pkgconfig-0.7.0.tar.gz > > freetype-2.0.2.tar.bz2 > > gtk+-all-1.3.6.tar.gz > > gstreamer-0.2.1.tar.bz2 > > The problem is that while we do use glib-2.0 and gobject-2.0, we have not > ported nor do we have shims to use gtk-2.0. I also have never tried to > link against gtk-2.0, so there are likely some minor issues left over as > far as what gst_init() actually does, and whether some of that is being > done wrong in the case of gtk_init() already having been called. I'll > look into that sometime soon. > > In the meantime, if you can link against gtk-1.2, I'd suggesting doing so. Huh? Now i'm really confused. i thought one of the ideas of porting gstreamer to glib-2.0 was to remove any dependency on gtk. Your suggested solution is also strange. Do you suggest that i link against both glib-2.0 and glib-1.2 (for gtk-1.2) in the same binary? Fortunately, i can work on the gtk part separately from the gstreamer part. i was just testing the library combinations for future integration work. Thanks!! -- Get self-realization at <http://sahajayoga.org> ... <http://why-compete.org> ? Victory to the Divine Mother!! |
From: Joshua N P. <vi...@po...> - 2001-07-24 06:35:16
|
On Mon, Jul 23, 2001 at 12:08:43PM -0700, Erik Walthinsen wrote: > The problem is that while we do use glib-2.0 and gobject-2.0, we have not > ported nor do we have shims to use gtk-2.0. I also have never tried to > link against gtk-2.0, so there are likely some minor issues left over as > far as what gst_init() actually does, and whether some of that is being > done wrong in the case of gtk_init() already having been called. I'll > look into that sometime soon. For what it's worth, it doesn't crash immediately if gst_init is called *before* gtk_init. i don't know why this order works and the other order doesn't. -- Get self-realization at <http://sahajayoga.org> ... <http://why-compete.org> ? Victory to the Divine Mother!! |