Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26461 - [mediawiki][texvc] png conversion failed

Attached to Project: Community Packages
Opened by Artem A Klevtsov (unikum) - Saturday, 15 October 2011, 21:14 GMT
Last edited by Sergej Pupykin (sergej) - Sunday, 16 October 2011, 09:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When I try use math tag I recieve following message:
""Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert)""

Additional info:
* package version(s)
community/mediawiki 1.17.0-3
community/texvc 1.17.0-1
extra/texlive-bin 2011.1-1
extra/imagemagick 6.7.3.0-1
extra/ghostscript 9.04-5
extra/lighttpd 1.4.29-2
extra/php-cgi 5.3.8-4
extra/mysql 5.5.16-1

* config and/or log files etc.

All rewuired programs are installed:
~ $ ls -lH `which gs` `which latex` `which dvips` `which convert` `which dvipng` `which texvc`
-rwxr-xr-x 1 root root 14088 окт. 11 11:24 /usr/bin/convert
-rwxr-xr-x 1 root root 175904 июля 24 23:02 /usr/bin/dvipng
-rwxr-xr-x 1 root root 285016 июля 24 23:02 /usr/bin/dvips
-rwxr-xr-x 1 root root 9844392 авг. 22 23:22 /usr/bin/gs
-rwxr-xr-x 1 root root 903136 июля 24 23:02 /usr/bin/latex
-rwxr-xr-x 1 root root 516016 июля 20 17:20 /usr/bin/texvc

I success done this checks - http://www.mediawiki.org/wiki/Manual:$wgUseTeX#Diagnostics

Steps to reproduce:
Install mediawiki on the lighttpd+php-cgi+mysql.
Add in LocalSettings.php.
$wgUseTeX = true;
$wgTexvc = "/usr/bin/texvc";
$wgLatexCommand = "/usr/bin/latex";
$wgImageMagickConvertCommand = "/usr/bin/convert";

Create page with following content: <math>0</math>
This task depends upon

Closed by  Sergej Pupykin (sergej)
Sunday, 16 October 2011, 09:39 GMT
Reason for closing:  Not a bug
Comment by Artem A Klevtsov (unikum) - Saturday, 15 October 2011, 21:42 GMT
I have tried rebuild texvc in wiki/math directory as writen this - http://www.mediawiki.org/wiki/Manual:Troubleshooting_math_display_errors#Hack_texvc.

Then I comment in LocalSettins.php:
#$wgTexvc = "/usr/bin/texvc";
#$wgLatexCommand = "/usr/bin/latex";

Then in /tmp/wiki_latex_error I found:
fatal: memory exhausted (xmalloc of 4000008 bytes).
Comment by Sergej Pupykin (sergej) - Saturday, 15 October 2011, 22:35 GMT
Try to install texlive-core and texlive-latexextra. Does it help?
Comment by Sergej Pupykin (sergej) - Saturday, 15 October 2011, 22:37 GMT
texvc works for me, so probably I did not add all dependencies to texvc pkgbuild.
Comment by Artem A Klevtsov (unikum) - Saturday, 15 October 2011, 22:51 GMT
texlive-core and texlive-latexextra already installed. Can you ask me about your settings for the texvc? What webserver you use?
Comment by Sergej Pupykin (sergej) - Sunday, 16 October 2011, 08:54 GMT
I use apache,

$wgTexvc = "/usr/bin/texvc";
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgMaxShellMemory = 8000000;
$wgMaxShellFileSize = 1000000;
$wgMaxShellTime = 300;

may be last three lines will help.
Comment by Artem A Klevtsov (unikum) - Sunday, 16 October 2011, 09:27 GMT
Solved! Its help me:
$wgUseTeX = true;
$wgMaxShellMemory = 8000000;
$wgMaxShellFileSize = 1000000;
$wgMaxShellTime = 300;
Paths is not required: $wgTexvc, $wgLatexCommand, $wgMathPath, $wgMathDirectory, $wgUploadPath, $wgUploadDirectory.
On my virtual hosting (with apache+mod_php) all work without this directives: $wgMaxShellMemory, $wgMaxShellFileSize, $wgMaxShellTime.
Why its required for lighttpd+php-cgi? May be I should change some settings in php.ini?
I don't understand what is reason of this behaviour.
Comment by Sergej Pupykin (sergej) - Sunday, 16 October 2011, 09:39 GMT
I think it is ulimit problem. Mediawiki runs texvc with bin/ulimit4.sh script.

I've created https://wiki.archlinux.org/index.php/Mediawiki with this tip.

Loading...