Forum archive 2000-2006

Mark Hamrick - Strange WebWork Errors

Mark Hamrick - Strange WebWork Errors

by Arnold Pizer -
Number of replies: 0
inactiveTopicStrange WebWork Errors topic started 2/2/2005; 4:43:10 PM
last post 2/3/2005; 1:21:16 PM
userMark Hamrick - Strange WebWork Errors  blueArrow
2/2/2005; 4:43:10 PM (reads: 1191, responses: 3)
Hello, students at are site are randomly getting the following error messages. If they hit reload, the images will appear, and the error message goes away. Anyone have any suggestions?

* cd /opt/webwork2/tmp/ImageGenerator.Q4YHRj0C && /usr/bin/latex equation > latex.out 2> latex.err returned non-zero status -1: Cannot allocate memory at /opt/pg/lib/WeBWorK/PG/ImageGenerator.pm line 340. * cd /opt/webwork2/tmp/ImageGenerator.Q4YHRj0C failed at /opt/pg/lib/WeBWorK/PG/ImageGenerator.pm line 341. * Warning: something's wrong at /opt/pg/lib/WeBWorK/PG/ImageGenerator.pm line 345. * Unable to read logfile /opt/webwork2/tmp/ImageGenerator.Q4YHRj0C/equation.log at /opt/pg/lib/WeBWorK/PG/ImageGenerator.pm line 351. * cd /opt/webwork2/tmp/ImageGenerator.Q4YHRj0C && /usr/bin/latex equation > latex.out 2> latex.err failed to generate a DVI file at /opt/pg/lib/WeBWorK/PG/ImageGenerator.pm line 355. * cd /opt/webwork2/tmp/ImageGenerator.Q4YHRj0C && /usr/local/bin/dvipng -bgTransparent -D120 -q -depth equation > dvipng.out 2> dvipng.err returned non-zero status -1: Cannot allocate memory at /opt/pg/lib/WeBWorK/PG/ImageGenerator.pm line 361.

<| Post or View Comments |>


userMichael Gage - Re: Strange WebWork Errors  blueArrow
2/2/2005; 5:33:39 PM (reads: 1457, responses: 0)
Take a look at http://webhost.math.rochester.edu/webworkdocs/discuss/msgReader$2619#2621 (found by searching for "allocate memory" in the search box at lower left).

It seems that restarting the apache server might fix your problem.

-- Mike

<| Post or View Comments |>


userLars Jensen - Re: Strange WebWork Errors  blueArrow
2/3/2005; 2:44:11 AM (reads: 1488, responses: 0)
Hi Mark,

Are you sure dvipng is in /usr/local/bin and not in /usr/bin as is the case with many linux distributions?

Some configuration in Constants.pm and the Image conversion utilities may also be necessary:

http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/InstallationManualV2pt1#Constants_pm

Lars.

<| Post or View Comments |>


userMark Hamrick - Re: Strange WebWork Errors  blueArrow
2/3/2005; 1:21:16 PM (reads: 1529, responses: 0)
Mike, Lars,

I am going to cron apache to restart nightly.

I checked, dvipng is located in /usr/local/bin.

Thanks, Mark

<| Post or View Comments |>