I do not have admin right. I am just a teaching assistant trying to create nice exercises
I have build a prototype based on python3 which compiles and runs C/Java files.
Normally everything works fine.
However, sometimes - I think especially after the prototype has change - the Javafiles are not compile in one tests, however in all other similar tests they are. Changing basically nothing and rechecking it, it starts working.
Students however will loose a try.
The compiler output is:
Error occurred during initialization of VMAs a quickfix I just try to compile the file 10 times (hoping that at some point it is initialized):
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
for _ in range(10): compiler = subprocess.Popen(compile_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) STD[COUT], STD[CERR] = [s for s in compiler.communicate()] if "Error occurred during initialization of VM" not in STD[COUT]: breakHowever this somehow seems not right (although it worked so far) :D.
Also, I one tried to run the compile step for every test 10 times and 2 out of 10 tries (randomly distributed) failed.
Is there any way to prevent this error in coderunner?
Thanks a lot