From internet_everyone@yahoo.com  Sun May 31 22:39:21 2015
Received: (at submit) by bugs.x2go.org; 31 May 2015 20:39:23 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	HTML_MESSAGE,T_DKIM_INVALID autolearn=ham version=3.3.2
Received: from nm35-vm6.bullet.mail.ne1.yahoo.com (nm35-vm6.bullet.mail.ne1.yahoo.com [98.138.229.102])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id D6F895DA88
	for <submit@bugs.x2go.org>; Sun, 31 May 2015 22:39:20 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1433104759; bh=pAfjTHQL29Lpp8IynYKw5hXNqqILDvg0Ofe1faq3Fto=; h=Date:From:Reply-To:To:Subject:From:Subject; b=NigxgI/ivudOV6IE4OR5eEEoS9RV/BWpcsQFgESEXMQhz98tEUXrBMDJV/I65mf+w5RL+pXEv8MLtPnv/Yanvh0OeUmPhuRccxjUMNU9TwjnlU/UiTFPaOcWavETW0yb5PWyHTVfwRZS3yw9H0o9pIWiyv74wBqb7pgE12FONhDLqkzjVVUf1dKNnn6PJOYdCWsqui1KZAVnZdmEAIM1WpyEpTnVgDzujPjHhCsxq3Ggl/ngp8QUwV8+VomuL/CcmGnYdKcwuQRzI4Zgt3lPB6l1ohDH2c+tjw11azVLIxLhjAycBgULNph6nV5NqMZGujVrZbDGJhoYX2mRGIteDg==
Received: from [127.0.0.1] by nm35.bullet.mail.ne1.yahoo.com with NNFMP; 31 May 2015 20:39:19 -0000
Received: from [98.138.100.115] by nm35.bullet.mail.ne1.yahoo.com with NNFMP; 31 May 2015 20:36:38 -0000
Received: from [98.138.87.3] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 31 May 2015 20:36:38 -0000
Received: from [127.0.0.1] by omp1003.mail.ne1.yahoo.com with NNFMP; 31 May 2015 20:36:38 -0000
X-Yahoo-Newman-Property: ymail-4
X-Yahoo-Newman-Id: 589756.19217.bm@omp1003.mail.ne1.yahoo.com
X-YMail-OSG: Lb075RoVM1k8z23cTBtIEsC8ZP5GJRF3geNrfqp.bzMgYMpxpizzGfZfV_8TifH
 Hj77AZeMfY98xrqOXJiQJYw76r8FzjMItt38tzaMFyR9JGyQBwO4_AY7I6xQgVF7LVF1rUXsvQ82
 czniYZyvFVPRGFi1EolSCA2uX7CJ7xnsaUE2pt6mEUMyUjCiKestm2WotU3cmAPxUOjgviEtw0h8
 Y32.9Z3N7IpAQBx69sF0.YdtdLqvxB3w0Kjr8aH9XDIkiHzDH0W9Ke0G.WmLrCUvk0..Kus3tjOH
 qqq2sJP.bIYu3_nSIqgJkQjYN9Uy.O19xkhGRcalruwVkZ_AT7czFvCRzf6k12jhTexDgLdHrjib
 bbSjwHvdMhrhMPs_eT2aaQpKw6lgWtQeFUlyHa5SzgHfemMJgTkVioS9I7m5XEjBvaPbAdsX6pUD
 S0fYFofzRcqQkoo.gfnC3UYJKjocVJTF5.e1uuDhNBzynqYU8VV8T.wtJksBTj2DFmP6KHL6iqhp
 hQxtE_ACkodDg09v7AJ_RDFJOhVGeWbw0sA--
Received: by 98.138.105.248; Sun, 31 May 2015 20:36:38 +0000 
Date: Sun, 31 May 2015 20:35:57 +0000 (UTC)
From: devsk <internet_everyone@yahoo.com>
Reply-To: devsk <internet_everyone@yahoo.com>
To: "submit@bugs.x2go.org" <submit@bugs.x2go.org>
Message-ID: <708412767.2173649.1433104557085.JavaMail.yahoo@mail.yahoo.com>
Subject: nxagent fails to run with "Could not open default font 'fixed'"
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_2173648_543309729.1433104557076"

------=_Part_2173648_543309729.1433104557076
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Package: nx-libsVersion: 3.5.0.30Distro: Gentoo ~amd64, fully updated.x2goc=
lient: 4.0.3.2x2server: 4.0.1.19nx-libs (package nx in gentoo): 3.5.0.30fon=
tsproto: 2.1.3libXfont: 1.5.1xorg-server: 1.17.1All font packages for xorg-=
x11 are installed and fonts.dir and fonts.alias files are correctly present=
 and readable.Detailed troubleshooting: =C2=A0https://forums.gentoo.org/vie=
wtopic-p-7755384.html
The client connects and the server spawns the nxagent but then the session =
is unexpectedly terminated. Looking at the server side log, we see:
Info: Using shared memory parameters 1/1/0/0K.=C2=A0Info: Using alpha chann=
el in render extension.=C2=A0Info: Not using local device configuration cha=
nges.=C2=A0keyboard file created=C2=A0Error: Aborting session with 'Could n=
ot open default font 'fixed''.=C2=A0Session: Aborting session at 'Tue May 2=
6 23:22:22 2015'.=C2=A0Session: Session aborted at 'Tue May 26 23:22:22 201=
5'.=C2=A0
I ran the nxagent through strace -ff -tt -v and its clear that it loads all=
 fonts (at least it finds all font.alias and reads them fine) correctly. No=
ne of the children it spawns run into any issues with missing files or fold=
ers. The snippet below (you can read longer strace on gentoo forum post):
22:11:10.608011 open("/usr/share/fonts/100dpi/fonts.alias", O_RDONLY) =3D 4=
=C2=A022:11:10.608108 fstat(4, {st_mode=3DS_IFREG|0644, st_size=3D3154, ...=
}) =3D 0=C2=A022:11:10.608217 fstat(4, {st_mode=3DS_IFREG|0644, st_size=3D3=
154, ...}) =3D 0=C2=A022:11:10.608308 mmap(NULL, 4096, PROT_READ|PROT_WRITE=
, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =3D 0x7f29ca5a9000=C2=A022:11:10.608398=
 read(4, "lucidasans-bolditalic-8 -b&h-luc"..., 4096) =3D 3154=C2=A022:11:1=
0.608496 brk(0x1f01000) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D 0x1f01000=C2=
=A022:11:10.608688 read(4, "", 4096) =C2=A0 =C2=A0 =C2=A0 =3D 0=C2=A022:11:=
10.608781 close(4) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
=3D 0=C2=A022:11:10.608868 munmap(0x7f29ca5a9000, 4096) =3D 0=C2=A022:11:10=
.609148 write(2, "Error: Aborting session with '", 30Error: Aborting sessio=
n with ') =3D 30=C2=A022:11:10.609277 write(2, "Could not open default font=
 'fix"..., 35Could not open default font 'fixed') =3D 35=C2=A022:11:10.6093=
95 write(2, "'.\n", 3'.=C2=A0) =C2=A0 =C2=A0 =3D 3=C2=A0
Looking at the code, the origin of the error is:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 InitFonts();=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 i=
f (loadableFonts) {=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 SetFontP=
ath(0, 0, (unsigned char *)defaultFontPath, &error);=C2=A0=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 } else {=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (SetD=
efaultFontPath(defaultFontPath) !=3D Success)=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ErrorF("failed to set default font path '%s=
'",=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 defaultFontPath);=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 }=C2=
=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (!SetDefaultFont(defaultTextFont))=C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 FatalError("could not open defaul=
t font '%s'", defaultTextFont);=C2=A0
SetDefaultFont() is failing. Looking at that function (text below from IRC =
channel):
[19:57] <devsk> SetDefaultFont(char *defaultfontname)[19:57] <devsk> {[19:5=
7] <devsk> =C2=A0 =C2=A0 int =C2=A0 =C2=A0 =C2=A0 =C2=A0 err;[19:57] <devsk=
> =C2=A0 =C2=A0 FontPtr =C2=A0 =C2=A0 pf;[19:57] <devsk> =C2=A0 =C2=A0 XID =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fid;[19:57] <devsk> =C2=A0 =C2=A0 fid =3D FakeC=
lientID(0);[19:57] <devsk> =C2=A0 =C2=A0 err =3D OpenFont(serverClient, fid=
, FontLoadAll | FontOpenSync,[19:57] <devsk> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(unsigned) strlen(defaultfontname)=
, defaultfontname);[19:57] <devsk> =C2=A0 =C2=A0 if (err !=3D Success)[19:5=
7] <devsk> =C2=A0 =C2=A0 =C2=A0 =C2=A0 return FALSE;[19:57] <devsk> =C2=A0 =
=C2=A0 pf =3D (FontPtr) LookupIDByType(fid, RT_FONT);[19:57] <devsk> =C2=A0=
 =C2=A0 if (pf =3D=3D (FontPtr) NULL)[19:57] <devsk> =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 return FALSE;[19:57] <devsk> =C2=A0 =C2=A0 defaultFont =3D pf;[19:57=
] <devsk> =C2=A0 =C2=A0 return TRUE;[19:57] <devsk> I have a feeling that L=
ookupIDByType() is the one failing[19:58] <devsk> OpenFont() has error path=
s for malloc failures and none of those looked like plausible[19:58] <devsk=
> LookupIDByType() was obsoleted quite a while ago in xorg code[19:59] <dev=
sk> nx-X11 of course is hanging onto old code[19:59] <devsk> is it possible=
 that there is some interaction there with newer libXfont which is making t=
hat function fail now[20:00] <devsk> unfortunately for me, its not possible=
 to go back to libXfont-1.4. There is a bunch of crap which needs to be dow=
ngraded as well. And dependency hell breaks loose if I try that[20:00] <dev=
sk> above snippet is in ./programs/Xserver/dix/dixfonts.c
I did this experiment for localhost connection to avoid differences in clie=
nt and server packages (which is not the case anyway because for me both cl=
ient and remote server are Gentoo ~amd64 updated systems).
Anybody got any ideas of why this is happening? Is it really about the newe=
r fontsproto and libXfont not being compatible with nx-libs?
Thanks,devsk

------=_Part_2173648_543309729.1433104557076
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:lu=
cida console, sans-serif;font-size:13px"><div id=3D"yui_3_16_0_1_1433102414=
740_21422" class=3D"" style=3D"">Package: nx-libs</div><div id=3D"yui_3_16_=
0_1_1433102414740_21422" class=3D"" style=3D"">Version: 3.5.0.30</div><div =
id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">Distro: Gento=
o ~amd64, fully updated.</div><div id=3D"yui_3_16_0_1_1433102414740_21422" =
class=3D"" style=3D"">x2goclient: 4.0.3.2</div><div id=3D"yui_3_16_0_1_1433=
102414740_21422" class=3D"" style=3D"">x2server: 4.0.1.19</div><div id=3D"y=
ui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">nx-libs (package nx =
in gentoo): 3.5.0.30</div><div id=3D"yui_3_16_0_1_1433102414740_21422" clas=
s=3D"" style=3D"">fontsproto: 2.1.3</div><div id=3D"yui_3_16_0_1_1433102414=
740_21422" class=3D"" style=3D"">libXfont: 1.5.1</div><div id=3D"yui_3_16_0=
_1_1433102414740_21422" class=3D"" style=3D"">xorg-server: 1.17.1</div><div=
 id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">All font pac=
kages for xorg-x11 are installed and fonts.dir and fonts.alias files are co=
rrectly present and readable.</div><div id=3D"yui_3_16_0_1_1433102414740_21=
422" class=3D"" style=3D"">Detailed troubleshooting: &nbsp;https://forums.g=
entoo.org/viewtopic-p-7755384.html</div><div id=3D"yui_3_16_0_1_14331024147=
40_21422" class=3D"" style=3D""><br class=3D"" style=3D""></div><div id=3D"=
yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">The client connects=
 and the server spawns the nxagent but then the session is unexpectedly ter=
minated. Looking at the server side log, we see:</div><div id=3D"yui_3_16_0=
_1_1433102414740_21422" class=3D"" style=3D""><br class=3D"" style=3D""></d=
iv><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">Info:=
 Using shared memory parameters 1/1/0/0K.&nbsp;</div><div id=3D"yui_3_16_0_=
1_1433102414740_21422" class=3D"" style=3D"">Info: Using alpha channel in r=
ender extension.&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" cl=
ass=3D"" style=3D"">Info: Not using local device configuration changes.&nbs=
p;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">=
keyboard file created&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_2142=
2" class=3D"" style=3D"">Error: Aborting session with 'Could not open defau=
lt font 'fixed''.&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" c=
lass=3D"" style=3D"">Session: Aborting session at 'Tue May 26 23:22:22 2015=
'.&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=
=3D"">Session: Session aborted at 'Tue May 26 23:22:22 2015'.&nbsp;</div><d=
iv id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D""><br class=
=3D"" style=3D""></div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=
=3D"" style=3D"">I ran the nxagent through strace -ff -tt -v and its clear =
that it loads all fonts (at least it finds all font.alias and reads them fi=
ne) correctly. None of the children it spawns run into any issues with miss=
ing files or folders. The snippet below (you can read longer strace on gent=
oo forum post):</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"=
" style=3D""><br class=3D"" style=3D""></div><div id=3D"yui_3_16_0_1_143310=
2414740_21422" class=3D"" style=3D"">22:11:10.608011 open("/usr/share/fonts=
/100dpi/fonts.alias", O_RDONLY) =3D 4&nbsp;</div><div id=3D"yui_3_16_0_1_14=
33102414740_21422" class=3D"" style=3D"">22:11:10.608108 fstat(4, {st_mode=
=3DS_IFREG|0644, st_size=3D3154, ...}) =3D 0&nbsp;</div><div id=3D"yui_3_16=
_0_1_1433102414740_21422" class=3D"" style=3D"">22:11:10.608217 fstat(4, {s=
t_mode=3DS_IFREG|0644, st_size=3D3154, ...}) =3D 0&nbsp;</div><div id=3D"yu=
i_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">22:11:10.608308 mmap(=
NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =3D 0x7=
f29ca5a9000&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=
=3D"" style=3D"">22:11:10.608398 read(4, "lucidasans-bolditalic-8 -b&amp;h-=
luc"..., 4096) =3D 3154&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21=
422" class=3D"" style=3D"">22:11:10.608496 brk(0x1f01000) &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp;=3D 0x1f01000&nbsp;</div><div id=3D"yui_3_16_0_1_143310241=
4740_21422" class=3D"" style=3D"">22:11:10.608688 read(4, "", 4096) &nbsp; =
&nbsp; &nbsp; =3D 0&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422"=
 class=3D"" style=3D"">22:11:10.608781 close(4) &nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp;=3D 0&nbsp;</div><div id=3D"yui_3_16_0_1_143310=
2414740_21422" class=3D"" style=3D"">22:11:10.608868 munmap(0x7f29ca5a9000,=
 4096) =3D 0&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=
=3D"" style=3D"">22:11:10.609148 write(2, "Error: Aborting session with '",=
 30Error: Aborting session with ') =3D 30&nbsp;</div><div id=3D"yui_3_16_0_=
1_1433102414740_21422" class=3D"" style=3D"">22:11:10.609277 write(2, "Coul=
d not open default font 'fix"..., 35Could not open default font 'fixed') =
=3D 35&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" s=
tyle=3D"">22:11:10.609395 write(2, "'.\n", 3'.&nbsp;</div><div id=3D"yui_3_=
16_0_1_1433102414740_21422" class=3D"" style=3D"">) &nbsp; &nbsp; =3D 3&nbs=
p;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">=
<br class=3D"" style=3D""></div><div id=3D"yui_3_16_0_1_1433102414740_21422=
" class=3D"" style=3D"">Looking at the code, the origin of the error is:</d=
iv><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D""><br c=
lass=3D"" style=3D""></div><div id=3D"yui_3_16_0_1_1433102414740_21422" cla=
ss=3D"" style=3D"">&nbsp; &nbsp; &nbsp; &nbsp; InitFonts();&nbsp;</div><div=
 id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">&nbsp; &nbsp=
; &nbsp; &nbsp; if (loadableFonts) {&nbsp;</div><div id=3D"yui_3_16_0_1_143=
3102414740_21422" class=3D"" style=3D"">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; SetFontPath(0, 0, (unsigned char *)defaultFontPath, &amp;error);&nbs=
p;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">=
&nbsp; &nbsp; &nbsp; &nbsp; } else {&nbsp;</div><div id=3D"yui_3_16_0_1_143=
3102414740_21422" class=3D"" style=3D"">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; if (SetDefaultFontPath(defaultFontPath) !=3D Success)&nbsp;</div><di=
v id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">&nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ErrorF("failed to set default =
font path '%s'",&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" cl=
ass=3D"" style=3D"">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp; defaultFontPath);&nbsp;</div><div id=3D"yui_3_=
16_0_1_1433102414740_21422" class=3D"" style=3D"">&nbsp; &nbsp; &nbsp; &nbs=
p; }&nbsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" sty=
le=3D"">&nbsp; &nbsp; &nbsp; &nbsp; if (!SetDefaultFont(defaultTextFont))&n=
bsp;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"=
">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FatalError("could not open defa=
ult font '%s'", defaultTextFont);&nbsp;</div><div id=3D"yui_3_16_0_1_143310=
2414740_21422" class=3D"" style=3D""><br class=3D"" style=3D""></div><div i=
d=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">SetDefaultFont=
() is failing. Looking at that function (text below from IRC channel):</div=
><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D""><br cla=
ss=3D"" style=3D""></div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=
=3D"" style=3D"">[19:57] &lt;devsk&gt; SetDefaultFont(char *defaultfontname=
)</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">[=
19:57] &lt;devsk&gt; {</div><div id=3D"yui_3_16_0_1_1433102414740_21422" cl=
ass=3D"" style=3D"">[19:57] &lt;devsk&gt; &nbsp; &nbsp; int &nbsp; &nbsp; &=
nbsp; &nbsp; err;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=
=3D"" style=3D"">[19:57] &lt;devsk&gt; &nbsp; &nbsp; FontPtr &nbsp; &nbsp; =
pf;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D""=
>[19:57] &lt;devsk&gt; &nbsp; &nbsp; XID &nbsp; &nbsp; &nbsp; &nbsp; fid;</=
div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">[19:=
57] &lt;devsk&gt; &nbsp; &nbsp; fid =3D FakeClientID(0);</div><div id=3D"yu=
i_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">[19:57] &lt;devsk&gt;=
 &nbsp; &nbsp; err =3D OpenFont(serverClient, fid, FontLoadAll | FontOpenSy=
nc,</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D""=
>[19:57] &lt;devsk&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp;(unsigned) strlen(defaultfontname), defaultfontname);</div=
><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">[19:57]=
 &lt;devsk&gt; &nbsp; &nbsp; if (err !=3D Success)</div><div id=3D"yui_3_16=
_0_1_1433102414740_21422" class=3D"" style=3D"">[19:57] &lt;devsk&gt; &nbsp=
; &nbsp; &nbsp; &nbsp; return FALSE;</div><div id=3D"yui_3_16_0_1_143310241=
4740_21422" class=3D"" style=3D"">[19:57] &lt;devsk&gt; &nbsp; &nbsp; pf =
=3D (FontPtr) LookupIDByType(fid, RT_FONT);</div><div id=3D"yui_3_16_0_1_14=
33102414740_21422" class=3D"" style=3D"">[19:57] &lt;devsk&gt; &nbsp; &nbsp=
; if (pf =3D=3D (FontPtr) NULL)</div><div id=3D"yui_3_16_0_1_1433102414740_=
21422" class=3D"" style=3D"">[19:57] &lt;devsk&gt; &nbsp; &nbsp; &nbsp; &nb=
sp; return FALSE;</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=
=3D"" style=3D"">[19:57] &lt;devsk&gt; &nbsp; &nbsp; defaultFont =3D pf;</d=
iv><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">[19:5=
7] &lt;devsk&gt; &nbsp; &nbsp; return TRUE;</div><div id=3D"yui_3_16_0_1_14=
33102414740_21422" class=3D"" style=3D"">[19:57] &lt;devsk&gt; I have a fee=
ling that LookupIDByType() is the one failing</div><div id=3D"yui_3_16_0_1_=
1433102414740_21422" class=3D"" style=3D"">[19:58] &lt;devsk&gt; OpenFont()=
 has error paths for malloc failures and none of those looked like plausibl=
e</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">[=
19:58] &lt;devsk&gt; LookupIDByType() was obsoleted quite a while ago in xo=
rg code</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=
=3D"">[19:59] &lt;devsk&gt; nx-X11 of course is hanging onto old code</div>=
<div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">[19:59] =
&lt;devsk&gt; is it possible that there is some interaction there with newe=
r libXfont which is making that function fail now</div><div id=3D"yui_3_16_=
0_1_1433102414740_21422" class=3D"" style=3D"">[20:00] &lt;devsk&gt; unfort=
unately for me, its not possible to go back to libXfont-1.4. There is a bun=
ch of crap which needs to be downgraded as well. And dependency hell breaks=
 loose if I try that</div><div id=3D"yui_3_16_0_1_1433102414740_21422" clas=
s=3D"" style=3D"">[20:00] &lt;devsk&gt; above snippet is in ./programs/Xser=
ver/dix/dixfonts.c</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=
=3D"" style=3D""><br class=3D"" style=3D""></div><div id=3D"yui_3_16_0_1_14=
33102414740_21422" class=3D"" style=3D"">I did this experiment for localhos=
t connection to avoid differences in client and server packages (which is n=
ot the case anyway because for me both client and remote server are Gentoo =
~amd64 updated systems).</div><div id=3D"yui_3_16_0_1_1433102414740_21422" =
class=3D"" style=3D""><br class=3D"" style=3D""></div><div id=3D"yui_3_16_0=
_1_1433102414740_21422" class=3D"" style=3D"">Anybody got any ideas of why =
this is happening? Is it really about the newer fontsproto and libXfont not=
 being compatible with nx-libs?</div><div id=3D"yui_3_16_0_1_1433102414740_=
21422" class=3D"" style=3D""><br class=3D"" style=3D""></div><div id=3D"yui=
_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">Thanks,</div><div id=
=3D"yui_3_16_0_1_1433102414740_21422" dir=3D"ltr" class=3D"" style=3D"">dev=
sk</div><div id=3D"yui_3_16_0_1_1433102414740_21422" class=3D"" style=3D"">=
<br class=3D"" style=3D""></div></div></body></html>
------=_Part_2173648_543309729.1433104557076--

