Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to avoid the 255 byte limit of the TraCIAPI::load() function?

thank you for reporting. This is fixed in

2017-11-14 8:43 GMT+01:00 Marc Rene Zofka via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:

we want to automate testing using SUMO in a co-simulation platform. Therefore, we want to use the load() function provided by TraCI.

The load() function seems to cause an exception when called with a vector of strings approaching about 245 characters in total. Being more precise, if the amount of characters plus the size of the vector times four exceeds 248, the unsigned byte written in line 595 in src/utils/traci/TraCIAPI.cpp exceeds 255, thus throwing an invalid_argument exception for being out of range [0...255]. However, this case is easily reached when specifying a path to each a net file, a route file, and say two additional files, plus two or three general flags like --start.

So, is there a way around this limitation? One could pack those files into a .sumocfg file, thus having to parse only one path to this file, but we would like to avoid this, since this limits flexibility.

Best regards,


Check out the vibrant tech community on one of the world's most
engaging tech sites,!
sumo-user mailing list
sumo-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top