Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] route.add raises TraCIException(prefix[1], _RESULTS[prefix[2]], err)

Hello,
this error is returned if a route with the same name already exists.
You can catch this error in your traci script and handle it yourself (the error is not fatal).
regards,
Jakob

2018-05-19 7:21 GMT+02:00 Pedro Matuck <pjmatuck@xxxxxxxxx>:
Hello,

I'm using Traci to assing dynamically routes to the vehichle which will be inserted on the network.

However, sometimes (and I didn't find the pattern of this issue) the instruction route.add(routeId, [route]) raises TraCIException(prefix[1], _RESULTS[prefix[2]], err).

I looked for any bug fix on Sumo Logs and  also debug the code... without success.

Maybe could be a SUMO issue.

Follow the error:

  File "C:\Users\Pedro Matuck\Documents\GitHub\mestrado.sumo\speed_control\route_manager.py", line 142, in UpdateRoutes
    traci.route.add(str(newRouteId), newRoute)
  File "C:\Program Files (x86)\DLR\Sumo\tools\traci\_route.py", line 47, in add
    self._connection._sendExact()
  File "C:\Program Files (x86)\DLR\Sumo\tools\traci\connection.py", line 105, in _sendExact
    raise TraCIException(prefix[1], _RESULTS[prefix[2]], err)
traci.exceptions.TraCIException: Could not add route.
Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).

Thanks.

--
Pedro J. Matuck

"The hardest battle lies within."

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top