Hi everyone I'm having trouble using multiple simulations in different threads
The difference can be perceived by changing max_workers to 1 and 2. " with ThreadPoolExecutor(max_workers=len(possible_actions)) as executor:" (planning_only_agent.py, line 100) [See attached example (a very simplified version of what I'm actually using)] With max_workers=1, it works just fine. With 2, it gives all sort of errors: "bad char in struct format" "unpack requires a buffer of [x] bytes" A lot of times it just hangs "Received answer 0 for command 211." The easiest way I found to reproduce is to add a breakpoint into a subscribe call and hit continue several times. It is likely to crash when threads stop at the same command, although it occurs eventually without breaking points. Tested in version 1.9.0 (specifically v1_9_0+0210-fa53508669) Thank you in advance Sincerely, Marcelo d'Almeida
<<attachment: example.zip>>
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
