xterm aborts upon ctrl+click

  • Done
  • quality assurance status badge
Details
7 participants
  • Alex Kost
  • Oleg Pykhalov
  • John Darrington
  • Ludovic Courtès
  • Maxim Cournoyer
  • Mark H Weaver
  • ng0
Owner
unassigned
Submitted by
John Darrington
Severity
minor

Debbugs page

John Darrington wrote 9 years ago
Bug in xterm and/or fontconfig
(address . bug-guix@gnu.org)
20160821131806.GA7072@jocasta.intra
In GuixSD:

guix package -i xterm strace
strace xterm

xterm starts as it should, however observe many failed calls similar to:
open("/gnu/store/b484nvn9nnr3ddclpz2fma9yxmimg2jj-fontconfig-2.11.94/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)


Now in the xterm, hold down Ctrl and press any mouse button.
The xterm aborts with the following messages:
Warning: Unable to load any usable ISO8859 font
Error: Aborting: no font found



--
Avoid eavesdropping. Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.netor any PGP keyserver for public key.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAle5qg4ACgkQimdxnC3oJ7M0LQCfaAD0J8r3Tc7WiMi7pWL4czn2
YXkAn2ivseSpbRuP+/fXFhegBtr4Sb9r
=OSlI
-----END PGP SIGNATURE-----


Alex Kost wrote 9 years ago
(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
877fb9ci9h.fsf@gmail.com
John Darrington (2016-08-21 16:18 +0300) wrote:

Toggle quote (14 lines)
> In GuixSD:
>
> guix package -i xterm strace
> strace xterm
>
> xterm starts as it should, however observe many failed calls similar to:
> open("/gnu/store/b484nvn9nnr3ddclpz2fma9yxmimg2jj-fontconfig-2.11.94/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>
>
> Now in the xterm, hold down Ctrl and press any mouse button.
> The xterm aborts with the following messages:
> Warning: Unable to load any usable ISO8859 font
> Error: Aborting: no font found

Pressing Ctrl with any mouse button displays menus for me without any
error. Did you install any font in your profile? Try for example,
"guix package -i font-dejavu". Perhaps you will also need to run
"fc-cache -f".

To make Xterm use a font I want, I have these lines in my ~/XTerm (it
can also be placed in ~/.Xresources I think):

XTerm*faceName: DejaVu Sans Mono
XTerm*faceSize: 12

--
Alex
John Darrington wrote 9 years ago
(name . Alex Kost)(address . alezost@gmail.com)(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
20160822134152.GA22645@jocasta.intra
On Mon, Aug 22, 2016 at 11:36:26AM +0300, Alex Kost wrote:
John Darrington (2016-08-21 16:18 +0300) wrote:
> In GuixSD:
>
> guix package -i xterm strace
> strace xterm
>
> xterm starts as it should, however observe many failed calls similar to:
> open("/gnu/store/b484nvn9nnr3ddclpz2fma9yxmimg2jj-fontconfig-2.11.94/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>
>
> Now in the xterm, hold down Ctrl and press any mouse button.
> The xterm aborts with the following messages:
> Warning: Unable to load any usable ISO8859 font
> Error: Aborting: no font found
Pressing Ctrl with any mouse button displays menus for me without any
error. Did you install any font in your profile? Try for example,
"guix package -i font-dejavu". Perhaps you will also need to run
"fc-cache -f".

So that means that font-dejavu should be an input of xterm. Shall I make that
change?


To make Xterm use a font I want, I have these lines in my ~/XTerm (it
can also be placed in ~/.Xresources I think):
XTerm*faceName: DejaVu Sans Mono
XTerm*faceSize: 12

Presumably there is a default font which should work without any resource explicitly set?

J'

--
Avoid eavesdropping. Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.netor any PGP keyserver for public key.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAle7ASAACgkQimdxnC3oJ7NmuwCeIYcQjDv8HYlkb5uj/iTiQsRt
CO8AnjciQFeyQrgEvZC6F5b+nMCTfQwO
=cpV3
-----END PGP SIGNATURE-----


Alex Kost wrote 9 years ago
(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87vayshclc.fsf@gmail.com
John Darrington (2016-08-22 16:41 +0300) wrote:

Toggle quote (26 lines)
> On Mon, Aug 22, 2016 at 11:36:26AM +0300, Alex Kost wrote:
> John Darrington (2016-08-21 16:18 +0300) wrote:
>
> > In GuixSD:
> >
> > guix package -i xterm strace
> > strace xterm
> >
> > xterm starts as it should, however observe many failed calls similar to:
> > open("/gnu/store/b484nvn9nnr3ddclpz2fma9yxmimg2jj-fontconfig-2.11.94/lib/libXdmcp.so.6",
> > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >
> >
> > Now in the xterm, hold down Ctrl and press any mouse button.
> > The xterm aborts with the following messages:
> > Warning: Unable to load any usable ISO8859 font
> > Error: Aborting: no font found
>
> Pressing Ctrl with any mouse button displays menus for me without any
> error. Did you install any font in your profile? Try for example,
> "guix package -i font-dejavu". Perhaps you will also need to run
> "fc-cache -f".
>
> So that means that font-dejavu should be an input of xterm. Shall I make that
> change?

I have no idea :-) I don't know why you get that error and how to fix
it, I just made a guess.

--
Alex
Ludovic Courtès wrote 9 years ago
(name . Alex Kost)(address . alezost@gmail.com)(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87wpj10x64.fsf@gnu.org
Alex Kost <alezost@gmail.com> skribis:

Toggle quote (2 lines)
> John Darrington (2016-08-21 16:18 +0300) wrote:

[...]

Toggle quote (5 lines)
>> Now in the xterm, hold down Ctrl and press any mouse button.
>> The xterm aborts with the following messages:
>> Warning: Unable to load any usable ISO8859 font
>> Error: Aborting: no font found

Same here.

Toggle quote (3 lines)
> Pressing Ctrl with any mouse button displays menus for me without any
> error. Did you install any font in your profile?

Xterm uses server-side font rendering, so this cannot be a Fontconfig
issue. Could it be related to 9eb5a449eed7297fdc2e6f3e77c2f625b07fddd1?

‘strace xterm’ suggests that xterm queries Xft, and eventually bails
out:

Toggle snippet (34 lines)
writev(3, [{"-\1\f\0+\0 \1$\0\0\0-*-*-*-R-*-*-*-120-*"..., 56}, {NULL, 0}, {"", 0}], 3) = 56
poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\17\364\1+\0 \1\0\0-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 64
open("/gnu/store/2fxgv78y9ngm31s10cb12pbjxwhdkvlb-libxt-1.1.5/share/X11/XtErrorDB", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "Warning: Unable to load any usab"..., 48Warning: Unable to load any usable ISO8859 font
) = 48
poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"1\1\v\0\1\0$\0", 8}, {"-*-*-*-R-*-*-*-120-*-*-*-*-ISO88"..., 36}, {"", 0}], 3) = 44
poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\366\1\17\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 92
recvmsg(3, 0x7ffeea61d370, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"1\1\v\0\1\0$\0", 8}, {"-*-*-*-R-*-*-*-120-*-*-*-*-ISO88"..., 36}, {"", 0}], 3) = 44
poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\367\1\17\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 92
recvmsg(3, 0x7ffeea61d310, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, 0x7ffeea61d310, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"-\1\22\0,\0 \0019\0\0\0-adobe-courier-bold-"..., 80}, {NULL, 0}, {"", 0}], 3) = 80
poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\371\0017\3\0\0\0\0\1\0\7\0\377\377\371\377\0\0\0\0\0\0\3\0\10\0\7\0\v\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 3324
recvmsg(3, 0x7ffeea61d4b0, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, 0x7ffeea61d4b0, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, 0x7ffeea61d4b0, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"-\1\22\0-\0 \0019\0\0\0-adobe-courier-bold-"..., 80}, {NULL, 0}, {"", 0}], 3) = 80
poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\373\0017\3\0\0\0\0\1\0\7\0\377\377\371\377\0\0\0\0\0\0\3\0\10\0\7\0\v\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 3324
recvmsg(3, 0x7ffeea61d490, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, 0x7ffeea61d490, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, 0x7ffeea61d490, 0) = -1 EAGAIN (Resource temporarily unavailable)
write(2, "Error: Aborting: no font found\n\n", 32Error: Aborting: no font found

Strangely, “guix environment --ad-hoc xlsfonts -- xlsfonts” does work
and lists many fonts.

Thoughts?

Ludo’.
Alex Kost wrote 9 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87wpj00w42.fsf@gmail.com
Ludovic Courtès (2016-08-28 17:45 +0300) wrote:

Toggle quote (19 lines)
> Alex Kost <alezost@gmail.com> skribis:
>
>> John Darrington (2016-08-21 16:18 +0300) wrote:
>
> [...]
>
>>> Now in the xterm, hold down Ctrl and press any mouse button.
>>> The xterm aborts with the following messages:
>>> Warning: Unable to load any usable ISO8859 font
>>> Error: Aborting: no font found
>
> Same here.
>
>> Pressing Ctrl with any mouse button displays menus for me without any
>> error. Did you install any font in your profile?
>
> Xterm uses server-side font rendering, so this cannot be a Fontconfig
> issue. Could it be related to 9eb5a449eed7297fdc2e6f3e77c2f625b07fddd1?

I don't see how it could be related. That commit didn't remove
anything, it just added "share/fonts/truetype/fonts.{dir/scale}" files
to guix profiles.

[...]
Toggle quote (5 lines)
> Strangely, “guix environment --ad-hoc xlsfonts -- xlsfonts” does work
> and lists many fonts.
>
> Thoughts?

Sorry, I have no idea, and I cannot reproduce this bug.

--
Alex
Mark H Weaver wrote 9 years ago
(name . Alex Kost)(address . alezost@gmail.com)(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87h99zmixm.fsf@netris.org
Alex Kost <alezost@gmail.com> writes:

Toggle quote (20 lines)
> John Darrington (2016-08-21 16:18 +0300) wrote:
>
>> In GuixSD:
>>
>> guix package -i xterm strace
>> strace xterm
>>
>> xterm starts as it should, however observe many failed calls similar to:
>> open("/gnu/store/b484nvn9nnr3ddclpz2fma9yxmimg2jj-fontconfig-2.11.94/lib/libXdmcp.so.6",
>> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>>
>>
>> Now in the xterm, hold down Ctrl and press any mouse button.
>> The xterm aborts with the following messages:
>> Warning: Unable to load any usable ISO8859 font
>> Error: Aborting: no font found
>
> Pressing Ctrl with any mouse button displays menus for me without any
> error.

Fwiw, I see the same problem with 'xterm' on both of my GuixSD laptops,
on mips64el and i686. The i686 laptop is running a full GNOME desktop
environment, and the mips64el laptop runs a somewhat minified Xfce
environment.

I remember that 'xterm' worked for me in the past, and specifically that
the pop-up menus raised by Ctrl-clicks worked, on both of these
machines. However, at some point in the distant past I switched to
gnome-terminal, so I'm not sure when 'xterm' became broken.

Mark
Alex Kost wrote 9 years ago
(name . Mark H Weaver)(address . mhw@netris.org)(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87y43a3c8w.fsf@gmail.com
Mark H Weaver (2016-09-02 00:03 +0300) wrote:

Toggle quote (3 lines)
> Alex Kost <alezost@gmail.com> writes:
>
>> John Darrington (2016-08-21 16:18 +0300) wrote:
[...]
Toggle quote (13 lines)
>>> Now in the xterm, hold down Ctrl and press any mouse button.
>>> The xterm aborts with the following messages:
>>> Warning: Unable to load any usable ISO8859 font
>>> Error: Aborting: no font found
>>
>> Pressing Ctrl with any mouse button displays menus for me without any
>> error.
>
> Fwiw, I see the same problem with 'xterm' on both of my GuixSD laptops,
> on mips64el and i686. The i686 laptop is running a full GNOME desktop
> environment, and the mips64el laptop runs a somewhat minified Xfce
> environment.

OK, apparently it's broken by default since you all have this problem.
I think I just have some settings on my system that make it work
properly. For example, I start X server with all font paths that I
need (I don't use SLIM), not sure if it relates.

"xset -q" gives me:

...
Font Path:
<profile>truetype,<profile>X11/misc,<profile>X11/100dpi,<profile>X11/75dpi,built-ins

where <profile> is my guix profile with fonts.

Also I don't use 'font-alias' package, instead I use a "pure"
modification of it as described at

But, well, I have no idea why xterm menus work for me :-)

--
Alex
Ludovic Courtès wrote 8 years ago
control message for bug #24279
(address . control@debbugs.gnu.org)
87lgx2nbrp.fsf@gnu.org
retitle 24279 xterm aborts upon ctrl+click
Ludovic Courtès wrote 8 years ago
(address . control@debbugs.gnu.org)
87k2cmnbre.fsf@gnu.org
severity 24279 minor
Maxim Cournoyer wrote 8 years ago
bug#24279: XTerm menu doesn't work (no font found error)
(address . 24279@debbugs.gnu.org)(address . mhw@netris.org)(address . alezost@gmail.com)(address . john@darrington.wattle.id.au)
87k25xf1yc.fsf@gmail.com
I can reproduce this on GuixSD (foreign distros are OK).

By going to tty0 (Ctrl-Alt-F1) we can see the following text which gets
output at every crash:

Toggle snippet (4 lines)
Warning: Unable to load any usable ISO8059 font
ERROR: Aborting: no font found

Apparently there is a patch which might fix that problem, available

Maxim
Oleg Pykhalov wrote 7 years ago
Re: bug#24279: Bug in xterm and/or fontconfig
(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87shcyj2n9.fsf@gmail.com
Hello John,

John Darrington <john@darrington.wattle.id.au> writes:

Toggle quote (14 lines)
> In GuixSD:
>
> guix package -i xterm strace
> strace xterm
>
> xterm starts as it should, however observe many failed calls similar to:
> open("/gnu/store/b484nvn9nnr3ddclpz2fma9yxmimg2jj-fontconfig-2.11.94/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>
>
> Now in the xterm, hold down Ctrl and press any mouse button.
> The xterm aborts with the following messages:
> Warning: Unable to load any usable ISO8859 font
> Error: Aborting: no font found

I solved this issue by:

- Install a font-misc-misc as Mike Hunt from Gentoo forum suggests¹:

$ guix package -i font-misc-misc

- From "(guix) Application Setup"²:

$ xset +fp ~/.guix-profile/share/fonts/X11/misc


I wonder could we do this automatically after installing XTerm?




Oleg.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlodDNoACgkQckbhHGm3
lWmJOBAAru3hkVVo24+NCPAXjSehcTW4ZXksolzXUf87MYwpfzBHERRFW0gVHnAl
SWesOfQpuAgYXn1uj9S83obmr5gnngqXz6Gbrb25gGYbljwVv0o8G8b0CTbrmwpR
aFQ6wwQUwUJcR80jP/XNIxizegWpMVAln2/N9aIUNjn67iGFznODnFORJWoaSIMY
diwu07+PNi6DylOyQGly04hmxaCbhO005yZxnqMHK26WwM9fGUDzBZDt6Bg+D5YK
LxAbkwNFDFlhB6PUCKzxqzPIa1tySmmLedSRAMONd70qKgsQcr9UhE3OTjDI4xFH
UkRJ4R171YpK5k0HymWAVNPgeu3YWfAl9onVS1xoKzhxrVn4iPzPALCOFTUYRtTy
OE/V8jSeW/ZbULEmgeR+zpa0wxENUqURISGBGebZ8zWO4qgirfCBNzJu+LFjTnkb
rpKxUQjvBloxp3zRIMHo0WybQXSvPKK9P1AGjlUdWPNO3MLq5aX8KDl/zt/us23f
tbHoaKD7W2Vr9EI2ZJK4WRkWXW76hwPlNGVMvOg+flNCW+uCFwRuHYEwbN1UCDbB
OpgY8XGYRBJcQt51rr3zJnWLTLT5xpaMccVXZYECmA6n641LX6tv2S94snOa0FCf
12zP7CFcvoICK9p65P1ZWpk4HLPVgUR0T4hTfw5v0mBZH9lEUI4=
=+X/c
-----END PGP SIGNATURE-----

ng0 wrote 7 years ago
Re: bug#24279: XTerm menu doesn't work (no font found error)
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 24279@debbugs.gnu.org)
20171128124143.3vvpsxzuhchuztqz@abyayala
Maxim Cournoyer transcribed 0.5K bytes:
Toggle quote (15 lines)
> I can reproduce this on GuixSD (foreign distros are OK).
>
> By going to tty0 (Ctrl-Alt-F1) we can see the following text which gets
> output at every crash:
>
> --8<---------------cut here---------------start------------->8---
> Warning: Unable to load any usable ISO8059 font
> ERROR: Aborting: no font found
> --8<---------------cut here---------------end--------------->8---
>
> Apparently there is a patch which might fix that problem, available
> here: https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00165.html
>
> Maxim

Good catch, it was just forgotten. Would you like to work on the suggestions
Ludovic gave John? It's unlikely that John will work on them after John
more-or-less left Guix.
--
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlodWYcACgkQ4i+bv+40
hYiQ2g/9HHRG5Oa8nYH8MqPK/Do3mp8ddhUbsVv50hIGZ8i21EgVYrHowWIlTb2m
nN+mw2GtfhdSFc5WDkofaEXIasbXOI0QuTcPXmRZzfk0Zgd35lsgWi5LjoddFmxR
ueeJ80/CmG/lN0QHubNh/Bj9QZKLF2rHU43R6diILtjvYfqDZHCTpEIeGGCYW1EK
5bGWQB5mQ48YnDQh83xxTFnvQG2fOLYwoIF7g481Q9L3glurMO8TxKbZj4C3Tiuz
VXD1JZiFUps7uGKgWsRPSgdAFa9DhYNmwS6/FbhniF4yQxUGQ6A1E92AudjxbM6m
ZKpGKOvIqvxsTFcdmI2WJAiSqCsb8g3shz9vMoWYNeQXhdElSsXy/dZaS6epBKaa
iwrc88zgK+4ZInGqy2uqHYxzuL8oBT0ATMKjF8VOWbaLGZ0y79NG/M+g8Y4zN2ZB
6s0PkQETcOVm1sNSfzyGwGyyb3lS5z0J917pLZX50e7KuWBLklcWoNll7igSZB2L
v+2b6NEJIKX2pWX/J37caG+2skd3mm3kYrzsNAHnAw3/hfzYdPxSaoUQAhm3ZWiz
GBlCjN6Fi+byWZ6iynf6sLoOheVCwPVynUX8RZj5HGvyTA6M1VMAmN60jmoTE7u/
afqsgRvmcCNRtrVO3l32IDH4fxBWEOTQ8QggKnG03dppJQzERw8=
=W4RU
-----END PGP SIGNATURE-----


Alex Kost wrote 7 years ago
Re: bug#24279: Bug in xterm and/or fontconfig
(name . Oleg Pykhalov)(address . go.wigust@gmail.com)(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87shcxh09v.fsf@gmail.com
Oleg Pykhalov (2017-11-28 10:14 +0300) wrote:

Toggle quote (28 lines)
> Hello John,
>
> John Darrington <john@darrington.wattle.id.au> writes:
>
>> In GuixSD:
>>
>> guix package -i xterm strace
>> strace xterm
>>
>> xterm starts as it should, however observe many failed calls similar to:
>> open("/gnu/store/b484nvn9nnr3ddclpz2fma9yxmimg2jj-fontconfig-2.11.94/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>>
>>
>> Now in the xterm, hold down Ctrl and press any mouse button.
>> The xterm aborts with the following messages:
>> Warning: Unable to load any usable ISO8859 font
>> Error: Aborting: no font found
>
> I solved this issue by:
>
> - Install a font-misc-misc as Mike Hunt from Gentoo forum suggests¹:
>
> $ guix package -i font-misc-misc
>
> - From "(guix) Application Setup"²:
>
> $ xset +fp ~/.guix-profile/share/fonts/X11/misc

Just to mention: I have font-misc-misc and some other fonts in my
profile with the Xorg font path set accordingly. Apparently, that's why
I didn't experience this bug :-)

--
Alex
Maxim Cournoyer wrote 7 years ago
Re: bug#24279: XTerm menu doesn't work (no font found error)
(name . ng0)(address . ng0@n0.is)(address . 24279@debbugs.gnu.org)
87fu8xp7jj.fsf@gmail.com
Hi ng0,

ng0 <ng0@n0.is> writes:

Toggle quote (20 lines)
> Maxim Cournoyer transcribed 0.5K bytes:
>> I can reproduce this on GuixSD (foreign distros are OK).
>>
>> By going to tty0 (Ctrl-Alt-F1) we can see the following text which gets
>> output at every crash:
>>
>> --8<---------------cut here---------------start------------->8---
>> Warning: Unable to load any usable ISO8059 font
>> ERROR: Aborting: no font found
>> --8<---------------cut here---------------end--------------->8---
>>
>> Apparently there is a patch which might fix that problem, available
>> here: https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00165.html
>>
>> Maxim
>
> Good catch, it was just forgotten. Would you like to work on the suggestions
> Ludovic gave John? It's unlikely that John will work on them after John
> more-or-less left Guix.

Yes, it's on my TODO! Thanks for the reminder :)

Maxim
Ludovic Courtès wrote 7 years ago
Re: bug#24279: Bug in xterm and/or fontconfig
(name . Oleg Pykhalov)(address . go.wigust@gmail.com)(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87inds6r1v.fsf@gnu.org
Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> skribis:

Toggle quote (26 lines)
> John Darrington <john@darrington.wattle.id.au> writes:
>
>> In GuixSD:
>>
>> guix package -i xterm strace
>> strace xterm
>>
>> xterm starts as it should, however observe many failed calls similar to:
>> open("/gnu/store/b484nvn9nnr3ddclpz2fma9yxmimg2jj-fontconfig-2.11.94/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>>
>>
>> Now in the xterm, hold down Ctrl and press any mouse button.
>> The xterm aborts with the following messages:
>> Warning: Unable to load any usable ISO8859 font
>> Error: Aborting: no font found
>
> I solved this issue by:
>
> - Install a font-misc-misc as Mike Hunt from Gentoo forum suggests¹:
>
> $ guix package -i font-misc-misc
>
> - From "(guix) Application Setup"²:
>
> $ xset +fp ~/.guix-profile/share/fonts/X11/misc

Oh, good to know!

We can also fix this once and for all with this patch:
Toggle diff (13 lines)
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 0da3397da..8f285b29a 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -113,6 +113,8 @@
(file-append font-alias "/share/fonts/X11/100dpi")
(file-append font-alias "/share/fonts/X11/misc")
(file-append font-alias "/share/fonts/X11/cyrillic")
+ (file-append font-misc-misc ;default fonts for xterm
+ "/share/fonts/X11/misc")
(file-append font-adobe75dpi "/share/fonts/X11/75dpi")))
(define* (xorg-configuration-file #:key
That adds 4.1 MiB, but it saves user headaches, so I think it’s worth it.

I’ll go ahead and push that if there are no objections.

Thanks,
Ludo’.
Maxim Cournoyer wrote 7 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(name . Oleg Pykhalov)(address . go.wigust@gmail.com)(name . John Darrington)(address . john@darrington.wattle.id.au)(address . 24279@debbugs.gnu.org)
87bmjjp594.fsf@gmail.com
Hello,

ludo@gnu.org (Ludovic Courtès) writes:

[...]

Toggle quote (21 lines)
> We can also fix this once and for all with this patch:
>
> diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
> index 0da3397da..8f285b29a 100644
> --- a/gnu/services/xorg.scm
> +++ b/gnu/services/xorg.scm
> @@ -113,6 +113,8 @@
> (file-append font-alias "/share/fonts/X11/100dpi")
> (file-append font-alias "/share/fonts/X11/misc")
> (file-append font-alias "/share/fonts/X11/cyrillic")
> + (file-append font-misc-misc ;default fonts for xterm
> + "/share/fonts/X11/misc")
> (file-append font-adobe75dpi "/share/fonts/X11/75dpi")))
>
> (define* (xorg-configuration-file #:key
>
>
> That adds 4.1 MiB, but it saves user headaches, so I think it’s worth it.
>
> I’ll go ahead and push that if there are no objections.

And another bug down! :) Thanks for fixing it; LGTM!

Maxim
Ludovic Courtès wrote 7 years ago
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 24279-done@debbugs.gnu.org)(name . John Darrington)(address . john@darrington.wattle.id.au)(name . Oleg Pykhalov)(address . go.wigust@gmail.com)
87bmjifq58.fsf@gnu.org
Hello,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

Toggle quote (27 lines)
> ludo@gnu.org (Ludovic Courtès) writes:
>
> [...]
>
>> We can also fix this once and for all with this patch:
>>
>> diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
>> index 0da3397da..8f285b29a 100644
>> --- a/gnu/services/xorg.scm
>> +++ b/gnu/services/xorg.scm
>> @@ -113,6 +113,8 @@
>> (file-append font-alias "/share/fonts/X11/100dpi")
>> (file-append font-alias "/share/fonts/X11/misc")
>> (file-append font-alias "/share/fonts/X11/cyrillic")
>> + (file-append font-misc-misc ;default fonts for xterm
>> + "/share/fonts/X11/misc")
>> (file-append font-adobe75dpi "/share/fonts/X11/75dpi")))
>>
>> (define* (xorg-configuration-file #:key
>>
>>
>> That adds 4.1 MiB, but it saves user headaches, so I think it’s worth it.
>>
>> I’ll go ahead and push that if there are no objections.
>
> And another bug down! :) Thanks for fixing it; LGTM!

Awesome, I went ahead and pushed as
4afc903a8c1b9cb19c0341b5cd2ea80a34974f25.

Thanks everyone!

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 24279@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 24279
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help