FC3 Xorg/Gtk update breaks GTK application.

Tony Denault denault at hawaii.edu
Mon Dec 6 19:23:03 UTC 2004


I applied the FC3 updates on 12/3, this include xorg and gtk updates.

Now my gtk application dumps core displaying on the FC3 Xserver.
I traced the problem to:

      if( (W.big_font = gdk_font_load ( big_font_name )) == NULL )
      {
         printf("Error unable to font: %s\n", big_font_name);
         exit(0);
      }
      W.big_font_wid = gdk_char_width( W.big_font, 'W' );
      W.big_font_hgt =  W.big_font->ascent+W.big_font->descent;

      printf("big_font: name=%s %dx%d\n", big_font_name, W.big_font_wid, W.big_font_hgt );
      printf("%d \n", gdk_char_width( W.big_font, 'W' ));

Here is the output:

  big_font: name=-*-lucidatypewriter-*-*-*-*-18-*-*-*-*-*-*-* 0x19
  0
  Floating exception (core dumped)

Something is broken with FC3 with get_char_wid() -> return 0 for
wid for this font.
Note, this works if I used a difference font (ie Fonts are -*-fixed-*-*-*-*-20-*-*-*-*-*-*-*)

Also the application runs OK if I export my DISPLAY to my office computer
(XP running X-Win32 server with Solaris Openlook window manager). Only
noticed the problem when running on the FC3 console.

Tony

/-----------------------------------------------------------------------\
| Tony Denault                     | Email: denault at irtf.ifa.hawaii.edu |
| Institute for Astronomy          |              Phone: (808) 932-2378 |
| 640 North Aohoku Place           |                Fax: (808) 933-0737 |
| Hilo, Hawaii 96720               |                                    |
\-----------------------------------------------------------------------/




More information about the fedora-list mailing list