Hi everyone
I running traffic light control experiments in the Bologna
(joined) scenario and from time to time I encounter an
unspecified Fatal error. (shown below)
I'm trying to debug it, but:
- Logging the commands generate blank outputs (even with
traceGetters enabled)
trace_file_path = ROOT_DIR + '/' + self.path_to_log
+ '/' + 'trace_file_log.txt'
traci.start(sumo_cmd_str, label=self.execution_name,
traceFile=trace_file_path, traceGetters=True)
A trivial trace (logging) example works fine though
- Debugging the traci sessions is not viable since I cannot
tell when the error is going to occur (I have to run the
scenario 1600 times total per experiment)
I also updated the sumo to the latest nightly build but no
success.
Is there anything I can try? I'm out of options here
Thank you in advance
Sincerely,
Marcelo d'Almeida
Error:
Process Process-1:22:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line
258, in _bootstrap
self.run()
File "/usr/lib/python3.6/multiprocessing/process.py", line 93,
in run
self._target(*self._args, **self._kwargs)
File
"traffic-light-optimization/algorithm/frap_pub/pipeline.py",
line 104, in generator_wrapper
generator.generate()
File
"traffic-light-optimization/algorithm/frap_pub/generator.py",
line 121, in generate
next_state, reward, done, steps_iterated, next_action =
self.env.step(action_list)
File
"traffic-light-optimization/algorithm/frap_pub/sumo_env.py",
line 514, in step
self._inner_step(action)
File
"traffic-light-optimization/algorithm/frap_pub/sumo_env.py",
line 559, in _inner_step
traci_connection.simulationStep()
File "sumo-git/tools/traci/connection.py", line 302, in
simulationStep
result = self._sendCmd(tc.CMD_SIMSTEP, None, None, "D",
step)
File "sumo-git/tools/traci/connection.py", line 180, in
_sendCmd
return self._sendExact()
File "sumo-git/tools/traci/connection.py", line 90, in
_sendExact
raise FatalTraCIError("connection closed by SUMO")
traci.exceptions.FatalTraCIError: connection closed by SUMO