Latex formula does not work on Ubuntu Hardy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Johan Engelen | ||
inkscape (Fedora) |
Fix Released
|
Unknown
|
|||
inkscape (Ubuntu) |
Confirmed
|
Low
|
Kees Cook |
Bug Description
The latex formula extension does not work on Ubuntu Hardy. When I try to render the formula "$1-2$" a popup appears and says:
"Inkscape has received additional data from the script executed. The script did not return an error, but this may indicate the results will not be as expected."
And in the text field there is:
"pstoedit: version 3.45 / DLL interface 108 (build Nov 28 2007 - release build - g++ 4.2.3 20071123 (prerelease) (Ubuntu 4.2.2-3ubuntu4)) : Copyright (C) 1993 - 2007 Wolfgang Glunz"
CPU consumption is at 0%. Inkscape is just waiting for a click on the OK button.
The problem causing this popup is that pstoedit is printing to stderr instead of stdout.
If I change the following line in "eqtexsvg.py"
os.system(
to
os.system(
the popup window does not appear anymore, but I still cannot see a formula in inkscape.
I've also changed the following lines ("#" inserter) to see what output files are generated:
And everything looks fine. The eq.svg is created and contains my formula. Why is Inkscape not importing the file?
My system:
Ubuntu Hardy
Python 2.5.2a0
python-lxml 1.3.6-1
pstoedit: version 3.45 / DLL interface 108 (build Nov 28 2007 ...
Inkscape 0.45.1+0.46pre1, built Feb 20 2008
See also
bug 179770 - latest changes to the extension interface
bug 194310 - problem on Windows XP
Changed in inkscape: | |
assignee: | nobody → acspike |
Changed in inkscape: | |
status: | Unknown → Fix Committed |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
' 2>&1 > ' + out_file
You don't want to do that. That redirects stderr into stdout. out_file is now an invalid SVG file with whatever pstoedit bits thrown in. If pstoedit has a --quiet option or something similar this would be better.
Inkscape is designed to return stderr from an extensions in that popup. This aids greatly in debuging. Please trust that the popup is not prohibiting the extension from working.
I'm not sure I'll be able to troubleshoot this issue because I have the problem with 100% cpu usage on gusty.