-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bespoke validation functions returning TIMEDOUT error unexpectedly #1121
Comments
@LukeLongworth I'm very sorry but I can't reproduce this on my test server! Can you email me your question and I'll try to break one of the older (live) servers. Just to note that Maxima has an interactive integrator. Try the following on a desktop Maxima system integrate(x^n,x); It is possible this interactivity is causing the timeout. |
I've returned to this issue and have some updates: Firstly, it doesn't seem to be
Secondly, this issue is persisting in STACK version 2024012900 in a different installation. Santiago kindly added me to an IDEMS test server so I could check, and I am observing the exact same behaviour, both when I import an existing question and create a new one. I've included this question (imported once from each server) below. I observe this this on both my work device and on my phone. |
@LukeLongworth, I can't reproduce the error, either on my development machine or on our public demo server |
@LukeLongworth Since I can't reproduce this, and we've released a new version since it was opened I'm closing it. Please let me know if this is still an issue and I'll help fix it. |
@sangwinc I think the issue is still ongoing, but we only upgrade annually. If this is still an issue once we upgrade in January I'll let you know. I didn't hear back from our IT team about "timeout" in the STACK settings. I'll chase that up and let you know what they say. |
@LukeLongworth could you confirm if this is still and issue? I'd like to fix this before Nov 19th (next release) or close it! |
@LukeLongworth I've just tried your example on my development setup with the release candidate code, and can't reproduce the problem. I'm going to bump this to the next release. |
Kia ora @sangwinc, I've just tried this again on version 4.7.0 and it's still persisting. I don't have the required access to check settings in the install, but I'm meeting with IT this afternoon and will bring this up then if we have time. Thank you for continuing to check this! |
I managed to replicate this locally by including two of the offending functions in question variables. (Each on its own is fine.)
Oddly, upping the CAS timeout doesn't seem to fix it. I'll investigate further. |
This appears to be to do with simplification. If you have a question with e.g. By default, validation does not simplify and maxima falls over when it tries to process the question variables as part of the custom validation. A workaround is to include |
Problem: I am getting a TIMEDOUT error with my bespoke validation function for an unknown reason. To try and diagnose it, I recreated the error in a very simple question:
Then at the PRT I just check whether ans1 = 1.
In this form, the question works exactly as intended, but when I un-comment the line that calls an integral, I get a TIMEDOUT error in the validation. This feels very strange to me. The only way I can recreate this error is by calling the defint function to integrate an exponential function with an argument of the form (constant*f(x)). I'm not even assigning values to a variable, I'm simply calling the function in the Question variables
Things that cause this to break:
int(e^(s*x),x,0,1)
int(%e^(s*x),x,0,1)
defint(e^(s*x),x,0,1)
int(%e^(s*x^2),x,0,1)
(s:1, int(e^(s*x),x,0,1)
int(e^(m*x),x,0,1)
int(e^(2*x),x,0,1)
laplace(e^(2*x),x,s)
assume(s>0); int(e^(x*ln(s)),x,0,1)
Things that don't cause this to break:
int(e^(s*x),x)
int(e^x,x,0,1)
laplace(e^x,x,s)
int(s*x^2,x,0,1)
assume(s>0); int(ln(s*x),x,0,1)
assume(s>0); int(s^x,x,0,1)
ev(subst([x=1],int(e^(s*x),x)) - subst([x=0],int(e^(s*x),x)),simp)
int(exp(s*x),x,0,1)
(this confuses me the most)assume(s>0); int(exp(x*ln(s)),x,0,1)
These issues do not persist when I call the problem function somewhere outside of the Question variables (e.g. in the Question text or General Feedback). I am not sure where to find the source code that calls bespoke validation functions, so I don't have any suggestions as to where the issue arises except that it seems to be about the
defint
function, sorry!The text was updated successfully, but these errors were encountered: