Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20353

NativeFormulaRenderer does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.8, 14.9
    • Formula
    • None
    • Unknown

    Description

      I'm sure, latex, convert, dvips, dvisvgm ... are installed properly and can be executed by the user tomcat. I found that the /var/cache/tomcat9 directory didn't exist. I created it, gave it the correct owner and permission and it immediately starts getting populated with. Though my formulas are still rendered with snuggletex. This is, wat I see in catalina.out:

      [2022-11-13 11:19:26] [info] 2022-11-13 11:19:26,810 [http-nio-8080-exec-6 - http://lmr.valckenburgschule.de/xwiki/bin/preview/seki/Terme/WebHome] DEBUG o.x.f.i.NativeFormulaRenderer  - Error generating image:
      
      [2022-11-13 11:19:26] [info] 2022-11-13 11:19:26,814 [http-nio-8080-exec-6 - http://lmr.valckenburgschule.de/xwiki/bin/preview/seki/Terme/WebHome] DEBUG o.x.f.i.NativeFormulaRenderer  - Error generating image: This is dvips(k) 2021.1 (TeX Live 2022/dev)  Copyright 2021 
      Radical Eye Software (www.radicaleye.com)
      
      [2022-11-13 11:19:26] [info] dvips: DVI file can't be opened: /var/cache/tomcat9/Catalina/localhost/xwiki/xwiki-temp/formulae/owYwJnY4/file.dvi: No such file or directory
      
      [2022-11-13 11:19:26] [info]   
      [2022-11-13 11:19:26] [info] 2022-11-13 11:19:26,819 [http-nio-8080-exec-6 - http://lmr.valckenburgschule.de/xwiki/bin/preview/seki/Terme/WebHome] DEBUG o.x.f.i.NativeFormulaRenderer  - Error generating image: convert-im6.q16: unable to open image `/var/cache/tomcat9/Ca
      talina/localhost/xwiki/xwiki-temp/formulae/owYwJnY4/file.ps': No such file or directory @ error/blob.c/OpenBlob/2924.
      
      [2022-11-13 11:19:26] [info] convert-im6.q16: no images defined `/var/cache/tomcat9/Catalina/localhost/xwiki/xwiki-temp/formulae/owYwJnY4/file.png' @ error/convert.c/ConvertImageCommand/3229.
      
      [2022-11-13 11:19:26] [info]

      I suppose latex does not generate the dvi, although there is no corresponding error in the log. Maybe latex puts the file somewhere else?

      Attachments

        Activity

          People

            Unassigned Unassigned
            hengels Holger Engels
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: