It means that your script (the peer) closed the connection. This causes
sumo to quit.
Try using traci.close() in your script before calling traci.start().



2017-12-06 6:52 GMT+01:00 羅先豪 <allog19940...@gmail.com>:

> Thanks for help.
> I did what you recommend me to and got the message below(from log.txt when
> it run the 5th time):
>
> ***Starting server on port 56407 ***
> Loading net-file from '005.net.xml'... done (34ms).
> Loading additional-files from '005.add.xml'...
> Warning: Missing green phase in tlLogic '02', program '1' for tl-index 11
> Warning: Missing green phase in tlLogic '03', program '1' for tl-index 0
> done (1ms).
> Loading done.
> Simulation started with time: 0.00
> Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
> Quitting (on error).
> Performance:
>  Duration: 8909ms
>  Real time factor: 448.984
>  UPS: 13223.257380
> Vehicles:
>  Inserted: 382
>  Running: 0
>  Waiting: 0
>
> I don't understand the line begin with "Error: ...".
> What does it means?
>
> Al
>
> 2017-12-04 16:22 GMT+08:00 Jakob Erdmann <namdre.s...@googlemail.com>:
>
>> Possible there is an error in 005.sumocfg which prevented the simulation
>> from starting.
>> Add the option <log value="log.txt"/> to your sumocfg and then look into
>> the generated file log.txt to check for errors.
>> regards,
>> Jakob
>>
>> 2017-12-04 4:24 GMT+01:00 羅先豪 via sumo-user <
>> sumo-user@lists.sourceforge.net>:
>>
>>> Hello,
>>>
>>> I wanted to use python to trigger sumo running repeatedly and
>>> automatically,
>>> but found that it can only run the simulation for 4 times.
>>> There's error message when it tried to run the fifth time:
>>>
>>> Traceback (most recent call last):
>>>   File "D:\005\runner.py", line 180, in <module>
>>>     traci.start ([sumoBinary,
>>> "-c","005.sumocfg","--tripinfo-output","tripinfo_005.xml","-
>>> -start","--quit-on-end"])
>>>   File "D:\sumo\tools\traci\__init__.py", line 82, in start
>>>     sumoProcess = subprocess.Popen(cmd + ["--remote-port", str(port)])
>>>   File
>>> "C:\Users\Al\AppData\Local\Programs\Python\Python36-32\lib\s
>>> ubprocess.py",
>>> line 596, in __init__
>>>     _cleanup()
>>>   File
>>> "C:\Users\Al\AppData\Local\Programs\Python\Python36-32\lib\s
>>> ubprocess.py",
>>> line 205, in _cleanup
>>>     res = inst._internal_poll(_deadstate=sys.maxsize)
>>>   File
>>> "C:\Users\Al\AppData\Local\Programs\Python\Python36-32\lib\s
>>> ubprocess.py",
>>> line 1035, in _internal_poll
>>>     if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
>>> OSError: [WinError 6] The handle is invalid.
>>>
>>> How can I fix it?
>>> Thanks!
>>>
>>> Al Lo
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> sumo-user mailing list
>>> sumo-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>> _______________________________________________
>>> sumo-user mailing list
>>> sumo-u...@eclipse.org
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>>
>>
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to