BrokenPipeError and ConnectionRefusedError

Hello everyone,

I followed the installation guide and installed the commonroad on Ubuntu 20.04 without an error. I could run tutorials except batch_processing without a problem and in PyCharm (Python 3.7 in commonroad-py37 env). I could also run/debug the python files. However, when I run the batch_processing_parallel.py I got these errors:

ConnectionResetError: [Errno 104] Connection reset by peer
AttributeError: ‘ForkAwareLocal’ object has no attribute 'connection’
ConnectionRefusedError: [Errno 111] Connection refused
Something went wrong while processing scenario ARG_Carcarana-3_3_T-1
BrokenPipeError: [Errno 32] Broken pipe
Something went wrong while processing scenario BEL_Aarschot-11_1_T-1

and for other scenarios also…

screenshots are for workers 1:

I tried to debug and found that something may be wrong with this line
semaphore = Semaphore(num_worker)

because the debugger freezes here, then I changed the number of workers in the yaml file but the error still persists.

When I run batch_processing_sequential, it works until scenario 57 then it throws this error while “scenario being processed: 57”:
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

2022-01-15_09-31

I recloned the repo and tested on it, still the same.

It looks like there is something wrong with multi-processing. What should I do?

Hi Koray,
thanks for reporting the issue. We never had such an issue before with multithreading, I just googled it and it seems that there were few other cases like this reported. At the moment I don’t have a clear solution since I cannot reproduce it myself. I suggest you try the provided virtual machine image or the docker installation.

Kind Regards,
Edmond

Hi Edmond,
thank you for your reply. I tried different things but they didn’t help. An interesting thing, when I run the batch_processing.ipynb file in Pycharm, it works. So now, I am testing my algorithm by running tutorial file.