Re: gtk2 Segmentation faults

2002-03-18 Thread Kristian Peters
Owen Taylor <[EMAIL PROTECTED]> wrote: > You are using GtkXft. :-) Turn it off and things will work a lot better. Yes... After ldconfig everything works fine. ;-) If there exists a FAQ somewhere it would be worth mentioning the incompatibility with gdkxft. :) *Kristian :... [snd.science] ..

Re: gtk2 Segmentation faults

2002-03-18 Thread Kristian Peters
iain <[EMAIL PROTECTED]> wrote: > Are you running a gtk1.2 LD_PRELOAD hack for antialiasing? No hacks, no patches applied. Are there known problems with freetype2-2.0.3 and XFree-4.1 ? Then I'll try my luck with XFree-4.2 and a more recent version of freetype. But I can't see why even that simp

Re: gtk2 Segmentation faults

2002-03-18 Thread Kristian Peters
Ronald Bultje <[EMAIL PROTECTED]> wrote: > On Sun, 2002-03-17 at 23:47, Kristian Peters wrote: > > Program received signal SIGSEGV, Segmentation fault. > > gdk_window_get_geometry (window=0x0 >^^ > > Your window variable is not

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Michael Torrie <[EMAIL PROTECTED]> wrote: > On Sun, 2002-03-17 at 15:39, Kristian Peters wrote: > > > > Yes ok. That was copy'n'paste. Sorry for confusion. My fault. It's too late >already. The program crashes between that two printf statements: > &

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
> According to a debugger, where is it crashing (load it up in ddd after > compiling with -g)? The code you present here looks really suspicious. > As was pointed out, declaring a variable after a function call is > illegal in C. Also note that GtkWidget *window is not a gtk statement > at all.

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Ronald Bultje <[EMAIL PROTECTED]> wrote: > On Sun, 2002-03-17 at 23:00, Kristian Peters wrote: > > int main( int argc, > >char *argv[] ) > > { > > printf("1\n"); > > GtkWidget *window; > > printf("2\n&qu

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Hello. Ok. I tried the packages from ftp.gtk.org without any noticable changes. How can I switch debugging on ? *Kristian :... [snd.science] ...: :: :: http://www.korseby.net :: http://gsmp.sf.net :..: ___ gtk-list maili

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Owen Taylor <[EMAIL PROTECTED]> wrote: > Is your system Red Hat 7.2 in other ways? No. I applied updates from errata only. > Porbably something to do with config files or the set of files in your packages. >Maybe you could try the i386.rpm > from ftp.gtk.org; they are built against 7.2 with al

gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Hello. Please cc me. I'm not subscribed (yet). No matter what gtk2-code I compile, every time it crashes immediately after the first gtk-statement. Even that simple tutorial from gtk.org crashes (here: "GtkWidget *window;") : #include int main( int argc, char *argv[] ) { Gtk