guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IcedTea Java 8 font problems


From: Danny Milosavljevic
Subject: IcedTea Java 8 font problems
Date: Thu, 21 Jul 2016 00:13:09 +0200

On Thu, 16 Jun 2016 08:55:40 +0200
Ricardo Wurmus <address@hidden> 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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]