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
452 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
3 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 correct 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

 



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

Hey everyone,

when starting Tracker 6.0.8, the “Error Starting Tracker […] Problems: OutOfMemoryError: Java heap space“ error message appeared and Tracker did not start at all anymore.

My PC is “AZW Beelink Gemini X55 PC”, operating system is “Microsoft Windows 10, Version 22H2 (Build 19045.3208)“.

Possible cause: Knowing not to do so, I accidentally began loading a large video file and aborted as soon as I noticed its size. After aborting, Tracker didn’t start. I assume this has bogged down Tracker (“Testing and diagnosis” number 6 in “Trouble-shooting Java Tracker”).

I tried the following steps on my AZW Beelink Gemini X55 PC but they all failed so far. Not all steps are listed in chronological order. I restarted the PC between most of the steps.

  1. Opening from "C:\Program Files\Tracker\Tracker.exe"
  2. Opening from the link in the start menu: “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Tracker\”
  3. Uninstalled Tracker Version 6.0.8
  4. Installed Tracker version 6.1.3
  5. Installed Java Runtime Environment Version 8 Update 381 (64-bit)
  6. Uninstalled Java Runtime Environment Version 8 Update 381 (64-bit), because 9.0.4-x64-jre is bundled with Tracker 6.1.3 (C:\Program Files\Tracker): The JRE folder “9.0.4-x64-jre” is inside my Tracker folder.
  7. After installing Tracker Version 6.1.3 I tried uploading various tracker.prefs files to “C:\Users\Ben”. Right after installing Tracker Version 6.1.3 there was no tracker.prefs file in “C:\Users\Ben”. The installation doesn't seem to save the tracker.prefs file in the Users folder initially.
  8. I tried the “java - jar tracker.jar” command in the command line window (DOS) after navigating to "C:\Program Files\Tracker>". But the command is either written incorrectly or doesn't exist. This is my translation of the German answer, that the command line window gives me.

What I did not do:

  1. Tracker 5.1.5 is installed on a different system of mine: Lenovo 81MT Laptop, Windows 10, Version 2004, Build 19041.1110. Tracker works fine there. I didn’t try opening a large video file on the Laptop because I don’t want to crush Tracker there as well.
  2. On my AZW Beelink Gemini X55 PC I did not modify the tracker.prefs file because the instructions of adding a new line with 100 seemed too vague. The XML file (?) requires a specific code such as "<property name="mark_current_frame" type="boolean">true</property>" for example. Is just adding a new line with  ""100" the solution?
  3. I did not check that I am actually running in the default (bundled) Java that comes with Tracker because I cannot select "Help|Diagnostics|About Java" because Tracker doesn’t open.
  4. I did not try opening a large video file in in Tracker Online at https://physlets.org/tracker/trackerJS/

Attachments: “Java heap space“ error message



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