Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] libsumo.libsumo.FatalTraCIError: A network was not yet constructed.

Hi,
it may also be that you did call start but the parameters were invalid. Do you change the sumo config / the input files between the runs? So you may accidentally give an invalid input in the 232nd run.

Best regards,
Michael

Am 04.09.22 um 20:04 schrieb Hriday Sanghvi via sumo-user:
Hello,

I have been running SUMO along with a reinforcement learning algorithm that reruns a TraCI simulation from scratch each episode. When I was placing a static blockage (stopped vehicle) in the same location every episode, it was working just fine. But now that I am changing the location and size of this blockage every episode, after a certain number of 'episodes' (232, to be precise), SUMO throws an error:

    File "/.../marlenvironment.py", line 797, in step
         for vh in self.simulation.traci_handler.vehicle.getIDList(): #
    Set LC mode from the beginning
    *libsumo.libsumo.FatalTraCIError: A network was not yet constructed.*

are the SUMO-relevant lines from the stack trace that causes the system to stop functioning.

My understanding of this is that it is telling me that I am calling traci.start() before a traci.close() was called on a previous traci.start() - But I am unsure how to debug this and cannot see how this could have happened with the change I mentioned above, and why it happens only after 232 runs of the simulation?

Please advise. Thank you.

Sincerely,
Hriday

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user


Back to the top