Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] TraCI quits on "Error: bad allocation"

I thought so and that's also exactly what I did.
The numRetries=100 is helpful, thanks!

It's constantly trying to connect to a different port and re-writing the
debug.sumocfg. Even after I executed the gdb command.
I can see the following warning/error

/home/mazel/sumo-1.6.0/tools/traci/main.py:136: UserWarning: Could not
connect to TraCI server using port 59061. Retrying with different port.
  warnings.warn("Could not connect to TraCI server using port %s. Retrying
with different port." % sumoPort)

Nothing is happening except TraCI reconnecting to many different ports until
it eventually crashes with

Traceback (most recent call last):
  File "/home/mazel/master-thesis-code/sumo/traci/index.py", line 65, in
<module>
    controller.start()
  File "/home/mazel/master-thesis-code/sumo/traci/simulation_controller.py",
line 27, in start
    traci.start(self.traci_config["sumo_cmd"], numRetries=100)
  File "/home/mazel/sumo-1.6.0/tools/traci/main.py", line 132, in start
    return init(sumoPort, numRetries, "localhost", label, sumoProcess)
  File "/home/mazel/sumo-1.6.0/tools/traci/main.py", line 113, in init
    _connections[label] = connect(port, numRetries, host, proc)
  File "/home/mazel/sumo-1.6.0/tools/traci/main.py", line 104, in connect
    raise FatalTraCIError("Could not connect in %s tries" % (numRetries +
1))
traci.exceptions.FatalTraCIError: Could not connect in 1 tries

I am not sure what to do...

Thank you very much!!!

Best regards
Marcel



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/


Back to the top