Open Mikemraz opened 3 years ago
Can you add information about your sumo version and possibly any sumo or sumo-gui error messages?
Hi @behrisch, thanks for responding. I am using the most up-to-date SUMO version 1.8.0 on windows. The error message is what I have attached in my previous post.
And I would like to emphasize that by using the same random seed (which means vehicles are behaving in the exact same way), that error message could magically disappear!
random errors are often caused by parallel code. Are you using multiple threads of execution in your traci script?
Can you please attach all options used to start sumo (either via traci.start or in a loaded .sumocfg)?
@namdre Ha, that could explain. Not threads of execution but multiple python processes for simulations with different random seed is my case. Do you have any thought to work around this?
The first thing to do would be to simplify your setup (i.e. only one process at a time) and check if the error goes away. Another option would be to enable core dumps and try to find out what happened to the sumo process (https://medium.com/@sourabhedake/core-dumps-how-to-enable-them-73856a437711).
How often is "once in a while" for this error? 1 in 10,100,1000 runs?
@namdre I would say it is approximately 1 in 100 runs. And I now remember that this error could occur (less likely, and on a PC with less capable CPU power) even when I run one process at a time. Anyway, this error does not bring me too much trouble practically. Thanks you all for consistent efforts of maintaining this great tool.
If you can manage to put something together that I can run on my end to reproduce the crash then I'm eager to fix this. Even if the error is manageable for you it may show up for others and ruin their day.
@namdre Ha, I would like to do that but I guess I am obliged to not distributing our code before our study gets published. I will do so once our work goes into public. Thanks again!
When I was running simulation on self-defined behavior for autonomous vehicles, a fatal error occurred. Below I have attached the messages. This error could occur once in a while without any pattern. I would not say it is very often, but I want to have a grasp of what is going on. Thanks.
FatalTraCIError Traceback (most recent call last)