Do you set the Phase items yourself? The last item has less signal states
than the others which is not allowed for the same traffic light.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] SUMO-gui crashing when zoom in
Datum: 2023-09-11T08:58:47+0200
Von: "lin lyu via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
Hi Harald,
Thanks for your kind reply!
Yes, I tried to use the newest version and run my code again.
Below are the results:
I met Error: No color defined for LinkState ''.
The sumo version is sumo Version 1.18.0.
in my setting, there is a compulsory 3s yellow time and 2s all red time
when the light changes from one green light to another green light. When I
was running my simulation, I zoomed in to see the traffic light. However,
when the light changed from yellow to all red, the simulation just quit and
I met Error: No color defined for LinkState '' from the terminal. If it
changes from green to yellow, everything is fine.
Does anyone have any suggestions based on my case?
below are the phases setting and the error from terminal:
[image.png]
Error: No color defined for LinkState ''
Quitting (on error).
Traceback (most recent call last):
File "experiments/deep_q_learning.py", line 482, in <module>
s, r, selected_action, done, _ = env.step(actions,random_,predict_q,
current_state,args.norm_delay,args.consider_yellow_red) # postion
arguments, s is next state
File "/Users/linlyu/Desktop/DRL3_8LT2/sumo_rl/environment/env.py", line
379, in step
self._run_steps(norm_delay)
File "/Users/linlyu/Desktop/DRL3_8LT2/sumo_rl/environment/env.py", line
501, in _run_steps
self._sumo_step()
File "/Users/linlyu/Desktop/DRL3_8LT2/sumo_rl/environment/env.py", line
739, in _sumo_step
self.sumo.simulationStep()
File "/opt/anaconda3/lib/python3.7/site-packages/traci/connection.py",
line 316, in simulationStep
result = self._sendCmd(tc.CMD_SIMSTEP, None, None, "D", step)
File "/opt/anaconda3/lib/python3.7/site-packages/traci/connection.py",
line 181, in _sendCmd
return self._sendExact()
File "/opt/anaconda3/lib/python3.7/site-packages/traci/connection.py",
line 91, in _sendExact
raise FatalTraCIError("connection closed by SUMO")
traci.exceptions.FatalTraCIError: connection closed by SUMO
On Mon, Sep 11, 2023 at 2:27 AM Harald Schaefer via sumo-user <
[email protected] <mailto:[email protected]> > wrote:
Hi Lin,
have you tried the latest sumo version 1.18?
Regards, Harald
Am 10.09.23 um 20:59 schrieb lin lyu via sumo-user:
> Hi everyone,
>
> I am using sumo Version 1.14.1. When I am trying to zoom in on a
> specific part of my simulated road, sumo-gui will just crash and quit.
>
> Does anyone know the possible reason for it?
>
> below is the error:
>
> File "C:\Users\lvl5569\Desktop\DRL3_8LT\sumo_rl\environment\env.py",
> line 756, in _sumo_step
> self.sumo.simulationStep()
> File "C:\Program Files
> (x86)\Eclipse\Sumo\tools\traci\connection.py", line 327, in
simulationStep
> result = self._sendCmd(tc.CMD_SIMSTEP, None, None, "D", step)
> File "C:\Program Files
> (x86)\Eclipse\Sumo\tools\traci\connection.py", line 189, in _sendCmd
> return self._sendExact()
> File "C:\Program Files
> (x86)\Eclipse\Sumo\tools\traci\connection.py", line 99, in _sendExact
> raise FatalTraCIError("connection closed by SUMO")
>
> Thanks,
> Lin
>
> _______________________________________________
> sumo-user mailing list
> [email protected] <mailto:[email protected]>
> To unsubscribe from this list, visit
<https://www.eclipse.org/mailman/listinfo/sumo-user>
_______________________________________________
sumo-user mailing list
[email protected] <mailto:[email protected]>
To unsubscribe from this list, visit
<https://www.eclipse.org/mailman/listinfo/sumo-user>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user