eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.48k stars 1.4k forks source link

Connection to TraCI server lost while using veins. #7090

Closed ghost closed 4 years ago

ghost commented 4 years ago

Platform

OMNeT++ version: [5.6.1] Sumo version: [0.32.0][1.3.0][1.6.0] Veins version:[5.0] OS: [Win 10] Describe the bug Help! When doing the tutorial of veins, I followed each step, including run SUMO before click the "run" button. But after I build the project, and click "run", there always comes a error,which is " Connection to TraCI server lost. Check your server's log. Error message: 10054: Unknown error -- in module (veins::TraCIScenarioManagerLaunchd) RSUExampleScenario.manager (id=6), at t=0s, event #1 ." I changed several different versions, but it doesn't work. No effective method was found through Google.

namdre commented 4 years ago

add option <log value="log.txt"/> to your sumocfg and check in log.txt for error messages from sumo.

LLLL-M commented 3 years ago

hello,Encountered the same problem, how did you solve this problem?

mateen-malik commented 3 years ago

I am getting the same error, was this issue resolved? Where should we add the "log value="log.txt"?

I tried adding it as an output in file erlangen.sumo.cfg (in veins example) but didnt get any output file to analyse

Best regards, /MM

namdre commented 3 years ago

I tried adding it as an output in file erlangen.sumo.cfg (in veins example) but didnt get any output file to analyse

Try adding option <verbose value="true"/> as well and check if there is at least some output.

sommer commented 3 years ago

Please also refer to the Veins FAQ at https://veins.car2x.org/documentation/faq/, particularly the section "What happened? My simulation crashed"; it details how to configure where to find log output from OMNeT++, the launchd, and SUMO.

divakar5 commented 3 years ago

hello,Encountered the same problem, how did you solve this problem?

Hi, did you find any solution? I'm facing same issue but unable to find a solution.

Thanks

Dark-3agle commented 3 years ago

I have a similar problem. Any standard way of solving this? Also is this only a problem when we use windows OS?

sommer commented 3 years ago

The OMNeT++ part of the simulation lost the connection to the SUMO part of the simulation. Most likely because the SUMO part closed the connection. Most likely because SUMO experienced an error. None of this is known to the OMNeT++ part of the simulation. To find out exactly what happened I am afraid you will have to do what the error message asks you to do: read the server's log - it will most likely tell you what exactly happened. How to do this is covered very well in the list of frequently asked questions at https://veins.car2x.org/documentation/faq/, particularly the section "What happened? My simulation crashed"; it details how to configure where to find log output from OMNeT++, the launchd, and SUMO. See, also for example, https://github.com/eclipse/sumo/issues/8427