Bug 426636 - LaTeX output scrambled
Summary: LaTeX output scrambled
Status: RESOLVED UPSTREAM
Alias: None
Product: cantor
Classification: Applications
Component: general (show other bugs)
Version: 20.08
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Cantor Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-17 11:40 UTC by falsifiability
Modified: 2020-10-02 04:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
LaTeX output (30.92 KB, image/png)
2020-09-17 11:40 UTC, falsifiability
Details

Note You need to log in before you can comment on or make changes to this bug.
Description falsifiability 2020-09-17 11:40:26 UTC
Created attachment 131719 [details]
LaTeX output

SUMMARY

[Problem]
Any LaTeX output (from a LaTeX entry or output of e.g. a sagemath command) is scrambled.

[System]
I use a 64bit arch linux with X window system with KDE as DE. Packages from arch repo.

[Application and library versions]
cantor version: 20.08.1
KDE Frameworks 5.74.0
Qt 5.15.1 (built against 5.15.1)

GPL Ghostscript 9.53.1 (2020-09-14)
libspectre 0.2.9-1

[Terminal Output]
converting to eps:  "/usr/bin/dvips" -E -o "/tmp/cantor_02a144ee_54be_4fa4_9076_272b024af729.eps" "/tmp/cantor_02a144ee_54be_4fa4_9076_272b024af729.dvi"
remove temporary files for  "/tmp/cantor_tex-eoHEfR.tex"
rendered a result to  "/tmp/cantor_02a144ee_54be_4fa4_9076_272b024af729.eps"
setting result to a type  7  result
update Entry
rendering eps file:  QUrl("file:///tmp/cantor_02a144ee_54be_4fa4_9076_272b024af729.eps")
scale:  1.8
dimension:  126 x 23.4
**** Unable to open the initial device, quitting.
(libspectre) ghostscript reports: fatal internal error -100QUrl("internal:0bc197c3_2108_4505_b939_7b27c2f26835")

[Remark]

STEPS TO REPRODUCE
1. Install cantor on arch linux
2. Open Worksheet (any backend)
3. Insert a LaTeX entry and execute

or

1. Install cantor on arch linux
2. Open Worksheet (Sage backend)
3. Insert a command (any matrix will do), see attachment

OBSERVED RESULT
No correct display of LaTeX/command output.


EXPECTED RESULT
Correct display of LaTeX/command output.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux x86_64, Kernel 5.8.9-arch2-1
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Comment 1 Nikita Sirgienko 2020-09-23 11:56:53 UTC
Interesting. 
Can be related to this recent theme about problem with ghostscript: https://bbs.archlinux.org/viewtopic.php?id=259223?
I mean, this is Arch Linux (so a rolling release politic) so maybe this is just a bug in latest release of ghost script or libspectre.
Comment 2 falsifiability 2020-10-02 04:35:38 UTC
Seems to be resolved with arch package repository update to ghostscript 9.53.3-1 (https://www.archlinux.org/packages/extra/x86_64/ghostscript/). Can't reproduce error anymore. LaTeX output looks fine.