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!
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.
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.
Opening from "C:\Program Files\Tracker\Tracker.exe"
Opening from the link in the start menu: “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Tracker\”
Uninstalled Tracker Version 6.0.8
Installed Tracker version 6.1.3
Installed Java Runtime Environment Version 8 Update 381 (64-bit)
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.
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.
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:
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.
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?
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.
I did not try opening a large video file in in Tracker Online at https://physlets.org/tracker/trackerJS/