APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Tracker could not be started due to OutOfMemoryError: Java heap space post and replies

Return to the Tracker could not be started due to OutOfMemoryError: Java heap space thread
Login to post to this thread

Tracker could not be started due to OutOfMemoryError: Java heap space
Jo Wag
5 Posts

Hey everyone,

all of a sudden I cannot open Tracker anymore. Everytime I try to, I receive an error message saying that an "out of memory error" occured, see the attached image.

I haven't changed anything about my system since the last time I used Tracker. Both Tracker and Java are updated to the latest version, although I tried Version 5.2 as well which didn't work either.

As the error message suggests, I tried opening tracker.jar which DID work in the beginning (although I could only close it again via task manager). I then tried around by setting the memory size to default and afterwards also to 4000. Since then I cannot even open tracker.jar anymore.

I reinstalled both Tracker and Java multiple times and restarted my computer (which runs on Windows 7, by the way).

Any suggestions?

Best regards
Jo


EDIT:
Well, I seem to have fixed it. I tried installing Tracker Version 5.1.5 which allowed me to open tracker.jar again. There I changed the memory size to default again and changed the Java Virtual Machine to the non-bundled one. Then I could open Tracker.exe again, so I uninstalled the old and installed the latest version (6.0) again, which now does launch properly.

I'm happy it's fixed, but I have no idea what happened. I was just randomly trying stuff out and had no idea what I was doing, so I would still like to know why the error occured in the first place and how to deal with it in the future. Cheers!

Attached File: memoryerror.PNG


Replies to Tracker could not be started due to OutOfMemoryError: Java heap space

Re: Tracker could not be started due to OutOfMemoryError: Java heap space -
Jo Wag
5 Posts

Now the problem occurs again. Is there any way to fix it other than the way I did it last time?



Re: Tracker could not be started due to OutOfMemoryError: Java heap space -
Douglas Brown Avatar
Douglas Brown
426 Posts

Try this:

--open the tracker.prefs file in a text editor. On windows the file should be in C:/Users//AppData/Local/OSP.

--look for a line that starts with ".

--if the line exists, change the number to 100. If it doesn't, add the line "100

-- save the changes. Now does it start?  If so, the problem is setting the memory size too large (and this is a new bug).

Please let us know what you find out.  Thanks.



Re: Tracker could not be started due to OutOfMemoryError: Java heap space -
Jo Wag
5 Posts

Took a while for me to reply, but I could get my work done in time with my workaround. Anyway, now I have to use Tracker again.

I downloaded the latest version, started it, but everytime I imported an AVI-file I only got a black screen instead of the video footage.

After a couple of restarts I encountered the same problem as before, (out of memory error: java heap space) and tried your suggestion. tracker.prefs did not have a line starting with ", so I added "100 like in the attached image, but the same error message occured.

Attached File: trackerprefs.PNG



Re: Tracker could not be started due to OutOfMemoryError: Java heap space -
Bill Noussis
18 Posts

I solved this problem by deleting the whole folder: C:/Users//AppData/Local/OSP.



Re: Tracker could not be started due to OutOfMemoryError: Java heap space -
Vratislav Pechanec
1 Posts

I have encountered this problem too with Tracker v6.1.2.

I have solved it by deleting the osp.prefs file in the C:\Users\...\AppData\Local\OSP\ folder.

BTW, the damaged osp.prefs file had size of 22MB and the new one just 260B.

The cirrect osp.prefs should look like this:

<?xml version="1.0" encoding="UTF-8"?> <object class="java.lang.Object">     <property name="TRACKER_HOME" type="string">C:\Program Files\Tracker</property>     <property name="XUGGLE_HOME" type="string">C:\Program Files\Tracker\Xuggle</property> </object>

To Doug: Thank you very much for your great Tracker tool!

Best regards, Vráťa

 



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book