[LON-CAPA-users] catching maxima errors

Gerd Kortemeyer korte at lite.msu.edu
Mon Nov 26 16:43:51 EST 2012


Hi,

If you get "code ran too long" it's likely because the connection to MAXIMA times out. Does the problem work otherwise, meaning, can you get it right and wrong? If those also don't work, you should try restarting "loncontrol"

If "CORRECT" and "INCORRECT" both work: is MAXIMA somehow running in German? What does it say when you enter your expression from the command line?

- Gerd.

On Nov 26, 2012, at 4:39 PM, Peter Dencker <dencker at math.uni-luebeck.de> wrote:

> 
> Hi,
> 
>>> Did you "Reset Submissions" and "New Randomization" ...
> 
> Yes. Furthermore, I created a new problem and copied the code.
> 
>>> Just for testing, can you change the last line to
>>> 
>>>     return 'INCORRECT';
>>> 
>>> and see if it still bombs for "x)"?
> 
> It bombs.
> 
>> Does the error occur in Construction Space or within a course?
> 
> Both, it occurs in the Construction Space and in cources.
> 
>> What are the details in the bomb message?
> 
> ##############################################################
> Code ran too long. It ran for more than 10 seconds timeout at
> /home/httpd/lib/perl//Apache/run.pm line 121.
> 
> occurred while running
> 
> { my $submission=$LONCAPA::customresponse_submission;
>    $bool = &cas('maxima',"is(ratexpand($submission = $result))") ;
>    if ( $bool eq 'true') {return  'EXACT_ANS';};
>    if ( $bool eq 'false') {return  'INCORRECT';};
>    return 'INCORRECT';
>  }
> 
> 
> This error occurred while processing response p0r0 in part 0
> The error occurred on host scll1
> 
> This error occurred on machine scll1
> ################################################################
> 
> 
> - Peter
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users



More information about the LON-CAPA-users mailing list