Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] TraCI message length error

Hello,
we just fixed the implementation of getDeltaT (it was still sending integers via the socket instead of the intended doubles).
However, that should not have been causing the crash by itself.
Nevertheless, can you check with the latest development version if the problem still occurs?
If so, please send the traci script for reproducing the crash along with the necessary inputs.

regards,
Jakob

2018-08-27 14:05 GMT+02:00 m.barthauer@xxxxxxxxxxx <m.barthauer@xxxxxxxxxxx>:

 

Hi Jakob,

 

the problem is that I use the Python client. I remember I had to adapt my code due to name changes in traci.vehicle.add[Full] to make it working again. Now, I call:

  • traci.start()
  • traci.simulation.getDeltaT()
  • traci.simulationStep()

Then, the error happens. The TraCI tutorial can be executed successfully, however. I use the latest development version and will notify you in case I can narrow down the problem.

 

Regards

Mirko

 

 

 

 

 

-----Original-Nachricht-----

Betreff: Re: [sumo-user] TraCI message length error

Datum: 2018-08-27T13:27:39+0200

Von: "Jakob Erdmann" <namdre.sumo@xxxxxxxxx>

An: "m.barthauer@xxxxxxxxxxx" <m.barthauer@xxxxxxxxxxx>, "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>

 

 

 

Hello,
this has to do with recent changes to the TraCI protocoll. (see TraCI at http://sumo.dlr.de/wiki/ChangeLog#Other)
When using a development version after [d2c6b60c9b552]
- If you use the python or C++ client you are mostly unaffected
- If you use TraaS, you have to wait for the Maintainer to update the client  (I'm optimistic that he'll have it done for the release next week)
- If you have your own client, you need to patch it as indicated in the changeLog (I can give more details if necessary)
 
regards,
Jakob
 

2018-08-27 13:10 GMT+02:00 m.barthauer@xxxxxxxxxxx <m.barthauer@xxxxxxxxxxx>:

Hi,

 

I don't know why but recently my TraCI script stopped working. I am constantly working on it but cannot remember any significant changes with respect to TraCI startup. When executing the first simulation step, SUMO stops because of an unexpected TraCI message length, I presume:

 

Error: tcpip::Storage::readIsSafe: want to read 4 bytes from Storage, but only 3 remaining

 

What reasons can cause this behaviour? Does this have to do with file encoding?

 

Regards

Mirko


_______________________________________________
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