Closed martin-vitek closed 3 years ago
Maybe there is a problem with opening /dev/tty
, because Matlab is opening it for read and also for write and this call fails (it doesn't fail under normal user).
Ok, so /dev/tty
isn't the problem. Matlab isn't crashing with -nojvm
parameter, so this is solved for me until I will need something, that needs jvm.
Good to know it's working. When we ran MATLAB in Jobe the command we used was
/usr/local/bin/matlab_exec_cli -nodisplay -nojvm -nosplash -r exit
AFAIK the jvm is relevant only to graphical output. Anyway, it never caused us any problems.
Is it possible you were getting a memory error before? Setting the memory limit to 0 turns off memory limits which is often a good first debugging step. Another common problem is with the number of processes, which is controlled by the numprocs sandbox parameter. The JVM is very greedy with both those resources.
Would you mind posting questions of this sort to one of the forums on coderunner.org.nz in future please? That's where most such questions are answered.
Hello, I'm trying to run questions for Matlab. The question type is
python3
and template is as follows:But Matlab is crashing when running the question with the following error (I added strace for debugging):
I'm guessing, that there is some problem with the sandboxing, because I can run the
subprocess.check_output(["matlab", "-batch", "student_code"], universal_newlines=True)
command interactively as normal user without any problems.Do you have some idea how to solve this?
Thank you