Faezeh
Faezeh

Reputation: 1

Simulation veins-run has encountered a problem. Simulation terminated with exit code: -1073740940

I use Omnet++ 5.4.1 Veins 4.7.1 and Sumo 30. My simulation works well and generates the right output But when the simulation time runs end or I stop the simulation, it shows the following error:

simulation veins-run' has encountered a problem. finish with error Simulation terminated with exit code: -1073740940 Working directory: C:/Users/AB/src/omnetpp-5.4.1/samples/veins/examples/veins Command line: ../../../../bin/opp_run.exe -m -u Qtenv -n .;../../src/veins --image-path=../../images -l ../../src/veins omnetpp.ini Environment variables: PATH=;C:/Users/AB/src/omnetpp-5.4.1/samples/veins/src;C:\Users\AB\src\omnetpp-5.4.1\bin;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\mingw64\bin;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\usr\bin;;C:/Users/AB/src/omnetpp-5.4.1/ide/jre/bin/server;C:/Users/AB/src/omnetpp-5.4.1/ide/jre/bin;C:/Users/AB/src/omnetpp-5.4.1/ide/jre/lib/amd64;.;C:\Users\AB\src\omnetpp-5.4.1\bin;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\mingw64\bin;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\usr\local\bin;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\usr\bin;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\usr\bin\site_perl;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\usr\bin\vendor_perl;C:\Users\AB\src\omnetpp-5.4.1\tools\win64\usr\bin\core_perl;C:\Users\AB\src\omnetpp-5.4.1; OMNETPP_ROOT=C:/Users/AB/src/omnetpp-5.4.1/ OMNETPP_IMAGE_PATH=C:\Users\AB\src\omnetpp-5.4.1\images

And the finish() method doesn't work, and I can't record the information and use it to draw chart. Please help me to solve my problem. Thanks.

Upvotes: 0

Views: 1037

Answers (1)

Jerzy D.
Jerzy D.

Reputation: 7002

In your omnetpp.ini set:

debug-on-errors = true

and start the simulation in debug mode. The debugger should show the command that causes an error. Reference: OMNeT++ Tutorial - 2.3 Debugging

Another clue: unfortunately OMNeT++ uses decimal numbers for exit code, while hex values are more valuable. The exit code -1073740940 has the hex representation: 0xc0000374. One may use the last number for looking among Microsoft Windows exception codes.

Upvotes: 1

Related Questions