Forum archive 2000-2006

Andy Wildenberg - Strange doubling bug in latex2HTML mode

Andy Wildenberg - Strange doubling bug in latex2HTML mode

by Arnold Pizer -
Number of replies: 0
inactiveTopicStrange doubling bug in latex2HTML mode topic started 2/7/2001; 9:46:43 PM
last post 2/10/2001; 10:16:26 AM
userAndy Wildenberg - Strange doubling bug in latex2HTML mode  blueArrow
2/7/2001; 9:46:43 PM (reads: 1989, responses: 6)
I have a very strange bug that I've found in WebWork. I have a question with 4 answers, each a simple one-letter answer (sort of a multiple choice). There are no variations within the students, so that each of them should have exactly the same problem with no variations at all.

However, there is a strange bug that has crept in to a few student's problems. I don't know how many, but I have 2 reports so far out of about 110 students who have attempted the problem. By going into the logs, I accessed the problem for the student with trouble and this seems to be the trouble. All the SRC fields for the formula are doubled.

<IMG WIDTH="176" HEIGHT="44" ALIGN="MIDDLE" BORDER="0" SRC="/cse113/tmp/l2h/set1/3-94243//cse113/tmp/l2h/set1/3-94243/94243img1.gif" ALT="$ (p \vee f = p \wedge t = p) $">

The same IMG field in a "normal" student is like the following

<IMG WIDTH="176" HEIGHT="44" ALIGN="MIDDLE" BORDER="0" SRC="/cse113/tmp/l2h/set1/3-40456/40456img1.gif" ALT="$ (p \vee f = p \wedge t = p) $">

Any idea what is going on? There are two other questions that are of exactly the same form that don't seem to cause problems for anybody. How should I approach debugging this? I can't rebuild the questions because it's in the middle of an assignment (of course).

<| Post or View Comments |>


userAndy Wildenberg - Re: Strange doubling bug in latex2HTML mode  blueArrow
2/7/2001; 9:50:35 PM (reads: 2255, responses: 0)
Also, at the top of the problem I have a table (the key for the answers), and there are 3 rows of the tables that contain formulas. If you use formatted-text mode, the tex code in the tables is displayed raw instead of formatted (complete with the ( and ) shown.

<| Post or View Comments |>


userArnold K. Pizer - Re: Strange doubling bug in latex2HTML mode  blueArrow
2/8/2001; 7:09:25 AM (reads: 2226, responses: 0)
Hi Andy,

As an experiment try the following. Go to /cse113/tmp/l2h/set1/ and completely remove the directory 3-94243.

Then from the prof page (item 3) go to this student's entry (e.g. search for 94243) and view prob 3 in typeset mode. This will run latex2html and rebuild the typeset html page. See if you get the same error.

<| Post or View Comments |>


userAndy Wildenberg - Re: Strange doubling bug in latex2HTML mode  blueArrow
2/8/2001; 6:16:02 PM (reads: 2268, responses: 0)
That worked. Any idea what caused it?

Thanks a lot for your help!

<| Post or View Comments |>


userZbigniew Fiedorowicz - Re: Strange doubling bug in latex2HTML mode  blueArrow
2/8/2001; 8:11:48 PM (reads: 2306, responses: 0)
Did you use l2hPrecreateSet.pl to create your problem set?

There was a memory leakage problem within precreate sessions, which affected me last year. Mike cooked up a fix for it, but perhaps he didn't incorporate it in version 1.6. Or perhaps the fix didn't completely fix the problem.

Zig

<| Post or View Comments |>


userAndy Wildenberg - Re: Strange doubling bug in latex2HTML mode  blueArrow
2/9/2001; 10:27:04 PM (reads: 2372, responses: 0)
Hmmm. That explains something else: I'm trying to run l2hPrecreateSet now, and it's up to 200M usage... The leak wouldn't have anything to do with Unix not releasing system resources until the parent process has terminated, would it?

Originally, the page wasn't created by the l2hPrecreateSet.

There's a new problem: now I have a student with a problem where there is no reference at all to the latex things (no broken images, not even a tag). In the WARNINGS file of his tmp directory there is

No implementation found for style `dvips' Failed to convert image /www/webwork/system/courses/cse113/html/tmp/l2h/4-22231/ Failed to convert image /www/webwork/system/courses/cse113/html/tmp/l2h/4-22231/ <snipped output>

For now, it seems to be sufficient to delete the appropriate tmp directories and let them be recreated, but if I grep "Failed" */WARNINGS I get a _lot_ of matches and I'm wondering how many more of these I'll have to do by hand.

<| Post or View Comments |>


userArnold K. Pizer - Re: Strange doubling bug in latex2HTML mode  blueArrow
2/10/2001; 10:16:26 AM (reads: 2268, responses: 0)
There are two issues here. One is the memory leak and one is "random" problems with latex2html. I'll treat both as a new topic.

<| Post or View Comments |>