Simulation terminated with exit code: -1073741676

2,837 views
Skip to first unread message

Anthony Mile

unread,
Feb 21, 2017, 9:09:57 AM2/21/17
to omn...@googlegroups.com
Hello good people. I trust i will get help from my good friends here.

I came across this run error when I run omnet with Mixim framework. Anyone with idea of this error code? See attached screen and also below paste of same.
Am using omnetpp 4.6

Assistance highly appreciated friends.




OMNeT++ Discrete Event Simulation  (C) 1992-2014 Andras Varga, OpenSim Ltd.
Version: 4.6, build: 141202-f785492, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
Setting up Tkenv...
Loading NED files from ..: 3
Loading NED files from ../../src: 32
Loading NED files from ../../../mixim/examples: 36
Loading NED files from ../../../mixim/src: 91
Loading NED files from ../../../mixim/tests: 51
Loading NED files from D:\omnet4.6\omnetpp-4.6\PhDWork\WBAN_Interference\src: 32

Loading images from D:\omnet4.6\omnetpp-4.6\PhDWork\mixim\images: *: 0  status/*: 6 
Loading images from D:\omnet4.6\omnetpp-4.6\images: *: 0  abstract/*: 90  background/*: 4  block/*: 320  device/*: 198  logo/*: 1  maps/*: 9  misc/*: 70  msg/*: 55  old/*: 111  status/*: 28 

Plugin path: ./plugins

Simulation terminated with exit code: -1073741676
Working directory: D:/omnet4.6/omnetpp-4.6/PhDWork/WBAN_Interference/simulations/WBAN
Command line: ../../src/WBAN_Interference.exe -r 0 -n ..;../../src;../../../mixim/examples;../../../mixim/src;../../../mixim/tests --tkenv-image-path=../../../mixim/images -l ../../../mixim/tests/power/utils/powerTestUtils -l ../../../mixim/tests/testUtils/miximtestUtils -l ../../../mixim/src/base/miximbase -l ../../../mixim/src/modules/miximmodules omnetpp.ini

Environment variables:
OMNETPP_ROOT=D:/omnet4.6/omnetpp-4.6/
PATH=;D:/omnet4.6/omnetpp-4.6/PhDWork/mixim/tests/power/utils;D:/omnet4.6/omnetpp-4.6/PhDWork/mixim/tests/testUtils;D:/omnet4.6/omnetpp-4.6/PhDWork/mixim/src/base;D:/omnet4.6/omnetpp-4.6/PhDWork/mixim/src/modules;D:\omnet4.6\omnetpp-4.6\bin;D:\omnet4.6\omnetpp-4.6\tools\win32\usr\bin;D:\omnet4.6\omnetpp-4.6\tools\win32\mingw32\bin;D:/omnet4.6/omnetpp-4.6/ide/jre/bin/client;D:/omnet4.6/omnetpp-4.6/ide/jre/bin;D:/omnet4.6/omnetpp-4.6/ide/jre/lib/i386;.;D:\omnet4.6\omnetpp-4.6\bin;D:\omnet4.6\omnetpp-4.6\tools\win32\mingw32\bin;D:\omnet4.6\omnetpp-4.6\tools\win32\usr\local\bin;D:\omnet4.6\omnetpp-4.6\tools\win32\usr\bin;D:\omnet4.6\omnetpp-4.6\tools\win32\usr\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\ThinkPad\Bluetooth Software;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Lenovo\Access Connections;C:\Program Files (x86)\Skype\Phone;D:\omnet4.6\omnetpp-4.6\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;D:\omnet4.6\omnetpp-4.6\bin;D:\omnet4.6\omnetpp-4.6\tools\win32\usr\bin\site_perl;D:\omnet4.6\omnetpp-4.6\tools\win32\usr\bin\vendor_perl;D:\omnet4.6\omnetpp-4.6\tools\win32\usr\bin\core_perl;D:\omnet4.6\omnetpp-4.6;
OMNETPP_IMAGE_PATH=D:\omnet4.6\omnetpp-4.6\images


omnet error.PNG

Michael Kirsche

unread,
Feb 22, 2017, 7:19:30 AM2/22/17
to OMNeT++ Users
That is probably a segmentation fault happening somewhere during the initialization of the modules.
You need to debug your simulation to find out where exactly it crashes.

Simple left click your omnetpp.ini and choose Debug as -> OMNeT simulation to start debugging your simulation.
The debugger will point out where the simulation crashes.
Look online for additional tutorials on debugging programs with GDB under Eclipse to find out more about how to use the debugger.

Anthony Mile

unread,
Feb 22, 2017, 9:25:24 AM2/22/17
to OMNeT++ Users
Thank you so much Mike. I am not so good in omnet, am still trying to learn and I have been trying to debug the output.
The current state of the simulation run is that it runs well until the end of simulation time with no above error. The previous error seems to have disappeared when i run the "omnetpp" from the mingwenv command.

From my simulation am expecting to see the output  "Castalia-statistics.anf" file so that i can browse through the different simulation output on throughput, delay, energy consumption etc. This Castalia-statistics.anf does not appear on the output of the run. Only Castalia-statistics.sca is generated which does not contain the output of the simulation.

Do you have an idea on why am not getting this?
See attached to give you an idea of what am getting and what am expecting

I thank you so much for taking time to help. I was so desperate with the problem
expected output.PNG
what i am getting on output of run.PNG
expected output.PNG

Michael Kirsche

unread,
Feb 22, 2017, 10:03:50 AM2/22/17
to OMNeT++ Users
You should always start OMNeT from the mingw command prompt under Windows.
Only then will all the necessary paths be set.

As for the missing anf file, this is simply a collection file where links to the actual output files (scalar files *.sca and vector files *.vec) are collected.
You can create it by clicking on the *.vec or *.sca files, the OMNeT IDE will offer to create an *.anf file, where you can select which *.sca and *.vec files you want to collect.
You can also manually create an *.anf file via the File -> New dialog.

Check the User Guide for the IDE - Chapter 9 for a detailed description: https://omnetpp.org/doc/omnetpp/UserGuide.pdf

Anthony Mile

unread,
Feb 22, 2017, 10:15:07 AM2/22/17
to omn...@googlegroups.com
Thanks so much Mike, I have learned that and appreciate. Learning is a continuous process and appreciated groups like this.

Let me try that and evert. My prayers that it works as expected 

Will get back to you on how it has gone 


--


You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.


To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/c2CJ3J82zZE/unsubscribe.


To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.


Visit this group at https://groups.google.com/group/omnetpp.


For more options, visit https://groups.google.com/d/optout.


Anthony Mile

unread,
Feb 24, 2017, 3:47:46 PM2/24/17
to omn...@googlegroups.com
Thank you Mike. I have learned alot from your above email, you are great. I didn't manage to get the vector output but atleast I can get the scalars now and get the bar graphs.
I will now concentrate on simulating WBANs on omnet

Thank you so much


To unsubscribe from this group and all its topics, send an email to omnetpp+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages