Skip to content

Typical Error Messages

Maurice edited this page Nov 10, 2022 · 6 revisions

Error messages from Saxon

Not Enough Memory

java -Xmx1450m -jar C:\m3\SaxonHE10-5J\saxon-he-10.5.jar -s:C:\m3\zml2lido\sdata\ISL\20221026\ISL3Wege-join-group121396-links.lido.xml -xsl:C:\m3\zml2lido\zml2lido\data\xsl\splitLido.xsl -o:o.xml
Error occurred during initialization of VM
Could not reserve enough space for 1484800KB object heap
Traceback (most recent call last):
  File "runpy.py", line 197, in _run_module_as_main
  File "runpy.py", line 87, in _run_code
  File "C:\Python\Scripts\lido.exe\__main__.py", line 7, in <module>
  File "C:\m3\zml2lido\zml2lido\__init__.py", line 79, in lido
    getattr(m, args.job)()
  File "C:\m3\zml2lido\zml2lido\jobs.py", line 105, in smb
    self.splitLido(Input=linklido_fn)
  File "C:\m3\zml2lido\zml2lido\lidoTool.py", line 224, in splitLido
    self.splitLidoSingle(Input=Input)
  File "C:\m3\zml2lido\zml2lido\lidoTool.py", line 237, in splitLidoSingle
    self.saxon(Input=Input, xsl=xsl["splitLido"], output="o.xml")
  File "C:\m3\zml2lido\zml2lido\lidoTool.py", line 349, in saxon
    subprocess.run(
  File "subprocess.py", line 528, in run
subprocess.CalledProcessError: Command 'java -Xmx1450m -jar C:\m3\SaxonHE10-5J\saxon-he-10.5.jar -s:C:\m3\zml2lido\sdata\ISL\20221026\ISL3Wege-join-group121396-links.lido.xml -xsl:C:\m3\zml2lido\zml2lido\data\xsl\splitLido.xsl -o:o.xml' returned non-zero exit status 1.

Problem: Saxon couldn't reserve enough memory.

Solution: Turn off Outlook, Acrobat and unnecessary tabs in your browser before executing lido or saxon. Your computer seems to need at least physically 8GB memory (on Windows).

Background: Currently, I reserve about 1,4GB memory when I call saxon (see -Xmx1450m option).

Clone this wiki locally