You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2024/03/14 08:55:43 UTC
[Bug 68778] New: POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
Bug ID: 68778
Summary: POI 3.5.4 "Fontconfig head is null, check your fonts
or fonts configuration"
Product: POI
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: regression
Priority: P2
Component: SXSSF
Assignee: dev@poi.apache.org
Reporter: de.felix.koenig@gmail.com
Target Milestone: ---
We are running a Quarkus application with Docker, and the base image is an UBI8
(`FROM docker-redhat.sopdock/ubi8/openjdk-21-runtime:1.18`). We are currently
using `org.apache.poi:poi-ooxml:5.2.3` with `SXSSFSheet`s. We are *not* using
`sheet.trackAllColumnsForAutoSizing()` because that requires Fonts to be
installed, which we don't have inside our Docker image.
However, after updating to 5.2.5, we get the error `Fontconfig head is null,
check your fonts or fonts configuration` regardless. I believe this might have
been caused by [this
change](https://github.com/apache/poi/commit/43551babf1cf628aa184a2f9445412815781dc9e)
in 5.2.4:
```diff
diff --git
a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
index 44caba42178..d454fc10829 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
@@ -63,8 +63,8 @@ protected SXSSFSheet(SXSSFWorkbook workbook, XSSFSheet
xSheet, int randomAccessW
setRandomAccessWindowSize(randomAccessWindowSize);
try {
_autoSizeColumnTracker = new AutoSizeColumnTracker(this);
- } catch (Throwable t) {
- LOG.atWarn().log("Failed to create AutoSizeColumnTracker, possibly
due to fonts not being installed in your OS", t);
+ } catch (UnsatisfiedLinkError | InternalError e) {
+ LOG.atWarn().log("Failed to create AutoSizeColumnTracker, possibly
due to fonts not being installed in your OS", e);
}
}
@@ -96,8 +96,8 @@ public SXSSFSheet(SXSSFWorkbook workbook, XSSFSheet xSheet)
throws IOException {
setRandomAccessWindowSize(_workbook.getRandomAccessWindowSize());
try {
_autoSizeColumnTracker = new AutoSizeColumnTracker(this);
- } catch (Throwable t) {
- LOG.atWarn().log("Failed to create AutoSizeColumnTracker, possibly
due to fonts not being installed in your OS", t);
+ } catch (UnsatisfiedLinkError | InternalError e) {
+ LOG.atWarn().log("Failed to create AutoSizeColumnTracker, possibly
due to fonts not being installed in your OS", e);
}
}
diff --git a/poi/src/main/java/org/apache/poi/ss/util/SheetUtil.java
b/poi/src/main/java/org/apache/poi/ss/util/SheetUtil.java
index d55e3634d52..130169999c4 100644
--- a/poi/src/main/java/org/apache/poi/ss/util/SheetUtil.java
+++ b/poi/src/main/java/org/apache/poi/ss/util/SheetUtil.java
@@ -300,12 +300,12 @@ public static int getDefaultCharWidth(final Workbook wb)
{
try {
TextLayout layout = new TextLayout(str.getIterator(),
fontRenderContext);
return (int) layout.getAdvance();
- } catch (Throwable t) {
+ } catch (UnsatisfiedLinkError | NoClassDefFoundError | InternalError
e) {
if (ignoreMissingFontSystem) {
return DEFAULT_CHAR_WIDTH;
}
- throw t;
+ throw e;
}
}
```
Where previously all Throwables were caught, and now only `UnsatisfiedLinkError
| NoClassDefFoundError | InternalError` do. The "Fontconfig head is null"-error
is a RuntimeException: `throw new RuntimeException(fontconfigErrorMessage);`
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #1 from PJ Fanning <fa...@yahoo.com> ---
the code has changed in trunk
see
https://github.com/apache/poi/commits/08436ddf7fd8039118ff073b8dac02b4b5e67774/poi/src/main/java/org/apache/poi/ss/util/SheetUtil.java
I keep trying to loosen the check so that it works for everyone but then my
changes keep being adjusted - so that I don't know if the latest code just
reverts back to the broken behaviour.
You can get snapshot jars to test with - from
https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/lastSuccessfulBuild/artifact/
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
Felix König <de...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #8 from Felix König <de...@gmail.com> ---
I just updated to 5.3.0 and the issue is unfortunately _not_ fixed again. We'll
have to stay downgraded to 5.2.3
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #7 from Felix König <de...@gmail.com> ---
I can confirm that with 5.2.6-SNAPSHOT it works again, just as it did with
5.2.3, thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #4 from Dominik Stadler <do...@gmx.at> ---
Please take another close look,
https://github.com/apache/poi/commit/209e8fc6599803c7cfe061f7755d6e19d9c14201
just includes a few more types of exception without "reverting" the previous
changes. The "and" condition was switched, but this does not change the result
of the condition.
I did some more tests locally and I think the latest version on master is
actually working as expected now. It handles RuntimeException as well via the
"!isFatal" check.
Felix, can you test with a recent nightly build and report if this makes it
work again for you.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |69209
Referenced Bugs:
https://bz.apache.org/bugzilla/show_bug.cgi?id=69209
[Bug 69209] get rid of ignoreMissingFontSystem property and just be lax?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
As this is a RuntimeException, I think this case is unrelated to the recent
changes around "isFatal", but was broken when we switched from catching
Throwable via r1907443 and none of the changes afterwards affected handling of
RuntimeException any more.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #10 from Felix König <de...@gmail.com> ---
Sure! First off, it's the same error as before. Here's a full reproducer:
Given a minimal maven project with POI as a dependency, built as a
jar-with-dependencies:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.acme</groupId>
<artifactId>poi-font-reproducer</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.3.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>create-my-bundle</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
```
And a minimal main method that instantiates an SXSSFWorkbook:
```java
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
public class Main {
public static void main(String... args) {
SXSSFWorkbook workbook = new SXSSFWorkbook();
workbook.createSheet();
System.out.println("Success!");
}
}
```
Building with `mvn clean install` and running the resulting jar on my Windows
machine works fine:
```
PS C:\rd\poi-font-reproducer> java -jar
./target/poi-font-reproducer-1.0.0-SNAPSHOT-jar-with-dependencies.jar
Success!
```
Now let's put the program into a docker image that does not have any fonts
installed using this Dockerfile:
```
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:1.19
COPY --chown=185 target/*.jar /deployments/
COPY target/poi-font-reproducer-1.0.0-SNAPSHOT-jar-with-dependencies.jar
/app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
```
Then building with `mvn clean install && docker image build -t
poi-font-reproducer:latest .` and running the docker image with `docker run
poi-font-reproducer:latest` yields the following results:
POI version 5.3.0:
```
$ docker run poi-font-reproducer:latest
Exception in thread "main" java.lang.RuntimeException: Fontconfig head is null,
check your fonts or fonts configuration
at
java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1263)
at
java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:221)
at
java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:105)
at
java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:696)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:352)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:309)
at
java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:309)
at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:55)
at
java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
at
java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
at java.desktop/java.awt.Font.getFont2D(Font.java:526)
at java.desktop/java.awt.Font.canDisplayUpTo(Font.java:2278)
at
java.desktop/java.awt.font.TextLayout.singleFont(TextLayout.java:469)
at java.desktop/java.awt.font.TextLayout.<init>(TextLayout.java:530)
at
org.apache.poi.ss.util.SheetUtil.getDefaultCharWidthAsFloat(SheetUtil.java:353)
at
org.apache.poi.xssf.streaming.AutoSizeColumnTracker.<init>(AutoSizeColumnTracker.java:117)
at org.apache.poi.xssf.streaming.SXSSFSheet.<init>(SXSSFSheet.java:106)
at
org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:698)
at
org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:692)
at Main.main(Main.java:6)
```
POI version 5.2.5:
```
$ docker run poi-font-reproducer:latest
Exception in thread "main" java.lang.RuntimeException: Fontconfig head is null,
check your fonts or fonts configuration
at
java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1263)
at
java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:221)
at
java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:105)
at
java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:696)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:352)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:309)
at
java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:309)
at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:55)
at
java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
at
java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
at java.desktop/java.awt.Font.getFont2D(Font.java:526)
at java.desktop/java.awt.Font.canDisplayUpTo(Font.java:2278)
at
java.desktop/java.awt.font.TextLayout.singleFont(TextLayout.java:469)
at java.desktop/java.awt.font.TextLayout.<init>(TextLayout.java:530)
at
org.apache.poi.ss.util.SheetUtil.getDefaultCharWidthAsFloat(SheetUtil.java:352)
at
org.apache.poi.xssf.streaming.AutoSizeColumnTracker.<init>(AutoSizeColumnTracker.java:117)
at org.apache.poi.xssf.streaming.SXSSFSheet.<init>(SXSSFSheet.java:106)
at
org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:694)
at
org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:688)
at Main.main(Main.java:6)
```
POI version 5.2.4:
```
$ docker run poi-font-reproducer:latest
Exception in thread "main" java.lang.RuntimeException: Fontconfig head is null,
check your fonts or fonts configuration
at
java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1263)
at
java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:221)
at
java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:105)
at
java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:696)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:352)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:309)
at
java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:309)
at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:55)
at
java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
at
java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
at java.desktop/java.awt.Font.getFont2D(Font.java:526)
at java.desktop/java.awt.Font.canDisplayUpTo(Font.java:2278)
at
java.desktop/java.awt.font.TextLayout.singleFont(TextLayout.java:469)
at java.desktop/java.awt.font.TextLayout.<init>(TextLayout.java:530)
at
org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(SheetUtil.java:301)
at
org.apache.poi.xssf.streaming.AutoSizeColumnTracker.<init>(AutoSizeColumnTracker.java:117)
at org.apache.poi.xssf.streaming.SXSSFSheet.<init>(SXSSFSheet.java:98)
at
org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:694)
at
org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:688)
at Main.main(Main.java:6)
```
POI version 5.2.3:
```
$ docker run poi-font-reproducer:latest
Success!
```
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #5 from PJ Fanning <fa...@yahoo.com> ---
I reread the if and it looks like it should be ok. So POI 5.2.6 should get us
back to the POI 5.2.3 behaviour,
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #3 from PJ Fanning <fa...@yahoo.com> ---
https://github.com/apache/poi/commit/209e8fc6599803c7cfe061f7755d6e19d9c14201
effectively undoes my change. With 209e8fc6599803c7cfe061f7755d6e19d9c14201,
RuntimeExceptions will again be thrown instead of the default char width being
returned.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
Felix König <de...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #12 from Felix König <de...@gmail.com> ---
Thank you, with this property set to true it succeeds with 5.2.3, fails with
5.2.4 and 5.2.5, but succeeds again with 5.3.0!
I see no reason to not have this set to true everywhere at all times, so that's
what I'll do. I marked the issue as resolved again, thanks for your help!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #9 from PJ Fanning <fa...@yahoo.com> ---
Felix - what exception do you get if you use POI 5.3.0.
This issue is hard to reproduce and POI is a 100% volunteer project. With
issues like this, it really helps if the reporter can provide as much as info
as possible.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #11 from PJ Fanning <fa...@yahoo.com> ---
So SheetUtil relies on a system property.
private static boolean ignoreMissingFontSystem =
Boolean.parseBoolean(System.getProperty("org.apache.poi.ss.ignoreMissingFontSystem"));
Have you set this?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
--- Comment #13 from Hani Naguib <ha...@naguib.info> ---
Not sure this is related by I get the same exception although with a different
call stack.
java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts
configuration
at java.desktop/sun.awt.FontConfiguration.getVersion(Unknown Source)
~[na:na]
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(Unknown
Source) ~[na:na]
at java.desktop/sun.awt.FontConfiguration.init(Unknown Source) ~[na:na]
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(Unknown
Source) ~[na:na]
at java.desktop/sun.font.SunFontManager$2.run(Unknown Source) ~[na:na]
at java.desktop/sun.font.SunFontManager$2.run(Unknown Source) ~[na:na]
at java.base/java.security.AccessController.doPrivileged(Unknown
Source) ~[na:na]
at java.desktop/sun.font.SunFontManager.<init>(Unknown Source) ~[na:na]
at java.desktop/sun.awt.FcFontManager.<init>(Unknown Source) ~[na:na]
at java.desktop/sun.awt.X11FontManager.<init>(Unknown Source) ~[na:na]
at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) ~[na:na]
at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source) ~[na:na]
at
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source) ~[na:na]
at
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
~[na:na]
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
~[na:na]
at java.desktop/sun.font.FontManagerFactory$1.run(Unknown Source)
~[na:na]
at java.base/java.security.AccessController.doPrivileged(Unknown
Source) ~[na:na]
at java.desktop/sun.font.FontManagerFactory.getInstance(Unknown Source)
~[na:na]
at java.desktop/java.awt.Font.getFont2D(Unknown Source) ~[na:na]
at java.desktop/java.awt.Font.canDisplayUpTo(Unknown Source) ~[na:na]
at java.desktop/java.awt.font.TextLayout.singleFont(Unknown Source)
~[na:na]
at java.desktop/java.awt.font.TextLayout.<init>(Unknown Source)
~[na:na]
at org.apache.poi.ss.util.SheetUtil.getCellWidth(SheetUtil.java:262)
~[poi-5.3.0.jar:5.3.0]
at org.apache.poi.ss.util.SheetUtil.getCellWidth(SheetUtil.java:223)
~[poi-5.3.0.jar:5.3.0]
at
org.apache.poi.ss.util.SheetUtil.getColumnWidthForRow(SheetUtil.java:399)
~[poi-5.3.0.jar:5.3.0]
at org.apache.poi.ss.util.SheetUtil.getColumnWidth(SheetUtil.java:318)
~[poi-5.3.0.jar:5.3.0]
at org.apache.poi.ss.util.SheetUtil.getColumnWidth(SheetUtil.java:295)
~[poi-5.3.0.jar:5.3.0]
at
org.apache.poi.xssf.usermodel.XSSFSheet.autoSizeColumn(XSSFSheet.java:497)
~[poi-ooxml-5.3.0.jar:5.3.0]
at
org.apache.poi.xssf.usermodel.XSSFSheet.autoSizeColumn(XSSFSheet.java:479)
~[poi-ooxml-5.3.0.jar:5.3.0]
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 68778] POI 3.5.4 "Fontconfig head is null, check your fonts or fonts configuration"
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68778
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEEDINFO |RESOLVED
--- Comment #6 from Dominik Stadler <do...@gmx.at> ---
Nice!
See r1916297 for a some new unit tests which try to verify the different cases
via mocking of exceptions in the low-level font-system so we get coverage of
this tricky bit of code.
So as far as we see it will be fixed in the next release, please reopen if your
local tests still show a problem.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org