Hi,
I was running multiple simulations together, sometimes simultaneously and some of mine simulation ends with either one of the two errors:
Error 1:
traci.start([checkBinary('sumo'), "-c", "config.sumocfg", "--step-length", "0.5", '--save-state.rng', "--step-method.ballistic", "--no-step-log", "--no-warnings", "--load-state", 'saved_simulation'])
File "/home/ab11/sumo/tools/traci/main.py", line 158, in start
return init(sumoPort, numRetries, "localhost", label, sumoProcess)
File "/home/ab11/sumo/tools/traci/main.py", line 136, in init
_connections[label] = connect(port, numRetries, host, proc)
File "/home/ab11/sumo/tools/traci/main.py", line 127, in connect
raise FatalTraCIError("Could not connect in %s tries" % (numRetries + 1))
traci.exceptions.FatalTraCIError: Could not connect in 11 tries
Error 2:
traci.start([checkBinary('sumo'), "-c", "config.sumocfg", "--step-length", "0.5", '--save-state.rng', "--step-method.ballistic", "--no-step-log", "--no-warnings", "--load-state", 'saved_simulation'])
File "/home/ab11/sumo/tools/traci/main.py", line 158, in start
return init(sumoPort, numRetries, "localhost", label, sumoProcess)
File "/home/ab11/sumo/tools/traci/main.py", line 138, in init
return getVersion()
File "/home/ab11/sumo/tools/traci/main.py", line 246, in getVersion
return _connections[""].getVersion()
File "/home/ab11/sumo/tools/traci/connection.py", line 345, in getVersion
result = self._sendCmd(command, None, None)
File "/home/ab11/sumo/tools/traci/connection.py", line 178, in _sendCmd
return self._sendExact()
File "/home/ab11/sumo/tools/traci/connection.py", line 90, in _sendExact
prefix = result.read("!BBB")
File "/home/ab11/sumo/tools/traci/storage.py", line 40, in read
return struct.unpack(format, self._content[oldPos:self._pos])
struct.error: unpack requires a buffer of 3 bytes
I cannot seem to figure out why this happens. If anyone can give a little insight on them, then it would be great.
--
_______________________________________________