You need to share the complete traceback. (And format it as code.)
com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File "", line 53, in rackCurrentLimitExport at java.desktop/sun.font.FontManagerFactory$1.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.desktop/sun.font.FontManagerFactory.getInstance(Unknown Source) at java.desktop/java.awt.Font.getFont2D(Unknown Source) at java.desktop/java.awt.Font.canDisplayUpTo(Unknown Source) at java.desktop/java.awt.font.TextLayout.singleFont(Unknown Source) at java.desktop/java.awt.font.TextLayout.(Unknown Source) at org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(SheetUtil.java:273) at org.apache.poi.xssf.streaming.AutoSizeColumnTracker.(AutoSizeColumnTracker.java:117) at org.apache.poi.xssf.streaming.SXSSFSheet.(SXSSFSheet.java:82) at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:684) at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:705) at com.inductiveautomation.ignition.common.util.excel.adapters.DatasetExcelAdapter.drawSheet(DatasetExcelAdapter.java:61) at com.inductiveautomation.ignition.common.util.excel.adapters.DatasetExcelAdapter.drawWorkbook(DatasetExcelAdapter.java:44) at com.inductiveautomation.ignition.common.script.builtin.DatasetUtilities.dataSetToExcelBytes(DatasetUtilities.java:1217) at com.inductiveautomation.ignition.common.script.builtin.DatasetUtilities.toExcel(DatasetUtilities.java:1031) at jdk.internal.reflect.GeneratedMethodAccessor79.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) java.lang.InternalError: java.lang.InternalError: java.lang.reflect.InvocationTargetException
at org.python.core.Py.JavaError(Py.java:545)
at org.python.core.Py.JavaError(Py.java:536)
at org.python.core.PyReflectedFunction.**call**(PyReflectedFunction.java:192)
at org.python.core.PyReflectedFunction.**call**(PyReflectedFunction.java:208)
at org.python.core.PyObject.**call**(PyObject.java:512)
at org.python.core.PyObject.**call**(PyObject.java:517)
at org.python.pycode._pyx1513.rackCurrentLimitExport$2(:63)
at org.python.pycode._pyx1513.call_function()
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:306)
at org.python.core.PyFunction.function___call__(PyFunction.java:474)
at org.python.core.PyFunction.**call**(PyFunction.java:469)
at org.python.core.PyFunction.**call**(PyFunction.java:464)
at com.inductiveautomation.ignition.common.script.ScriptManager.runFunction(ScriptManager.java:847)
at com.inductiveautomation.ignition.gateway.script.GatewaySystemUtilities.lambda$_invokeAsyncImpl$0(GatewaySystemUtilities.java:152)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.python.core.PyException: java.lang.InternalError: java.lang.InternalError: java.lang.reflect.InvocationTargetException
... 16 common frames omitted
Caused by: java.lang.InternalError: java.lang.reflect.InvocationTargetException
at java.desktop/sun.font.FontManagerFactory$1.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/sun.font.FontManagerFactory.getInstance(Unknown Source)
at java.desktop/java.awt.Font.getFont2D(Unknown Source)
at java.desktop/java.awt.Font.canDisplayUpTo(Unknown Source)
at java.desktop/java.awt.font.TextLayout.singleFont(Unknown Source)
at java.desktop/java.awt.font.TextLayout.(Unknown Source)
at org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(SheetUtil.java:273)
at org.apache.poi.xssf.streaming.AutoSizeColumnTracker.(AutoSizeColumnTracker.java:117)
at org.apache.poi.xssf.streaming.SXSSFSheet.(SXSSFSheet.java:82)
at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:684)
at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:705)
at com.inductiveautomation.ignition.common.util.excel.adapters.DatasetExcelAdapter.drawSheet(DatasetExcelAdapter.java:61)
at com.inductiveautomation.ignition.common.util.excel.adapters.DatasetExcelAdapter.drawWorkbook(DatasetExcelAdapter.java:44)
at com.inductiveautomation.ignition.common.script.builtin.DatasetUtilities.dataSetToExcelBytes(DatasetUtilities.java:1217)
at com.inductiveautomation.ignition.common.script.builtin.DatasetUtilities.toExcel(DatasetUtilities.java:1031)
at jdk.internal.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.**call**(PyReflectedFunction.java:190)
... 13 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.GeneratedConstructorAccessor191.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
... 33 common frames omitted
Caused by: java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration
at java.desktop/sun.awt.FontConfiguration.getVersion(Unknown Source)
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(Unknown Source)
at java.desktop/sun.awt.FontConfiguration.init(Unknown Source)
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(Unknown Source)
at java.desktop/sun.font.SunFontManager$2.run(Unknown Source)
at java.desktop/sun.font.SunFontManager$2.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/sun.font.SunFontManager.(Unknown Source)
at java.desktop/sun.awt.FcFontManager.(Unknown Source)
at java.desktop/sun.awt.X11FontManager.(Unknown Source)
I've never run into this, but it is clearly a platform font configuration problem. What OS is the gateway, and what fonts are installed there?
Hi, Vignesh. You've managed to format each individual line as preformatted text instead of formatting the whole block as preformatted text . You also have an empty code block at the top of your post. Formatting the whole block is as easy as selecting the block and pressing the </> button - same as most other forums. Please see Wiki - how to post code on this forum.
hi,
My OS is Debian GNU/Linux 12 (bookworm)
These are the fonts I can see from system fonts:
Arial
Arial Black
Bahnschrift
Calibri
Calibri Light
Cambria
Cambria Math
Candara
Candara Light
Comic Sans MS
Consolas
Constantia
Corbel
Corbel Light
Courier New
Dialog
DialogInput
Dotum
DotumChe
Ebrima
Franklin Gothic Medium
Gabriola
Gadugi
Georgia
Gulim
GulimChe
Impact
Ink Free
Javanese Text
Leelawadee UI
Leelawadee UI Semilight
Lucida Console
Lucida Sans Unicode
Malgun Gothic
Malgun Gothic Semilight
Marlett
Microsoft Himalaya
Microsoft JhengHei
Microsoft JhengHei Light
Microsoft JhengHei UI
Microsoft JhengHei UI Light
Microsoft New Tai Lue
Microsoft PhagsPa
Microsoft Sans Serif
Microsoft Tai Le
Microsoft YaHei
Microsoft YaHei Light
Microsoft YaHei UI
Microsoft YaHei UI Light
Microsoft Yi Baiti
MingLiU
MingLiU-ExtB
MingLiU_HKSCS
MingLiU_HKSCS-ExtB
Mongolian Baiti
Monospaced
MS Gothic
MS PGothic
MS UI Gothic
MV Boli
Myanmar Text
Nirmala UI
Nirmala UI Semilight
Noto Sans
Noto Sans Adlam
Noto Sans AnatoHiero
Noto Sans Arabic UI
Noto Sans Armenian
Noto Sans Avestan
Noto Sans Balinese
Noto Sans Bamum
Noto Sans Batak
Noto Sans Bengali UI
Noto Sans Brahmi
Noto Sans Buginese
Noto Sans Buhid
Noto Sans Canadian Aboriginal
Noto Sans Carian
Noto Sans Chakma
Noto Sans Cham
Noto Sans Cherokee
Noto Sans Coptic
Noto Sans Cuneiform
Noto Sans Cypriot
Noto Sans Deseret
Noto Sans Devanagari UI
Noto Sans EgyptHiero
Noto Sans Ethiopic
Noto Sans Georgian
Noto Sans Glagolitic
Noto Sans Gothic
Noto Sans Gujarati UI
Noto Sans Gurmukhi UI
Noto Sans Hanifi Rohingya
Noto Sans Hanifi Rohingya Medium
Noto Sans Hanifi Rohingya SemiBold
Noto Sans Hanunoo
Noto Sans Hebrew
Noto Sans ImpAramaic
Noto Sans InsPahlavi
Noto Sans InsParthi
Noto Sans Javanese
Noto Sans Kaithi
Noto Sans Kannada UI
Noto Sans Kharoshthi
Noto Sans Khmer UI
Noto Sans Lao UI
Noto Sans Lepcha
Noto Sans Limbu
Noto Sans Linear B
Noto Sans Lisu
Noto Sans Lycian
Noto Sans Lydian
Noto Sans Malayalam UI
Noto Sans Mandaic
Noto Sans Meetei Mayek
Noto Sans Mende Kikakui
Noto Sans Mongolian
Noto Sans Mono
Noto Sans Myanmar UI
Noto Sans N'Ko
Noto Sans NewTaiLue
Noto Sans Ogham
Noto Sans Ol Chiki
Noto Sans Old Italic
Noto Sans Old Turkic
Noto Sans OldPersian
Noto Sans OldSouArab
Noto Sans Oriya UI
Noto Sans Osage
Noto Sans Osmanya
Noto Sans Phags Pa
Noto Sans Phoenician
Noto Sans Rejang
Noto Sans Runic
Noto Sans Samaritan
Noto Sans Saurashtra
Noto Sans Shavian
Noto Sans Sinhala UI
Noto Sans Sundanese
Noto Sans Syloti Nagri
Noto Sans Symbols
Noto Sans Symbols2
Noto Sans Syriac Eastern
Noto Sans Syriac Estrangela
Noto Sans Syriac Western
Noto Sans Tagalog
Noto Sans Tagbanwa
Noto Sans Tai Le
Noto Sans Tai Tham
Noto Sans Tai Viet
Noto Sans Tamil UI
Noto Sans Telugu UI
Noto Sans Thaana
Noto Sans Thai UI
Noto Sans Tibetan
Noto Sans Tifinagh
Noto Sans Ugaritic
Noto Sans Vai
Noto Sans Yi
Noto Serif
NSimSun
Palatino Linotype
PMingLiU
PMingLiU-ExtB
SansSerif
Segoe MDL2 Assets
Segoe Print
Segoe Script
Segoe UI
Segoe UI Black
Segoe UI Emoji
Segoe UI Historic
Segoe UI Light
Segoe UI Semibold
Segoe UI Semilight
Segoe UI Symbol
Serif
SimSun
SimSun-ExtB
Sitka Banner
Sitka Display
Sitka Heading
Sitka Small
Sitka Subheading
Sitka Text
Source Sans Pro
Sylfaen
Symbol
Tahoma
Times New Roman
Trebuchet MS
Verdana
Webdings
Wingdings
Yu Gothic
Yu Gothic Light
Yu Gothic Medium
Yu Gothic UI
Yu Gothic UI Light
Yu Gothic UI Semibold
Yu Gothic UI Semilight
Google suggests sudo apt-get install fontconfig ttf-dejavu
followed by fc-cache -fv
.
I've fixed the two posts you made that didn't use preformatted text correctly and thus made this thread painful to scroll through. Please read the post Transistor linked again or compare what you did with what I did in your posts.
Hi,
Sure, Thanks for your suggestion, I will implement the same and share the feeback.
Also, I will follow the preformatted text correctly.