Go to Post When a team is composed completely of robot builders and technical people that team cannot exist just like a company cannot exist if it is only made up of engineers. - Garret [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 24-02-2010, 20:12
LeelandS's Avatar
LeelandS LeelandS is online now
Robots don't quit, and neither do I
AKA: Leeland
FRC #1405 (Finney Falcons)
Team Role: Tactician
 
Join Date: Nov 2007
Rookie Year: 2005
Location: Webster, NY
Posts: 545
LeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond reputeLeelandS has a reputation beyond repute
crio/java out of memory error

Hi, when we leave our robot running for a relatively long period of time we get an error message related to running out of memory.

We added this code to print the free memory:

try {
Thread.sleep(500);
} catch ( InterruptedException e ) {

}
System.out.println("free mem" + GC.freeMemory());

[cRIO] free mem6677012
[cRIO] free mem6519896
[cRIO] free mem6364744
[cRIO] free mem6208284
[cRIO] free mem7687544
[cRIO] free mem7531060
[cRIO] free mem7373272
[cRIO] free mem7217988
[cRIO] free mem7061888
[cRIO] free mem6906812
[cRIO] free mem6752432
[cRIO] free mem6596116
[cRIO] free mem6440184
[cRIO] free mem6284224
[cRIO] free mem7764512
[cRIO] free mem7609052
[cRIO] free mem7453716
[cRIO] free mem7296632
[cRIO] free mem7140484
[cRIO] free mem6983784
[cRIO] free mem6827748
[cRIO] free mem6671184
[cRIO] free mem6516512
[cRIO] free mem6360892
[cRIO] free mem6206844
[cRIO] free mem7691412
[cRIO] free mem7536352
[cRIO] free mem7379612
[cRIO] free mem7223060
[cRIO] free mem7068420
[cRIO] free mem6913356
[cRIO] free mem6757728
[cRIO] free mem6601696
[cRIO] free mem6446328
[cRIO] free mem6291460
[cRIO] free mem7766200
[cRIO] free mem7610576
[cRIO] free mem7455504
[cRIO] free mem7300268
[cRIO] free mem7146560
[cRIO] free mem6990720
[cRIO] free mem6835784
[cRIO] free mem6679188
[cRIO] free mem6522128
[cRIO] free mem6366176
[cRIO] free mem6212340
[cRIO] free mem7692888
[cRIO] free mem7537672
[cRIO] free mem7382384
[cRIO] free mem7226732
[cRIO] free mem7071068
[cRIO] free mem6914580
[cRIO] free mem6759276
[cRIO] free mem6602544
[cRIO] free mem6448012
[cRIO] 0x214fdd8 (SquawkRobotTask): memPartAlloc: block too big 128 bytes (0x8 aligned) in partition 0x417470
[cRIO] Uncaught out of memory error on thread - aborting isolate Thread-9
[cRIO] Tried to execute callbacks in the context of an isolate that is no longer alive: isolate 1 "SparX.SparX" (EXITED)
[cRIO] Skipping that set of callbacks
[cRIO]
[cRIO]
[cRIO] --------------------------------------------------------------------
[cRIO] GCs: 1 full, 90 partial
[cRIO] ** VM stopped: exit code = 999 **
[cRIO] task 0x214fdd8 (SquawkRobotTask) deleted: errno=0 (0) status=999 (0x3e7)


The memory seems to look ok up until the error. The garbage collections are pretty obvious and the freemem just moves between 6000000 and 7000000. The log above is very abreviated.

Any ideas to further debug this?
__________________
My heart will forever lie with SparX
1126: 2008 - 2011; Where it All Began.
1405: 2013 - Present; A Wanderer is Born.

Work hard, play hard. And maybe someday...
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugger memory offset error dpeterson3 C/C++ 5 23-01-2010 15:00
cRIO java FRC_2010_v14.zip will_1359 General Forum 3 11-01-2010 00:08
cRio memory bobwrit FRC Control System 3 25-07-2009 01:34
crio flash memory Bwood16 Programming 1 06-02-2009 18:55
cRIO memory loss furiousgeorge FRC Control System 6 26-01-2009 16:27


All times are GMT -5. The time now is 08:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi