Closed stefanobortoli closed 4 years ago
There have been recent bugfixes to TraaS especially 212d6cb632ba4868b08f93340427595473e1ed4a. Please try again with a nightly build.
I'm using the nightly build, but I have still problems. I will try building the whole sumo from scratch
I have checked out the code, and tried to build according to the readme instruction. I have problems with the cmake ../.. command. Fresh clone of the master branch. Should I clone some other branch?
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Found Python: /usr/bin/python CMake Error at CMakeLists.txt:145 (elseif): given arguments:
"STREQUAL" "/machine:x64"
Unknown arguments specified
-- Configuring incomplete, errors occurred! `
I don't know whether it can help, but also running the example with the TestAPI fails for me. I copied the java classes in a new project, build it, pass the reference to local sumo /usr/bin/sumo-gui installed via ubuntu package, and run the test API. I get the same error as before. I modified the command processor to print the text (many SYSOUT commented) and I could see that at the "name" the string was some how corrupted. So, I guess reading the stringASCII could be the problem. The first one goes well, the second gives the exception. I hope it can help.
There was a regression in 1.0.0 which caused this function in TraaS to be broken. In the meantime, the TraCI protocol for this function changed due to new parameters. This means you need the latest development version of TraaS and SUMO. At least for me, the APITest is working on Ubuntu 16.04. Maybe @behrisch can help with the build issue.
Did you set SUMO_LIBRARIES? This is in faxct not necessary under Linux and could lead to the observed building behavior (at least with the slightly outdated cmake version shipping with ubuntu 16) I will try to check whether it fails here to. Can you try putting quotes around ${CMAKE_MODULE_LINKER_FLAGS} in the line 145?
No further feedback received.
controller = (SumoTLSController) conn .do_job_get(Trafficlight.getCompleteRedYellowGreenDefinition(tlId));
generates an exception reading byte:
java.lang.IllegalStateException: Error reading byte, invalid list position specified for reading: 1242 at de.uniluebeck.itm.tcpip.Storage.readByte(Storage.java:141) at de.uniluebeck.itm.tcpip.Storage.readString(Storage.java:502) at de.uniluebeck.itm.tcpip.Storage.readStringASCII(Storage.java:462) at de.tudresden.sumo.util.CommandProcessor.do_job_get(CommandProcessor.java:480) at it.polito.appeal.traci.SumoTraciConnection.do_job_get(SumoTraciConnection.java:382) ...
The first round works properly, the second fails as I enabled the prints.
I am trying to connect to sumo-gui 1.1.0 installed as a package on ubuntu 16.04.LTS. I had no problem with the old traas (0.32.0) that was working smoothly with SUMO 0.25. Any idea about what could be the problem?