Std::bad_alloc error

600 views
Skip to first unread message

Krishna Oza

unread,
Dec 18, 2012, 4:45:58 AM12/18/12
to omn...@googlegroups.com
Hello every one when run some simulations based on adhoc networks some times I get the following error :: error in OLSR module std::bad_alloc. for some simulations the system works fine. Pls can anyone help resolve the above issue.

Also sometimes I used to suspect that this error is bcoz for low ram or swap but thats not the case.

alfonso ariza

unread,
Dec 18, 2012, 7:49:36 AM12/18/12
to omn...@googlegroups.com

Out of memory, the cause can be programming error or, if the scenery is very big OLSR will consume  a lot of memory. I have suffer a problem similar in win xp because, for a unknown reason, the memory manager didn’t work correctly and  the OS couldn’t reuse the memory, but ths same simulation was executed without problems in Linux.

--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
 
 

Krishna Oza

unread,
Dec 19, 2012, 12:33:04 AM12/19/12
to omn...@googlegroups.com, aari...@hotmail.com
Ok thanks But I am using ubuntu linux and have 4 gb ram and 8gb swap space when i monitor the usage of both the memory using system monitor I see no usage of swap but a little say some 30-40 % usage of ram. I have a moderate size network of some 100 adhoc host talking over OLSR. But when I do run the same simulation on fedora 17 i get no error but the memory usage rises up for both ram and swap and also I ran to check it some different ubuntu m/c it worked fine.   The above error pops up at different nodes during different simulation runs.   I dont think there is an error at code level bcoz I do have same code on my fedora and ubuntu machines.  Pls help.

alfonso ariza

unread,
Dec 19, 2012, 5:29:17 AM12/19/12
to omn...@googlegroups.com

This behavior is bit strange, Std::bad_alloc is generated by the “new” and, usually, when the program run out of memory

Rehman, Sabih-Ur

unread,
Dec 31, 2012, 11:30:38 PM12/31/12
to omn...@googlegroups.com

Hi all

Anyone has worked on running veins in windows 8. Did you experience any difficulties?

[cid:csu-logo39b3.bmp]<http://www.csu.edu.au/>

| ALBURY-WODONGA | BATHURST | CANBERRA | DUBBO | GOULBURN | MELBOURNE | ONTARIO | ORANGE | PORT MACQUARIE | SYDNEY | WAGGA WAGGA |

________________________________
LEGAL NOTICE
This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University (CSU) does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with CSU may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at CSU. The views expressed in this email are not necessarily those of CSU.

Charles Sturt University in Australia<http://www.csu.edu.au> The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Numbers: 00005F (NSW), 01947G (VIC), 02960B (ACT)). TEQSA Provider Number: PV12018
Charles Sturt University in Ontario<http://www.charlessturt.ca/> 860 Harrington Court, Burlington Ontario Canada L7N 3N4 Registration: www.peqab.ca<http://www.peqab.ca>

Consider the environment before printing this email.

Disclaimer added by CodeTwo Exchange Rules 2007
www.codetwo.com<http://www.codetwo.com>

Rehman, Sabih-Ur

unread,
Jan 1, 2013, 12:11:00 AM1/1/13
to omn...@googlegroups.com
Attached here is the error.

Thanks.

________________________________________
From: omn...@googlegroups.com [omn...@googlegroups.com] On Behalf Of Rehman, Sabih-Ur [sare...@csu.edu.au]
Sent: Tuesday, 1 January 2013 3:30 PM
To: omn...@googlegroups.com
Subject: [Omnetpp-l] Veins working in Windows 8
--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
Charles Sturt University

| ALBURY-WODONGA | BATHURST | CANBERRA | DUBBO | GOULBURN | MELBOURNE | ONTARIO | ORANGE | PORT MACQUARIE | SYDNEY | WAGGA WAGGA |

LEGAL NOTICE
This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University (CSU) does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with CSU may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at CSU. The views expressed in this email are not necessarily those of CSU.

Charles Sturt University in Australia http://www.csu.edu.au The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Numbers: 00005F (NSW), 01947G (VIC), 02960B (ACT)). TEQSA Provider Number: PV12018

Charles Sturt University in Ontario http://www.charlessturt.ca 860 Harrington Court, Burlington Ontario Canada L7N 3N4 Registration: www.peqab.ca

Consider the environment before printing this email.

Disclaimer added by CodeTwo Exchange Rules 2007
http://www.codetwo.com

veins windows 8 error.png

Christoph Sommer

unread,
Jan 3, 2013, 5:29:00 AM1/3/13
to omn...@googlegroups.com
Dear Sabih-Ur,

Rehman, Sabih-Ur wrote:
> Attached here is the error.

did you check if the error message is correct?


Best,

Christoph

Rehman, Sabih-Ur

unread,
Jan 3, 2013, 6:11:53 AM1/3/13
to omn...@googlegroups.com
Hi Chris

It seems correct as far as I can see. I have attached the screen shot again here. I have installed veins/omnet on other machine having windows 7 and also on windows xp, it works fine there. But here in windows 8, I keep giving errors each time mentioning ieee802p.exe stopped working. I wonder why?

Any suggestions?



________________________________________
From: omn...@googlegroups.com [omn...@googlegroups.com] On Behalf Of Christoph Sommer [christop...@uibk.ac.at]
Sent: Thursday, 3 January 2013 9:29 PM
To: omn...@googlegroups.com
Subject: Re: [Omnetpp-l] RE: Veins working in Windows 8
veins windows 8 error.png

Rehman, Sabih-Ur

unread,
Jan 6, 2013, 11:33:29 PM1/6/13
to omn...@googlegroups.com
Hi Dr Christopher

It is giving different error each time I am trying to run veins. I have checked all intermediate steps as per tutorial. I have also checked that sumo is working by its own through command line, and it is. Any help here please.

Rehman, Sabih-Ur

unread,
Jan 7, 2013, 12:07:17 AM1/7/13
to omn...@googlegroups.com
Error attached.

Thanks

-----Original Message-----
From: omn...@googlegroups.com [mailto:omn...@googlegroups.com] On Behalf Of Rehman, Sabih-Ur
Sent: Monday, 7 January 2013 3:33 PM
To: omn...@googlegroups.com
Subject: RE: [Omnetpp-l] RE: Veins working in Windows 8

Hi Dr Christopher

It is giving different error each time I am trying to run veins. I have checked all intermediate steps as per tutorial. I have also checked that sumo is working by its own through command line, and it is. Any help here please.

-----Original Message-----
From: omn...@googlegroups.com [mailto:omn...@googlegroups.com] On Behalf Of Rehman, Sabih-Ur
Sent: Thursday, 3 January 2013 10:12 PM
To: omn...@googlegroups.com
veins error in windows 8 - mingw32 error.doc

Christoph Sommer

unread,
Jan 8, 2013, 5:13:28 AM1/8/13
to omn...@googlegroups.com
Rehman, Sabih-Ur wrote:
> It is giving different error each time I am trying to run

That sure sounds strange.

Are the errors you are getting somewhat similar or is it crashing at
completely random places?

Best,

Christoph

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

Rehman, Sabih-Ur

unread,
Jan 8, 2013, 6:46:53 PM1/8/13
to omn...@googlegroups.com
Actually Migw32 Error is shown below. And I get a message on GUI ieee80211p.exe has stopped working.

As far as I can see it is TraCIserver.cpp that is generating this error, but why I am unsure.

http://sumo.sourceforge.net/doc/current/docs/doxygen/d0/d7d/_tra_c_i_server_8cpp_source.html


Your thoughts?

--------------------------------------------------------------
Error
--------------------------------------------------------------
Welcome to OMNeT++ 4.2.2!

Sabih@Sabih ~
$ omnetpp
Starting the OMNeT++ IDE...

Sabih@Sabih ~
$ /c/omnetpp-4.2.2/veins-2.0/sumo-launchd.py -vv -c sumo.exe
Logging to c:\users\sabih\appdata\local\temp\sumo-launchd.log
Listening on port 9999
Connection from 127.0.0.1 on port 60611
Handling connection from 127.0.0.1 on port 60611
Got TraCI message of length 2
Got TraCI command of length 1
Got TraCI command 0x0
Got CMD_GETVERSION
Got TraCI message of length 291
Got TraCI command of length 286
Got TraCI command 0x75
Got CMD_FILE_SEND for "sumo-launchd.launch.xml"
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="C:/omnetpp-4.2.2/veins-2.0/examples/veins/"/>
<seed value="0"/>
</launch>
"
Creating temporary directory...
Temporary dir is c:\users\sabih\appdata\local\temp\sumo-launchd-tmp-wv9kk2
Base dir is C:/omnetpp-4.2.2/veins-2.0/examples/veins/
Seed is 0
Finding free port number...
Claiming lock on port
...found port 60612
Starting SUMO (sumo.exe -c erlangen.sumo.cfg) on port 60612, seed 0
Connecting to SUMO (sumo.exe -c erlangen.sumo.cfg) on port 60612 (try 1)
Releasing lock on port
Starting proxy mode
Done with proxy mode
Done with proxy mode, killing SUMO
Done running SUMO
Cleaning up
Result: "<?xml version="1.0"?>
<status>
<exit-code>0</exit-code>
<start>1357534848</start>
<end>1357534868</end>
<status>Done.</status>
<stdout><![CDATA[Loading configuration... done.
]]></stdout>1ms ~= 1000.00*RT, ~1000.00UPS, vehicles TOT 1 ACT 1)
<stderr><![CDATA[Error: Answered with error to command 0: Wrong position
in requestMessage after dispatching command. Expected command length was 7 but
2 Bytes were read.
]]></stderr>
</status>
"
Closing connection from 127.0.0.1 on port 60611

-----Original Message-----
From: omn...@googlegroups.com [mailto:omn...@googlegroups.com] On Behalf Of Christoph Sommer
Sent: Tuesday, 8 January 2013 9:13 PM
To: omn...@googlegroups.com
Subject: Re: [Omnetpp-l] RE: Veins working in Windows 8

Rehman, Sabih-Ur

unread,
Jan 8, 2013, 10:14:22 PM1/8/13
to omn...@googlegroups.com
Hi Rudolf

Might be a stupid question, but i will ask though ...:) and that is "I can see that importing old frameworks say inet in same workspace where we did import say Mixim framework before successfully is not allowed and it gives you error new version is already there or something(I am doing import through file -> import -> Existing project into workspace and selecting root directory). But is there a way I still can force that import through and just show inet in my project explorer too. Is there a way to do that or not? Please let me know. Thanks

Rudolf Hornig

unread,
Jan 9, 2013, 6:38:10 AM1/9/13
to omn...@googlegroups.com, sare...@csu.edu.au
What you are actually asking is whether you can import two different versions of INET into the same workspace. The answer is yes, but it involves a some tweaking...

I would rather recommend creating a different workspace for this purpose and switch between the workspaces if need arise...

(the reason why the error is shown is that you try to import two projects with the same name (inet) which is not possible. Before importing the second INET the first one must be renamed to something different and all projects that refer to it should be also changed to refer to the differently named project. after that is done you will be able to import the scond INET project)

Rudolf

Rehman, Sabih-Ur

unread,
Jan 9, 2013, 9:20:05 PM1/9/13
to Rudolf Hornig, omn...@googlegroups.com

Thanks.. I can use “switch workspace” as in eclipse – File -> Switch Workspace.

Charles Sturt University

|   ALBURY-WODONGA   |   BATHURST   |   CANBERRA   |   DUBBO   |   GOULBURN   |   MELBOURNE   |   ONTARIO   |   ORANGE   |   PORT MACQUARIE   |   SYDNEY   |   WAGGA WAGGA   |

LEGAL NOTICE
This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University (CSU) does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with CSU may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at CSU. The views expressed in this email are not necessarily those of CSU.

Charles Sturt University in Australia The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Numbers: 00005F (NSW), 01947G (VIC), 02960B (ACT)). TEQSA Provider Number: PV12018
Charles Sturt University in Ontario 860 Harrington Court, Burlington Ontario Canada L7N 3N4 Registration: www.peqab.ca

Consider the environment before printing this email.

Disclaimer added by CodeTwo Exchange Rules 2007
Message has been deleted

vignesh k

unread,
Mar 4, 2014, 12:14:38 PM3/4/14
to omn...@googlegroups.com, sare...@csu.edu.au
hi sir,
 i having the same error as you have mentioned above when i am trying to run traci_launchd.Can you please help me how to rectify the error.

Christoph Sommer

unread,
Mar 6, 2014, 12:28:32 AM3/6/14
to omn...@googlegroups.com
Dear Vignesh,

you might be using incompatible versions of Veins and SUMO. Did you
follow the Veins tutorial on [1]?


Best,

Christoph


[1] http://veins.car2x.org/tutorial/

Marc Anthony Warrior

unread,
Mar 12, 2014, 9:40:40 AM3/12/14
to omn...@googlegroups.com

I believe that my issue wound up being related to versions. Make sure that your veins, sumo, and python versions are right, make sure your folder names match the versions, and make sure that the right version/folder names match what you call for in the command line.

I hope this helps.

-Marc

--
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/TTyloCVj_q4/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/groups/opt_out.

Vinoth Sarun

unread,
Oct 24, 2014, 1:07:11 PM10/24/14
to omn...@googlegroups.com, christop...@uibk.ac.at
Hello Everyone. We are working on veins.We are trying to analyse the inter vehicle communication .We could understand that the communication data are stored in Ned files but we could not find out exactly in which ned file the communication between simulated cars takes place and the parameters used in it.Also if there is something in wrong in our understanding, kindly correct us.

Christoph Sommer

unread,
Oct 26, 2014, 4:14:05 PM10/26/14
to omn...@googlegroups.com
Dear Vinoth Sarun,

The Veins website might be of interest to you. It has a tutorial and
some hints on how to get started:

http://veins.car2x.org/tutorial/
http://veins.car2x.org/documentation/faq/

Best,

Christoph

Sabari Nathan

unread,
Feb 9, 2017, 3:56:23 AM2/9/17
to OMNeT++ Users, aari...@hotmail.com
Hi,
I'm simulating a 100 node network with OLSR routing protocol and experienced the same issue around 10th second. I found that the Memory usage reached 2GB (my system has 16 GB memory) when the error occurred. Did your problem get resolved? If yes, can you guide me. Thanks in advance!
Reply all
Reply to author
Forward
0 new messages