Cannot find any fonts installed on the system on 17.9

java version “1.8.0_111”
aspose slides java 17.9 crashed by empty fonts pptx

Exception in thread “main” class com.aspose.slides.exceptions.InvalidOperationException: Cannot find any fonts installed on the system.
com.aspose.slides.internal.c7.native.do(Unknown Source)
com.aspose.slides.mn.do(Unknown Source)
com.aspose.slides.mn.do(Unknown Source)
com.aspose.slides.mn.do(Unknown Source)
com.aspose.slides.aes.do(Unknown Source)
com.aspose.slides.l8.do(Unknown Source)
com.aspose.slides.jn.do(Unknown Source)
com.aspose.slides.mt.do(Unknown Source)
com.aspose.slides.aga.for(Unknown Source)
com.aspose.slides.aga.switch(Unknown Source)
com.aspose.slides.cr.do(Unknown Source)
com.aspose.slides.BaseSlide.do(Unknown Source)
com.aspose.slides.Slide.do(Unknown Source)
com.aspose.slides.Slide.do(Unknown Source)
com.aspose.slides.yu.do(Unknown Source)
com.aspose.slides.yu.do(Unknown Source)
com.aspose.slides.Presentation.do(Unknown Source)
com.aspose.slides.Presentation.save(Unknown Source)

@h2o0,

I have observed your comments. Can you please share source presentation and environment details with us so that we may further investigate to help you out. Also please what you was trying to achieve during this process.

Ubuntu 16.04.1 LTS
java version “1.8.0_111”
aspose-slides-17.9-java
Presentation2.pptx.zip (208.0 KB)

@h2o0

I have worked with source file and unable to observe the issue in Window 10 environment. Can you please share source font used in your presentation so that i may test this issue in Linux environment for further investigation. I have also shared my generated result with you for your kind reference.saved179.zip (203.9 KB)

that linux haven’t this fonts, but shouldn’t crash.

@h2o0,

I have worked with the presentation file shared by you and have been able to observe the issue. An issue with ID SLIDESJAVA-36632 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.

I am seeing the same problem with versions 17.9 and 17.9.1 of Slides for Java. If I revert to version 17.8, the problem goes away. Please notify me when a fix is available. Thank you.

@workiva_rjackson,

I have observed your comments and request you to please share the source presentation reproducing the issue that I will share with our product team. We will share the feedback with you as soon as the issue will be fixed and request for your patience in this regard.

I believe the file that reproduces the problem can be made public (shared) but I will confirm that on Monday and send it to you then. Thank you.

@workiva_rjackson,

Sure, we will be waiting for further feedback from your side.

I’ve sent the file as a private message. Thank you for your help.

@workiva_rjackson,

Thank you for sharing the information. Can you please also share following information.

  • OS name and version
  • Version of JDK
  • List of installed fonts (fc-list command)
  • Font configuration file (fonts.conf file)

So we’ve made some progress on our end tracking down this bug. It appears to be OS/Font related. Here is the information for our Ubuntu Trusty environment. This particular setup allows the file I sent you to export correctly using 17.9.1. It crashes with 17.9. Our other environment (Centos) crashes in 17.9.1. I’ll post its information shortly.

[OS]
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

[Java]
java version “1.8.0_45”
Java™ SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot™ 64-Bit Server VM (build 25.45-b02, mixed mode)

[fc-list]
/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf: DejaVu Serif:style=Bold
/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/X11/Type1/s050000l.pfb: Standard Symbols L:style=Regular
/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Oblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
/usr/share/fonts/X11/Type1/p052024l.pfb: URW Palladio L:style=Bold Italic
/usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-BoldItalic.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold Italic,Bold Italic
/usr/share/fonts/truetype/dejavu/DejaVuSans-ExtraLight.ttf: DejaVu Sans,DejaVu Sans Light:style=ExtraLight
/usr/share/fonts/type1/gsfonts/n021024l.pfb: Nimbus Roman No9 L:style=Medium Italic
/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book
/usr/share/fonts/X11/Type1/p052023l.pfb: URW Palladio L:style=Italic
/usr/share/fonts/type1/gsfonts/n021004l.pfb: Nimbus Roman No9 L:style=Medium
/usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed,Book
/usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-Italic.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Italic,Italic
/usr/share/fonts/X11/Type1/b018015l.pfb: URW Bookman L:style=Demi Bold
/usr/share/fonts/type1/gsfonts/p052023l.pfb: URW Palladio L:style=Italic
/usr/share/fonts/type1/gsfonts/n022003l.pfb: Nimbus Mono L:style=Regular
/usr/share/fonts/X11/Type1/z003034l.pfb: URW Chancery L:style=Medium Italic
/usr/share/fonts/type1/gsfonts/z003034l.pfb: URW Chancery L:style=Medium Italic
/usr/share/fonts/X11/Type1/c059016l.pfb: Century Schoolbook L:style=Bold
/usr/share/fonts/X11/Type1/a010033l.pfb: URW Gothic L:style=Book Oblique
/usr/share/fonts/X11/Type1/a010015l.pfb: URW Gothic L:style=Demi
/usr/share/fonts/X11/Type1/n019003l.pfb: Nimbus Sans L:style=Regular
/usr/share/fonts/type1/gsfonts/c059013l.pfb: Century Schoolbook L:style=Roman
/usr/share/fonts/type1/gsfonts/d050000l.pfb: Dingbats:style=Regular
/usr/share/fonts/truetype/dejavu/DejaVuSerif-BoldItalic.ttf: DejaVu Serif:style=Bold Italic
/usr/share/fonts/X11/Type1/n019004l.pfb: Nimbus Sans L:style=Bold
/usr/share/fonts/X11/Type1/d050000l.pfb: Dingbats:style=Regular
/usr/share/fonts/type1/gsfonts/n021023l.pfb: Nimbus Roman No9 L:style=Regular Italic
/usr/share/fonts/X11/Type1/p052004l.pfb: URW Palladio L:style=Bold
/usr/share/fonts/type1/gsfonts/n019063l.pfb: Nimbus Sans L:style=Regular Condensed Italic
/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf: DejaVu Sans Mono:style=Oblique
/usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-Bold.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold,Bold
/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold
/usr/share/fonts/truetype/dejavu/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
/usr/share/fonts/type1/gsfonts/a010013l.pfb: URW Gothic L:style=Book
/usr/share/fonts/X11/Type1/n022024l.pfb: Nimbus Mono L:style=Bold Oblique
/usr/share/fonts/type1/gsfonts/n019064l.pfb: Nimbus Sans L:style=Bold Condensed Italic
/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-BoldOblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
/usr/share/fonts/type1/gsfonts/p052004l.pfb: URW Palladio L:style=Bold
/usr/share/fonts/X11/Type1/n019063l.pfb: Nimbus Sans L:style=Regular Condensed Italic
/usr/share/fonts/X11/Type1/n021024l.pfb: Nimbus Roman No9 L:style=Medium Italic
/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
/usr/share/fonts/type1/gsfonts/n022023l.pfb: Nimbus Mono L:style=Regular Oblique
/usr/share/fonts/X11/Type1/b018032l.pfb: URW Bookman L:style=Light Italic
/usr/share/fonts/X11/Type1/n021004l.pfb: Nimbus Roman No9 L:style=Medium
/usr/share/fonts/X11/Type1/n022003l.pfb: Nimbus Mono L:style=Regular
/usr/share/fonts/type1/gsfonts/a010015l.pfb: URW Gothic L:style=Demi
/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Bold.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/usr/share/fonts/type1/gsfonts/n019043l.pfb: Nimbus Sans L:style=Regular Condensed
/usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf: DejaVu Sans:style=Oblique
/usr/share/fonts/X11/Type1/a010035l.pfb: URW Gothic L:style=Demi Oblique
/usr/share/fonts/type1/gsfonts/n019044l.pfb: Nimbus Sans L:style=Bold Condensed
/usr/share/fonts/X11/Type1/n019023l.pfb: Nimbus Sans L:style=Regular Italic
/usr/share/fonts/X11/Type1/n019044l.pfb: Nimbus Sans L:style=Bold Condensed
/usr/share/fonts/X11/Type1/n019024l.pfb: Nimbus Sans L:style=Bold Italic
/usr/share/fonts/type1/gsfonts/a010033l.pfb: URW Gothic L:style=Book Oblique
/usr/share/fonts/type1/gsfonts/n021003l.pfb: Nimbus Roman No9 L:style=Regular
/usr/share/fonts/type1/gsfonts/s050000l.pfb: Standard Symbols L:style=Regular
/usr/share/fonts/type1/gsfonts/b018035l.pfb: URW Bookman L:style=Demi Bold Italic
/usr/share/fonts/type1/gsfonts/c059033l.pfb: Century Schoolbook L:style=Italic
/usr/share/fonts/X11/Type1/n021003l.pfb: Nimbus Roman No9 L:style=Regular
/usr/share/fonts/type1/gsfonts/a010035l.pfb: URW Gothic L:style=Demi Oblique
/usr/share/fonts/truetype/dejavu/DejaVuSerif-Italic.ttf: DejaVu Serif:style=Italic
/usr/share/fonts/X11/Type1/c059013l.pfb: Century Schoolbook L:style=Roman
/usr/share/fonts/X11/Type1/b018035l.pfb: URW Bookman L:style=Demi Bold Italic
/usr/share/fonts/type1/gsfonts/n019023l.pfb: Nimbus Sans L:style=Regular Italic
/usr/share/fonts/type1/gsfonts/b018012l.pfb: URW Bookman L:style=Light
/usr/share/fonts/X11/Type1/c059036l.pfb: Century Schoolbook L:style=Bold Italic
/usr/share/fonts/X11/Type1/a010013l.pfb: URW Gothic L:style=Book
/usr/share/fonts/type1/gsfonts/c059016l.pfb: Century Schoolbook L:style=Bold
/usr/share/fonts/type1/gsfonts/n022004l.pfb: Nimbus Mono L:style=Bold
/usr/share/fonts/X11/Type1/b018012l.pfb: URW Bookman L:style=Light
/usr/share/fonts/type1/gsfonts/n019024l.pfb: Nimbus Sans L:style=Bold Italic
/usr/share/fonts/type1/gsfonts/b018032l.pfb: URW Bookman L:style=Light Italic
/usr/share/fonts/type1/gsfonts/p052003l.pfb: URW Palladio L:style=Roman
/usr/share/fonts/X11/Type1/c059033l.pfb: Century Schoolbook L:style=Italic
/usr/share/fonts/X11/Type1/n022004l.pfb: Nimbus Mono L:style=Bold
/usr/share/fonts/X11/Type1/n022023l.pfb: Nimbus Mono L:style=Regular Oblique
/usr/share/fonts/X11/Type1/n021023l.pfb: Nimbus Roman No9 L:style=Regular Italic
/usr/share/fonts/type1/gsfonts/n019004l.pfb: Nimbus Sans L:style=Bold
/usr/share/fonts/type1/gsfonts/b018015l.pfb: URW Bookman L:style=Demi Bold
/usr/share/fonts/X11/Type1/p052003l.pfb: URW Palladio L:style=Roman
/usr/share/fonts/type1/gsfonts/n022024l.pfb: Nimbus Mono L:style=Bold Oblique
/usr/share/fonts/X11/Type1/n019043l.pfb: Nimbus Sans L:style=Regular Condensed
/usr/share/fonts/type1/gsfonts/c059036l.pfb: Century Schoolbook L:style=Bold Italic
/usr/share/fonts/type1/gsfonts/p052024l.pfb: URW Palladio L:style=Bold Italic
/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf: DejaVu Serif:style=Book
/usr/share/fonts/X11/Type1/n019064l.pfb: Nimbus Sans L:style=Bold Condensed Italic
/usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf: DejaVu Sans:style=Bold Oblique
/usr/share/fonts/type1/gsfonts/n019003l.pfb: Nimbus Sans L:style=Regular

[fonts.conf]
I’m not sure where this file resides. I do not see one in the home directory of the root account (we run your library in a Docker container using the above image.

Here is the information for the CentOS environment. This is where we have seen the crash in 17.9 and 17.9.1.

[OS]
CentOS Linux release 7.3.1611 (Core)

[Java]
java version “1.8.0_131”
Java™ SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot™ 64-Bit Server VM (build 25.131-b11, mixed mode)

[fc-list]
Command not found (not installed).

[font.conf]
File not found in home folder (root).

In both environments we supply a font folder using “FontsLoader.loadExternalFonts” and other PPTX to PDF conversions work correctly in both. The problem file I sent does not. Thank you for your help.

@workiva_rjackson,

Your feedback has been shared with our product team. I request for your patience until further feedback is shared by our product team.

@workiva_rjackson,

I like to inform that our product team investigated issue and i like to share their findings with you. The problem you are facing is because CentOS minimal installation does not contain any installed fonts, but using FontsFolader solves this problem. Product team checked checked SLIDESJAVA_36632.pptx on Windows and Ubuntu with Oracle JDK and did not find a problem in case of using all required fonts. Please check attachment. Can you please share yourfiles.zip (388.1 KB)
result.

Thank you for investigating the issue. We resolved things on our end by using Ubuntu (with the fontconfig package) rather than CentOS to guarantee a set of system installed fonts.

@workiva_rjackson,

We are pleased to know things are fine on your end please feel free to share with us if there is any issue incurring on your end.

The issues you have found earlier (filed as SLIDESJAVA-36632) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by mudassir.fayyaz