DriveML Huawei Autonomous Vehicles Challenge Forum

Go back to competition Back to thread list Post in this thread

> traci.exceptions.FatalTraCIError: connection closed by SUMO

Hi,

I meet the error as below, how to fix it?

At the same time, I follow the issue: https://competitions.codalab.org/forums/18353/3137/, it seem to be not work very well.

Thank you.

sumo: /build/sumo-q3tP8N/sumo-1.3.1+dfsg1/src/microsim/MSVehicle.cpp:4066: virtual double MSVehicle::getBackPositionOnLane(const MSLane*) const: Assertion `false' failed

Posted by: team_19 @ Dec. 9, 2019, 5:28 p.m.

This looks like a different (though possibly related) error to the one you linked. Can you share more information about which map(s) this happens on, and the frequency?

Posted by: HuaweiUK @ Dec. 11, 2019, 5:44 a.m.

Thank you for your response,.

Yes, sometimes it happened frequently, but sometimes it didn't happen, I think it might be randomly occured.

More infos as below. Thank you again.

Traceback (most recent call last):
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/tune/trial_runner.py", line 515, in _process_trial
result = self.trial_executor.fetch_result(trial)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/tune/ray_trial_executor.py", line 351, in fetch_result
result = ray.get(trial_future[0])
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/worker.py", line 2121, in get
raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(FatalTraCIError): ray_worker (pid=22348, host=yongqiang-Precision-5820-Tower)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/agents/trainer.py", line 418, in train
raise e
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/agents/trainer.py", line 407, in train
result = Trainable.train(self)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/tune/trainable.py", line 176, in train
result = self._train()
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/agents/trainer_template.py", line 129, in _train
fetches = self.optimizer.step()
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/optimizers/multi_gpu_optimizer.py", line 140, in step
self.num_envs_per_worker, self.train_batch_size)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/optimizers/rollout.py", line 29, in collect_samples
next_sample = ray_get_and_free(fut_sample)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/utils/memory.py", line 33, in ray_get_and_free
result = ray.get(object_ids)
ray.exceptions.RayTaskError(FatalTraCIError): ray_worker (pid=22349, host=yongqiang-Precision-5820-Tower)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/evaluation/rollout_worker.py", line 469, in sample
batches = [self.input_reader.next()]
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 56, in next
batches = [self.get_data()]
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 99, in get_data
item = next(self.rollout_provider)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 319, in _env_runner
soft_horizon, no_done_at_end)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 480, in _process_observations
resetted_obs = base_env.try_reset(env_id)
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/env/base_env.py", line 336, in try_reset
return {_DUMMY_AGENT_ID: self.vector_env.reset_at(env_id)}
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/ray/rllib/env/vector_env.py", line 104, in reset_at
return self.envs[index].reset()
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/gym_hiway/env/competition_env.py", line 154, in reset
obs = self._engine.reset()
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/hiway/game_engine.py", line 132, in reset
self.setup()
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/hiway/game_engine.py", line 160, in setup
sim.setup()
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/hiway/bullet_simulation.py", line 63, in setup
self._traffic_sim.setup()
File "/home/yongqiang/anaconda3/envs/tf/lib/python3.7/site-packages/hiway/sumo_traffic_simulation.py", line 137, in setup
[tc.VAR_DEPARTED_VEHICLES_IDS, tc.VAR_ARRIVED_VEHICLES_IDS])
File "/usr/share/sumo/tools/traci/_simulation.py", line 538, in subscribe
Domain.subscribe(self, "", varIDs, begin, end)
File "/usr/share/sumo/tools/traci/domain.py", line 142, in subscribe
self._subscribeID, begin, end, objectID, varIDs)
File "/usr/share/sumo/tools/traci/connection.py", line 226, in _subscribe
result = self._sendExact()
File "/usr/share/sumo/tools/traci/connection.py", line 98, in _sendExact
raise FatalTraCIError("connection closed by SUMO")
traci.exceptions.FatalTraCIError: connection closed by SUMO

Posted by: team_19 @ Dec. 11, 2019, 7:18 p.m.
Post in this thread