Hello!
I try to add new language (Kotlin) in CodeRunner. But I've come across the strange error. I added Kotlin with Python3 check (like C-check). I compiled code successfully, then I try to execute it like this:
output = subprocess.check_output("java -jar program.jar".split(), universal_newlines=True)
But error occurred
[6.077s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
I don't understand, what should I do, maybe I need to add some environment variables?
Thanks!
The Jobe server has constraints on resources like memory size, number of processes, output file size and CPU time. It looks like your task is hitting a resource limit, most likely memory (you're running Kotlin within Java within Python!) or num_processes. Start by setting the memory limit (in advanced customisation) to zero, then try setting a large value (say 1000) for numprocesses if that doesn't work. There's some discussion of similar problems here: https://coderunner.org.nz/mod/forum/discuss.php?d=177
Thanks! Increasing num_processes works.
> you're running Kotlin within Java within Python!
Yes, it looks like not optimal solution, but I didn't find another one