tud-hri/joan

RuntimeError: Spawn failed because of collision at spawn position

Closed this issue · 3 comments

When the following error occurs
RuntimeError: Spawn failed because of collision at spawn position
JOAN freezes and you have to restart the program and your experiment.
image

This seems to be a generic problem with all JOAN modules. If an exception occurs in the get_ready() function of a module, the except_hook is called but the process is not terminated correctly. But I'm not sure what exactly is happening.

Turns out the module manager got stuck in an infinite loop because it was waiting for the get_ready() function to trigger the module_is_ready event. The excepthook exited the process before this event was set, causing the module manager to hang. This issue was fixed in commit a99a022 by setting the event from the excepthook before exiting.