Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion XtConvertAndStore() error

Path: g2news1.google.com!postnews.google.com!e56g2000cwe.googlegroups.com!not-for-mail
From: noj...@gate.cpmet.ufpel.tche.br
Newsgroups: comp.windows.x.intrinsics
Subject: Re: XtConvertAndStore() error
Date: 23 Feb 2006 17:47:36 -0800
Organization: http://groups.google.com
Lines: 55
Message-ID: <1140745656.278844.266220@e56g2000cwe.googlegroups.com>
References: <i0oqc3-0aa.ln1@main.anatron.com.au>
   <1140661941.151074.232470@o13g2000cwo.googlegroups.com>
   <0vlvc3-t52.ln1@main.anatron.com.au>
NNTP-Posting-Host: 201.22.211.169
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1140745661 20354 127.0.0.1 (24 Feb 2006 01:47:41 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 24 Feb 2006 01:47:41 +0000 (UTC)
In-Reply-To: <0vlvc3-t52.ln1@main.anatron.com.au>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8) Gecko/20060117 Firefox/1.5,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: e56g2000cwe.googlegroups.com; posting-host=201.22.211.169;
   posting-account=XLCZ-wwAAAAHio1DaBRykNPGEdW829SV


Russell Shaw wrote:
> noj...@gate.cpmet.ufpel.tche.br wrote:
> > Russell Shaw wrote:
> >
> >>Hi,
> >>In two unrelated X programs, XtConvertAndStore() fails saying:
> >>
> >>    Warning: Missing charsets in String to FontSet conversion
> >>    Warning: Unable to load any usable fontset
> >>    Error: Couldn't find per display information
> >
> > ---8<
> >
> >>     XrmValue from, to;
> >>
> >>     from.addr = (char *)gui.rsrc_tooltip_font_name;
> >>     from.size = strlen(from.addr);
> >>     to.addr = (XtPointer)&gui.tooltip_fontset;
> >>     to.size = sizeof(XFontSet);
> >>
> >>     if (XtConvertAndStore(vimShell, XtRString, &from, XtRFontSet, &to) == False)
> >>     {
> >>         /* Failed. What to do? */
> >>     }
> >
> > ---8<---
> >
> >>(gdb) print from.addr
> >>$2 = 0x8181353 "XtDefaultFontSet"
> >
> > Do you have a value for xtDefaultFontSet in your resource database?
>
> I think it is hard-coded in the Xt library. The program was working
> ok without a resource database, before i upgraded some things on my
> system.

It is hard-coded but you can replace it on-the-fly either via display
resource
database, application resource file or command line, like in

   xedit -xrm '*xtDefaultFontSet: -*-courier-medium-r-normal-*-120-*'

Perhaps the resource database is being corrupted by some other code in
your application or provided by from some library.  What happens if you
run the same program on a different system?

I'm starting to get curious about this bug. I never saw such thing
happen
before. Could you please post a compilable standalone code that makes
the same bug raise? That would help to isolate the cause of the
problem.

--- Casantos