Menu

#13 Doesn't preview any expression

(all)
closed-fixed
nobody
None
5
2013-11-23
2013-10-25
No

When introduced any formula in the main Window, you don't get any preview. When typing a latex formula in an editor, in KDE, you don't get any preview, as it used to happen.

Tested in Archlinux and Kubuntu 13.10. Both with KDE 4.11.2

Here is an output from the command line:

klatexformula --latexinput 'a^2+b^2=c^2' --output filename.png

KLatexFormula Version 3.2.7 by Philippe Faist (c) 2005-2011
Licensed under the terms of the GNU Public License GPL

gs reported an error (exit status 1). Here is full stdout output:

Unknown device: pswrite
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice

Discussion

  • Philippe Faist

    Philippe Faist - 2013-10-25

    It seems like ghostscript doesn't provide the 'pswrite' driver anymore. I'm working on a fix and hope to release it soon.

     
  • Philippe Faist

    Philippe Faist - 2013-11-23

    This issue should now be fixed in the new version release 3.2.8.

     
    • Felipe Hommen

      Felipe Hommen - 2013-11-23

      I don't know if I should have opened a new report, but I just compiled the new version and still can't preview any formula. Get this error message:

      klatexformula --latexinput 'a^2+b^2=c^2' --output filename.png

      KLatexFormula Version 3.2.8 by Philippe Faist (c) 2005-2011
      Licensed under the terms of the GNU Public License GPL

      gs reported an error (exit status 1). Here is full stderr output:

      GPL Ghostscript 9.10: Unrecoverable error, exit code 1
      

      And here is full stdout output:

      Error: /undefined in 1,000000
      Operand stack:
      
      Execution stack:
         %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1884   1   3   %oparray_pop   1883   1   3   %oparray_pop   --nostringval--   1867   1   3   %oparray_pop   1755   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
      Dictionary stack:
         --dict:1168/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--
      Current allocation mode is local
      Last OS error: No such file or directory
      Current file position is 55386
      

      Compiled so in archlinux x86_64 system:

      cd build
      export PATH=/usr/lib/qt4/bin:$PATH
      cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS="-lX11 ${CXXFLAGS}" -DCMAKE_BUILD_TYPE=Release
      make
      make install

       
      • Philippe Faist

        Philippe Faist - 2013-11-24

        That's strange. It's a new error now, it's no longer complaining about the nonexisting pswrite device.

        I unfortunately can't reproduce the bug. I've tried with Ghostscript 9.10 on a fresh virtual ubuntu install and 9.10 on my virtual windows box, and in both cases it worked fine. I briefly tried to set up a virtual arch linux box but gave up because I just can't learn to do all the set-up manually without losing an excessive amount of time.

        I could think of a couple possible suggestions for workarounds:

        • you can try to set the KLFBACKEND_GS_PS_DEVICE environment variable to "epswrite". But in this case the border offsets don't work unfortunately.
        • you can try to unset the option to outline fonts, "--outlinefonts=0" which skips the additional EPS processing step during which the error seems to occur. (If you want to generate PNG for example, you anyway don't need outlined fonts.)

        If you could find a way to reproduce the bug on Mac OS X, Ubuntu or Windows (or possibly other systems for which I could install a virtual machine easily), then that would be very helpful.

        Thank you anyway for the report.

         
  • Philippe Faist

    Philippe Faist - 2013-11-23
    • status: open --> closed-fixed
     
MongoDB Logo MongoDB