problem when running veins example

2,605 views
Skip to first unread message

Yu Will

unread,
Nov 13, 2013, 7:52:27 AM11/13/13
to omn...@googlegroups.com
RUNTIME ERROR. A cRuntimeError exception is about to be thrown, and you
requested (by setting debug-on-errors=true in the ini file) that errors
abort execution and break into the debugger.

You should now probably be running the simulation under gdb or another
debugger. The simulation kernel will now raise a SIGABRT signal which will
get you into the debugger. If you are not running under a debugger, you can
still use the core dump for post-mortem debugging. Once in the debugger,
view the call stack (in gdb: "bt" command) to see the context of the
runtime error.

<!> Error in module (TraCIScenarioManagerLaunchd) scenario.manager (id=6) at event #1, t=0: Model error: Connection to TraCI server lost. Check your server's log. Error message: 10054: Unknown error.

TRAPPING on the exception above, due to a debug-on-errors=true configuration option. Is your debugger ready?

Simulation terminated with exit code: -2147483645
Working directory: J:/finalproject/veins-2.1/examples/veins
Command line: veins.exe -r 0 -n ..;../../src;../../tests -l ../../tests/power/utils/powerTestUtils -l ../../tests/testUtils/miximtestUtils -l ../../src/base/miximbase -l ../../src/modules/miximmodules omnetpp.ini

Environment variables:
OMNETPP_ROOT=j:/finalproject/omnetpp-4.3.1
PATH=;J:/finalproject/veins-2.1/tests/power/utils;J:/finalproject/veins-2.1/tests/testUtils;J:/finalproject/veins-2.1/src/base;J:/finalproject/veins-2.1/src/modules;j:\finalproject\omnetpp-4.3.1\bin;j:\finalproject\omnetpp-4.3.1\msys\bin;j:\finalproject\omnetpp-4.3.1\mingw\bin;j:/finalproject/omnetpp-4.3.1/ide/jre/bin/client;j:/finalproject/omnetpp-4.3.1/ide/jre/bin;j:/finalproject/omnetpp-4.3.1/ide/jre/lib/i386;.;J:\finalproject\omnetpp-4.3.1\msys\local\bin;j:\finalproject\omnetpp-4.3.1\mingw\bin;J:\finalproject\omnetpp-4.3.1\msys\bin;j:\finalproject\omnetpp-4.3.1\bin;c:\Program Files\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;c:\Windows\system32;c:\Windows;c:\Windows\System32\Wbem;c:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files (x86)\Windows Live\Shared;j:\finalproject\omnetpp-4.3.1;
OMNETPP_IMAGE_PATH=j:\finalproject\omnetpp-4.3.1\images

what is this suppose to mean? 
Please help me, thank you so much

Yu Will

unread,
Nov 13, 2013, 7:54:37 AM11/13/13
to omn...@googlegroups.com
PS: veins2.1 omnetpp 4.3.1 sumo 0.17.1

Christoph Sommer

unread,
Nov 13, 2013, 7:59:34 AM11/13/13
to omn...@googlegroups.com
Yu Will wrote:
>> Connection to TraCI server lost. Check your server's log.
>> Error message: 10054: Unknown error.
>
> what is this suppose to mean?
> Please help me, thank you so much

Simulations using Veins run three programs in parallel: OMNeT++ runs the
network simulation, SUMO runs the road traffic simulation, and
sumo-launchd acts as a proxy between both. Consequently, the first step
should be finding out which program crashed.

Debug output for sumo-launchd can be found on the console, as well as in
its log file. Please refer to its --verbose and --logfile parameters for
controlling how much (and where) information is written.

Debug output for SUMO (both stdout and stderr) is captured by
sumo-launchd and stored in its log files (see above).

Finally, debug output for OMNeT++ can be found on the console
(immediately before the "simulation terminated" line). You can get more
in-depth information by enabling debug-on-errors and running the
simulation with a debugger attached (see below).

More information on debugging can be found in the list of Frequently
Asked Questions (FAQ) on http://veins.car2x.org/documentation/faq/

Best,

Christoph

--
Dr.-Ing. Christoph Sommer
Institute of Computer Science
University of Innsbruck, Austria
Phone: +43 512 507-96835 / Fax: -9888
http://ccs.uibk.ac.at/~sommer/

Yu Will

unread,
Nov 13, 2013, 8:17:09 AM11/13/13
to omn...@googlegroups.com
DEBUG:root:Logging to c:\users\keroro~1\appdata\local\temp\sumo-launchd.log
INFO:root:Listening on port 9999
DEBUG:root:Connection from 127.0.0.1 on port 56354
DEBUG:root:Handling connection from 127.0.0.1 on port 56354
DEBUG:root:Got TraCI message of length 2
DEBUG:root:Got TraCI command of length 1
DEBUG:root:Got TraCI command 0x0
DEBUG:root:Got CMD_GETVERSION
DEBUG:root:Got TraCI message of length 290
DEBUG:root:Got TraCI command of length 285
DEBUG:root:Got TraCI command 0x75
DEBUG:root:Got CMD_FILE_SEND for "sumo-launchd.launch.xml"
DEBUG:root:Got CMD_FILE_SEND with data "<launch>
  <copy file="erlangen.net.xml"/>
  <copy file="erlangen.rou.xml"/>
  <copy file="erlangen.poly.xml"/>
  <copy file="erlangen.sumo.cfg" type="config"/>
  <basedir path="J:/finalproject/veins-2.1/examples/veins/"/>
  <seed value="0"/>
</launch>
"
DEBUG:root:Creating temporary directory...
DEBUG:root:Temporary dir is c:\users\keroro~1\appdata\local\temp\sumo-launchd-tmp-l46gea
DEBUG:root:Base dir is J:/finalproject/veins-2.1/examples/veins/
DEBUG:root:Seed is 0
DEBUG:root:Finding free port number...
DEBUG:root:Claiming lock on port
DEBUG:root:...found port 56355
INFO:root:Starting SUMO (j:/finalproject/sumo-0.17.1/sumo.exe -c erlangen.sumo.cfg) on port 56355, seed 0
DEBUG:root:Releasing lock on port
DEBUG:root:Cleaning up
DEBUG:root:Result: "<?xml version="1.0"?>
<status>
<exit-code>-1</exit-code>
<start>1384346560</start>
<end>1384346560</end>
<status>Could not start SUMO (j:/finalproject/sumo-0.17.1/sumo.exe -c erlangen.sumo.cfg): [Error 2] </status>
<stdout><![CDATA[]]></stdout>
<stderr><![CDATA[]]></stderr>
</status>
"
DEBUG:root:Closing connection from 127.0.0.1 on port 56354

Here is the info from sumo-launchd.log

Christoph Sommer

unread,
Nov 13, 2013, 8:28:20 AM11/13/13
to omn...@googlegroups.com
Yu Will wrote:
> Could not start SUMO (j:/finalproject/sumo-0.17.1/sumo.exe -c
> erlangen.sumo.cfg): [Error 2]

According to MSDN [1], this means that sumo.exe could not be found in
the path you provided.

Indeed, sumo.exe is most likely to be in the bin/ subfolder of your SUMO
installation (not in the root folder itself).


Best,

Christoph

[1]
http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx

Rosh

unread,
Mar 20, 2014, 10:15:44 AM3/20/14
to omn...@googlegroups.com

hello.
i m getting the following error while running veins
version i m using are (veins2.2,sumo-0.20.0) on omnet++4.4 and ubuntu13.04
Model error: TraCI server "SUMO 0.20.0" reports API version 8. This server is unsupported..

and on terminal,the msg is :
Done running SUMO
Cleaning up

Result: "<?xml version="1.0"?>
<status>
    <exit-code>1</exit-code>
    <start>1395320781</start>
    <end>1395320782</end>
    <status>Exited with error code 1</status>
    <stdout><![CDATA[Loading configuration... done.
Step #0.00]]></stdout>
    <stderr><![CDATA[Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).

]]></stderr>
</status>



plz let me know which version i need to follow?
help plz!!

Christoph Sommer

unread,
Mar 20, 2014, 10:30:12 AM3/20/14
to omn...@googlegroups.com
Rosh wrote:
> i m getting the following error while running veins
> [...]
> Model error: TraCI server "SUMO 0.20.0" reports API version 8. This server is unsupported..
> [...]
> plz let me know which version i need to follow?

SUMO 0.19.0 should work.


Best,

Christoph

--
Dr.-Ing. Christoph Sommer
Institute of Computer Science
University of Innsbruck, Austria
Phone: +43 512 507-53285 / Fax: -53079
http://www.ccs-labs.org/~sommer/

Roshani Dange

unread,
Mar 21, 2014, 2:19:47 AM3/21/14
to omn...@googlegroups.com
got the following error while running traci test with sumo0.19.0

<!> Error in module (cCompoundModule) scenario.node[0] (id=5) at event #2, t=1: Class "TraCITestApp" not found -- perhaps its code was not linked in, or the class wasn't registered with Register_Class(), or in the case of modules and channels, with Define_Module()/Define_Channel().

let me know where i need to make changes!!




--
You received this message because you are subscribed to a topic in the Google Groups "omnetpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/aLqUgkLhsfo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jatoura TR

unread,
Jun 2, 2014, 4:51:08 PM6/2/14
to omn...@googlegroups.com
Hello, 

I have the same problem, what is the solution to have a good simulation. 
If you found the solution please help me.

Versions i m using are (veins2.2,sumo-0.20.0) on omnet++4.4.1 and ubuntu12.04

The following error:

TraCI server "SUMO 0.20.0" reports API version 8. This server is unsupported..

Thank you.

Florian Hagenauer

unread,
Jun 4, 2014, 10:31:14 AM6/4/14
to omn...@googlegroups.com
Hi,

as stated on the website http://veins.car2x.org/download/ Veins 2.2
requires currently SUMO 0.19.0.

Best,
--
Florian Hagenauer, MSc
Department of Computer Science
University of Paderborn, Germany
http://ccs-labs.org/~hagenauer/

Jatoura TR

unread,
Jun 4, 2014, 4:31:37 PM6/4/14
to omn...@googlegroups.com
Hi, 
Thank you very much for your help, I installed SUMO 0.19.0 and it works.

Best.


--
You received this message because you are subscribed to a topic in the Google Groups "omnetpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/aLqUgkLhsfo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+unsubscribe@googlegroups.com.

Kevin Mhlanga

unread,
Jul 3, 2014, 7:09:21 AM7/3/14
to omn...@googlegroups.com
Hello.

I am getting the following error:

DEBUG:root:Result: "<?xml version="1.0"?>
<status>
<exit-code>-1</exit-code>
<start>1404382929</start>
<end>1404382929</end>
<status>Could not start SUMO (c:/Users/Kevin/src/sumo-winbin-0.19.0/sumo-0.19.0/bin/sumo/exe -c erlangen.sumo.cfg): [Error 2] The system cannot find the file specified</status>
<stdout><![CDATA[]]></stdout>
<stderr><![CDATA[]]></stderr>
</status>
"
The sumo executable is called incorrectly (..sumo/exe instead of ..sumo.exe). Can somebody help me fix the problem?


Christoph Sommer

unread,
Jul 7, 2014, 8:45:26 AM7/7/14
to omn...@googlegroups.com
Kevin Mhlanga wrote:
> The sumo executable is called incorrectly (..sumo/exe instead of
> ..sumo.exe). Can somebody help me fix the problem?

please make sure to type "sumo.exe" instead of "sumo/exe" to fix the
problem.

Best,

Christoph

--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/

Kevin Mhlanga

unread,
Jul 7, 2014, 11:27:23 AM7/7/14
to omn...@googlegroups.com
I am typing "sumo.exe". However, no luck. The command window just writes "Listening on port 9999" and nothing happens after that.

Florian Hagenauer

unread,
Jul 8, 2014, 2:55:14 AM7/8/14
to omn...@googlegroups.com
Hi,

this is the usual behavior, if you now start the example as described on
the website, SUMO should start and the simulation will run. If you run
sumo-launchd.py with the additional flags -vv you will see more debug
output, which may be helpful.

Best,
Florian

--

Florian Hagenauer, MSc
Department of Computer Science
University of Paderborn, Germany
http://ccs-labs.org/~hagenauer/
> http://www.ccs-labs.org/~sommer/ <http://www.ccs-labs.org/~sommer/>
>
> --
> You received this message because you are subscribed to the Google
> Groups "omnetpp" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to omnetpp+u...@googlegroups.com
> <mailto:omnetpp+u...@googlegroups.com>.

Kevin Mhlanga

unread,
Jul 10, 2014, 3:18:44 PM7/10/14
to omn...@googlegroups.com, hage...@ccs-labs.org
Hi,

Thanks for the help. I decided to switch to Ubuntu 14 and it is working fine so far.
The funny thing is that when I did the installation on a different machine (win OS), it works but on the one I am using (win OS as well) I am still experiencing difficulties.

Regards,
Kevin

DHARI ALI GHRAIRI

unread,
Nov 21, 2017, 5:02:58 AM11/21/17
to OMNeT++ Users
Hi,
You should run in minGW the following code:
/c/Users/dhari/Desktop/omnetpp-5.2/veins-veins-4.6/sumo-launchd.py -vv -c  /c/Users/dhari/Desktop/omnetpp-5.2/sumo-0.29.0/bin/sumo-gui.exe

Walaa Afifi

unread,
May 26, 2019, 11:21:25 AM5/26/19
to OMNeT++ Users
I have the same problem I used omnet5.1, veins 4.6, sumo 0.13.1 or 0.30.0 or 0.29.0 or 0.25.0 which version of sumo is acceptance with previous omnet and veins

Eduardo Cooper

unread,
May 26, 2019, 1:20:25 PM5/26/19
to OMNeT++ Users
Most likely an incompatible set of program's versions. TracI is the TCP-based connection between a server-client that makes it possible to run Veins. So there is a problem with this connection. Might be that SUMO is not allowed through your firewall, or again, connection is not possible due to incompatible versions.
Reply all
Reply to author
Forward
0 new messages