Hello Mike,

Thanks for the bug report, especially with the detailed backtrace and
the run in gdb.

The segfault on "appdata.filefont->fd" presumably originates at
tclxcircuit.c line 9756:

   if ((xcuid = Tk_GetOption(tkwind, "filelistfont", "Font")) == NULL)
      xcuid = "-*-helvetica-medium-r-normal--14-*";
   appdata.filefont = XLoadQueryFont(dpy, (char *)xcuid);

   if (appdata.filefont == NULL)
   {
      appdata.filefont = XLoadQueryFont(dpy, "-*-*-medium-r-normal--14-*");
      if (appdata.filefont == NULL)
         appdata.filefont = XLoadQueryFont(dpy, "-*-*-*-*-*--*-*");
   }

Apparently the application is having trouble finding any fonts at all.
I should have additional failsafes in the code there, except that I have
not before seen a Linux distribution that did not have at least one
font;  that is, the last line with "-*-*-*-*-*--*-*" will match any font
at all.  I assume that Tk_GetOption() has failed for the same reason.

The most likely fix is to install the X11 fonts and assume that the
package manager knows where to put everything and make the right links
for XLoadQueryFont() to work.  Manjaro Linux uses "pacman", which is the
one package manager I'm not familiar with, but from what I can find
poking around on the web, you might try something like "pacman -S
xorg.fonts.misc"

Also check what is in the path /usr/share/fonts/;  the mapping to the
names used by XLoadQueryFont are in mapping files "fonts.dir" down
those paths;  e.g., on my system /usr/share/fonts/default/Type1/fonts.dir
has mappings like

n019003l.pfb -urw-nimbus sans l-medium-r-normal--0-0-0-0-p-0-adobe-standard

which gives XLoadQueryFont() something to work with.

Of course, if none of that works, send me another email and we'll figure
it out eventually.
                                        Regards,
                                        Tim

+--------------------------------+-------------------------------------+
| R. Timothy Edwards (Tim)       | email: t...@opencircuitdesign.com    |
| Open Circuit Design            | web:   http://opencircuitdesign.com |
| 19601 Jerusalem Road           | phone: (240) 489-3255               |
| Poolesville, MD 20837          | cell:  (408) 828-8212               |
+--------------------------------+-------------------------------------+

_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to