Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation failure on ubuntu using packed-mn #183

Closed
ronaldtse opened this issue Jul 13, 2022 · 2 comments
Closed

Generation failure on ubuntu using packed-mn #183

ronaldtse opened this issue Jul 13, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ronaldtse
Copy link
Contributor

https://github.com/metanorma/bipm-si-brochure/runs/7307986207?check_suite_focus=true

This job is failing at Ubuntu (is this the only workflow that runs packed-mn?):

java -Xss5m -Xmx2048m -jar /tmp/packed-mn-20220712-5640-h0eech/mn2pdf.jar --xml-file "collection/collection.presentation.xml" --xsl-file "/tmp/packed-mn-20220712-5640-h0eech/bipm.brochure.xsl" --pdf-file "collection/collection.pdf" --syntax-highlight  --split-by-language 
/__tebako_memfs__/lib/ruby/gems/2.7.0/gems/mn2pdf-1.47/lib/mn2pdf.rb:79:in `mn2pdf': [mn2pdf] Fatal: mn2pdf Preparing... (RuntimeError)
Input: Fonts path ()
Input: XML (collection/collection.presentation.xml)
Input: XSL (/tmp/packed-mn-20220712-5640-h0eech/bipm.brochure.xsl)
Output: PDF (collection/collection.pdf)

[INFO] Generation of XSL-FO with information about the table's widths ...
[INFO] Generation of Intermediate Format with information about the table's widths ...
WARNING: Font file '/home/runner/.metanorma/fonts/arial.ttf' (font name 'Arial', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/arialbd.ttf' (font name 'Arial', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/arialbi.ttf' (font name 'Arial', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/ariali.ttf' (font name 'Arial', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/times.ttf' (font name 'Times New Roman', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/timesbd.ttf' (font name 'Times New Roman', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/timesbi.ttf' (font name 'Times New Roman', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/timesi.ttf' (font name 'Times New Roman', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Thin.ttf' (font name 'Work Sans', font style 'normal', font weight '100') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ThinItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '100') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ExtraLight.ttf' (font name 'Work Sans', font style 'normal', font weight '200') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ExtraLightItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '200') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Light.ttf' (font name 'Work Sans', font style 'normal', font weight '300') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-LightItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '300') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Medium.ttf' (font name 'Work Sans', font style 'normal', font weight '500') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-MediumItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '500') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-SemiBold.ttf' (font name 'Work Sans', font style 'normal', font weight '600') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-SemiBoldItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '600') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Bold.ttf' (font name 'Work Sans', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-BoldItalic.ttf' (font name 'Work Sans', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ExtraBold.ttf' (font name 'Work Sans', font style 'normal', font weight '800') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ExtraBoldItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '800') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Black.ttf' (font name 'Work Sans', font style 'normal', font weight '900') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-BlackItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '900') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.

Fonts downloading...
Downloading https://github.com/fontist/noto-fonts/releases/download/v1.1/noto-fonts-latn-1.1.zip...
Can't downloaded a file: /home/runner/.metanorma/fonts/noto-fonts-latn-1.1.zip (No such file or directory)
Can't unzip a file: /home/runner/.metanorma/fonts/noto-fonts-latn-1.1.zip (No such file or directory)
Downloading https://github.com/fontist/noto-fonts/releases/download/v1.1/noto-fonts-cjk-static-1.1.zip...
Can't downloaded a file: /home/runner/.metanorma/fonts/noto-fonts-cjk-static-1.1.zip (No such file or directory)
Can't unzip a file: /home/runner/.metanorma/fonts/noto-fonts-cjk-static-1.1.zip (No such file or directory)
Downloading https://github.com/stipub/stixfonts/raw/master/archive/STIXv2.0.2/OTF/STIX2Math.otf...
Can't downloaded a file: /home/runner/.metanorma/fonts/STIX2Math.otf (No such file or directory)
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-Regular.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-Bold.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-Italic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerif-Regular.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerif-Bold.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerif-Italic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerif-BoldItalic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMono-Regular.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMono-Bold.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-Light.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-LightItalic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansHK-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansJP-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansKR-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansSC-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansTC-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansHK-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansJP-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansKR-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansSC-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansTC-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifHK-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifJP-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifKR-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifSC-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifTC-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifHK-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifJP-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifKR-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifSC-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifTC-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKhk-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKjp-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKkr-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKsc-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKtc-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKhk-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKjp-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKkr-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKsc-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKtc-Bold.otf
java.nio.file.NoSuchFileException: /home/runner/.metanorma/fonts
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
	at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
	at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
	at java.nio.file.Files.readAttributes(Files.java:1737)
	at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
	at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
	at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
	at java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:72)
	at java.nio.file.Files.walk(Files.java:3574)
	at java.nio.file.Files.walk(Files.java:3625)
	at org.metanorma.fop.fontConfig.updateFontsForGraphicsEnvironment(fontConfig.java:760)
	at org.metanorma.fop.fontConfig.updateConfig(fontConfig.java:447)
	at org.metanorma.fop.fontConfig.getConfig(fontConfig.java:738)
	at org.metanorma.fop.PDFGenerator.setTablesWidths(PDFGenerator.java:972)
	at org.metanorma.fop.PDFGenerator.convertmn2pdf(PDFGenerator.java:385)
	at org.metanorma.fop.PDFGenerator.process(PDFGenerator.java:300)
	at org.metanorma.fop.mn2pdf.main(mn2pdf.java:334)
Can't obtain tables widths information: {0}
[INFO] XSL-FO file preparation...
WARNING: Font file '/home/runner/.metanorma/fonts/arial.ttf' (font name 'Arial', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Arial', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/arialbd.ttf' (font name 'Arial', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Bold.ttf' (font name 'Arial', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/arialbi.ttf' (font name 'Arial', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf' (font name 'Arial', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/ariali.ttf' (font name 'Arial', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Arial', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/times.ttf' (font name 'Times New Roman', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Times New Roman', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/timesbd.ttf' (font name 'Times New Roman', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Bold.ttf' (font name 'Times New Roman', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/timesbi.ttf' (font name 'Times New Roman', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf' (font name 'Times New Roman', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/timesi.ttf' (font name 'Times New Roman', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Times New Roman', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Thin.ttf' (font name 'Work Sans', font style 'normal', font weight '100') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight '100') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ThinItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '100') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight '100') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ExtraLight.ttf' (font name 'Work Sans', font style 'normal', font weight '200') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight '200') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ExtraLightItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '200') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight '200') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Light.ttf' (font name 'Work Sans', font style 'normal', font weight '300') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight '300') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-LightItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '300') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight '300') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight 'normal') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Medium.ttf' (font name 'Work Sans', font style 'normal', font weight '500') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight '500') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-MediumItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '500') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight '500') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-SemiBold.ttf' (font name 'Work Sans', font style 'normal', font weight '600') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight '600') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-SemiBoldItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '600') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight '600') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Bold.ttf' (font name 'Work Sans', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Bold.ttf' (font name 'Work Sans', font style 'normal', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Bold.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-BoldItalic.ttf' (font name 'Work Sans', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf' (font name 'Work Sans', font style 'italic', font weight 'bold') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ExtraBold.ttf' (font name 'Work Sans', font style 'normal', font weight '800') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight '800') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-ExtraBoldItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '800') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight '800') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-Black.ttf' (font name 'Work Sans', font style 'normal', font weight '900') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Regular.ttf' (font name 'Work Sans', font style 'normal', font weight '900') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Regular.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/WorkSans-BlackItalic.ttf' (font name 'Work Sans', font style 'italic', font weight '900') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.
WARNING: Font file '/home/runner/.metanorma/fonts/file:/home/runner/.metanorma/fonts/NotoSans-Italic.ttf' (font name 'Work Sans', font style 'italic', font weight '900') doesn't exist. Replaced by '/home/runner/.metanorma/fonts/NotoSans-Italic.ttf'.

Fonts downloading...
Downloading https://github.com/fontist/noto-fonts/releases/download/v1.1/noto-fonts-latn-1.1.zip...
Can't downloaded a file: /home/runner/.metanorma/fonts/noto-fonts-latn-1.1.zip (No such file or directory)
Can't unzip a file: /home/runner/.metanorma/fonts/noto-fonts-latn-1.1.zip (No such file or directory)
Downloading https://github.com/fontist/noto-fonts/releases/download/v1.1/noto-fonts-cjk-static-1.1.zip...
Can't downloaded a file: /home/runner/.metanorma/fonts/noto-fonts-cjk-static-1.1.zip (No such file or directory)
Can't unzip a file: /home/runner/.metanorma/fonts/noto-fonts-cjk-static-1.1.zip (No such file or directory)
Downloading https://github.com/stipub/stixfonts/raw/master/archive/STIXv2.0.2/OTF/STIX2Math.otf...
Can't downloaded a file: /home/runner/.metanorma/fonts/STIX2Math.otf (No such file or directory)
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-Regular.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-Bold.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-Italic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-BoldItalic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerif-Regular.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerif-Bold.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerif-Italic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerif-BoldItalic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMono-Regular.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMono-Bold.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-Light.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSans-LightItalic.ttf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansHK-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansJP-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansKR-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansSC-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansTC-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansHK-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansJP-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansKR-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansSC-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansTC-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifHK-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifJP-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifKR-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifSC-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifTC-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifHK-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifJP-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifKR-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifSC-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSerifTC-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKhk-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKjp-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKkr-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKsc-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKtc-Regular.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKhk-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKjp-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKkr-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKsc-Bold.otf
Can't find a font file: /home/runner/.metanorma/fonts/NotoSansMonoCJKtc-Bold.otf
java.nio.file.NoSuchFileException: /home/runner/.metanorma/fonts
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
	at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
	at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
	at java.nio.file.Files.readAttributes(Files.java:1737)
	at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
	at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
	at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
	at java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:72)
	at java.nio.file.Files.walk(Files.java:3574)
	at java.nio.file.Files.walk(Files.java:3625)
	at org.metanorma.fop.fontConfig.updateFontsForGraphicsEnvironment(fontConfig.java:760)
	at org.metanorma.fop.fontConfig.updateConfig(fontConfig.java:447)
	at org.metanorma.fop.fontConfig.getConfig(fontConfig.java:738)
	at org.metanorma.fop.PDFGenerator.runSecondPass(PDFGenerator.java:588)
	at org.metanorma.fop.PDFGenerator.convertmn2pdf(PDFGenerator.java:406)
	at org.metanorma.fop.PDFGenerator.process(PDFGenerator.java:300)
	at org.metanorma.fop.mn2pdf.main(mn2pdf.java:334)
java.nio.file.NoSuchFileException: /home/runner/.metanorma/fonts/pdf_fonts_config.xml.out
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
	at java.nio.file.Files.newOutputStream(Files.java:216)
	at java.nio.file.Files.newBufferedWriter(Files.java:2860)
	at java.nio.file.Files.newBufferedWriter(Files.java:2896)
	at org.metanorma.fop.fontConfig.writeFOPConfigFile(fontConfig.java:724)
	at org.metanorma.fop.fontConfig.updateConfig(fontConfig.java:452)
	at org.metanorma.fop.fontConfig.getConfig(fontConfig.java:738)
	at org.metanorma.fop.PDFGenerator.runSecondPass(PDFGenerator.java:588)
	at org.metanorma.fop.PDFGenerator.convertmn2pdf(PDFGenerator.java:406)
	at org.metanorma.fop.PDFGenerator.process(PDFGenerator.java:300)
	at org.metanorma.fop.mn2pdf.main(mn2pdf.java:334)
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/mn2pdf-1.47/lib/mn2pdf.rb:57:in `convert'
	from /__tebako_memfs__/local/metanorma:123:in `convert'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/isodoc-2.1.3/lib/metanorma/output/xslfo.rb:10:in `convert'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/isodoc-2.1.3/lib/isodoc/xslfo_convert.rb:61:in `convert'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-1.4.9/lib/metanorma/collection_renderer.rb:93:in `concatenate'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-1.4.9/lib/metanorma/collection_renderer.rb:76:in `render'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-1.4.9/lib/metanorma/collection.rb:76:in `render'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.18/lib/metanorma/cli/collection.rb:18:in `render'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.18/lib/metanorma/cli/collection.rb:13:in `render'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.18/lib/metanorma/cli/command.rb:73:in `collection'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-hollaback-0.2.1/lib/thor/hollaback.rb:68:in `run'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
	from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.18/lib/metanorma/cli.rb:34:in `start'
	from /__tebako_memfs__/local/metanorma:236:in `<main>'
##[error]Process completed with exit code 1.

According to @maxirmx , it seems that this job failed when expecting /home/runner/.metanorma/fonts exist but it doesn't.

@CAMOBAP do you have any idea what is going on here? Thanks.

@ronaldtse ronaldtse added the bug Something isn't working label Jul 13, 2022
@CAMOBAP
Copy link
Contributor

CAMOBAP commented Jul 15, 2022

Can be related to the metanorma/metanorma-snap#14 issue, in progress

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Mar 11, 2023

Doesn't reproduces anymore

@CAMOBAP CAMOBAP closed this as completed Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants