From: Danny Milosavljevic <dannym@scratchpost.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: IcedTea Java 8 font problems
Date: Thu, 21 Jul 2016 00:13:09 +0200 [thread overview]
Message-ID: <20160721001309.482be96f@scratchpost.org> (raw)
In-Reply-To: <8760t9y64z.fsf@elephly.net>
On Thu, 16 Jun 2016 08:55:40 +0200
Ricardo Wurmus <rekado@elephly.net> wrote:
> This looks font-related. Do you have files in ~/.java/fonts? If so,
> maybe they are invalid?
Nope.
> The changes Leo submitted apply to IcedTea 6, but you are using 8.
Yeah, sorry. In any case my problem persists across multiple updates.
I tried
$ guix package -i icedtea:jdk
now and I still get
Exception in thread "main" java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
at sun.font.SunFontManager$2.run(SunFontManager.java:431)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:376)
at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
I checked the source code it uses and it turns out it tries to load a file
${java.home}/lib/fontconfig.${os.name}.${os.version}
where $ is an abreviation for System.getProperty.
I ran a Java app I wrote which does this System.getProperty so I'm sure what the values are.
They are:
$java.home = /gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre
$os.name = Linux
$os.version = 4.6.2-gnu
However, /gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre does not contain any fontconfig* files.
Hmm... not sure how it's supposed to find any fonts, then.
And indeed,
$strace -f java A 2>&1 |grep /fontconfig
gives:
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.4.6.2-gnu.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.4.6.2-gnu.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.4.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.4.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.4.6.2-gnu.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.4.6.2-gnu.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.4.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.4.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.4.6.2-gnu.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.4.6.2-gnu.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.4.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.4.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.Linux.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.4.6.2-gnu.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.4.6.2-gnu.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.4.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.4.bfc", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.properties", R_OK) = -1 ENOENT (No such file or directory)
[pid 3533] access("/gnu/store/6ln2p3ynmymdvnqh3lf87hdyip0p3wdm-icedtea-3.0.1-jdk/jre/lib/fontconfig.bfc", R_OK) = -1 ENOENT (No such file or directory)
prev parent reply other threads:[~2016-07-20 22:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-30 4:59 Trying to build latest Icedtea / Java 6 [security update] Leo Famulari
2016-05-31 19:13 ` Ricardo Wurmus
2016-05-31 22:52 ` Leo Famulari
2016-06-01 6:07 ` Ricardo Wurmus
2016-06-01 6:29 ` Leo Famulari
2016-06-16 2:02 ` Danny Milosavljevic
2016-06-16 6:55 ` Ricardo Wurmus
2016-07-20 22:13 ` Danny Milosavljevic [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160721001309.482be96f@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).