Page 308 of 319

RE: WitPTracker AE Release 1.11 Available!

Posted: Sun Jan 02, 2022 1:01 am
by Lokasenna
ORIGINAL: floydg

ORIGINAL: Lokasenna
ORIGINAL: Lokasenna

I keep running into this intermittent and unpredictable issue when trying to read in a new turn:



System memory usage at 47% (of 32GB). I've fiddled with the -Xms and -Xmx tags and it doesn't seem to matter whether I put 512, 768, or 1024 in any of them, in any combination.

I haven't changed anything and Trackers "installed" in different folders on my desktop never had this issue.

Sometimes closing other apps and re-loading Tracker, then trying the turn again, would work. Today it isn't working.

Any help tracking this down? It's highly irritating and it is only happening with this instance of Tracker, not those I use(d) for other games. It's the exact same Tracker files, just in a different subfolder.

Edit to add:
Windows 10
Tracker version 1.10

java -showversion
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)


Edit 2:
Just tried it 3 more times and it worked this time. I closed another app that may use Java but... WTH?

Still having this issue, and only with one particular Tracker folder.

I've played around with the maximum heap space (-Xmx) number and can't figure it out or resolve it. I'm in 64-bit Windows, but I think it's 32-bit Java VM?

Shouldn't the 32-bit Java VM allow values of -Xmx up to 1.6 GB? (https://java2blog.com/could-not-reserve ... ject-heap/)

More to the point, why is this happening for a game save file that's still in January 1942? The database isn't very big at all yet.

And why doesn't it happen with my other Tracker folder that is also playing the Allies, is in 1943, and uses -Xms512m -Xmx512m in its command line? Why wouldn't that one run out of heap space? It doesn't - it works fine.

When Tracker loads up, it's in the ~440-480MB range in my task manager. How does it not have enough space between 400M and the 1300M that I have been able to set the -Xmx on to load a turn? It makes zero sense.


Edit 2: I made a fresh folder, switched back to -Xms512m -Xmx512m (which I'd already tried and are the same parameters on my other functioning Trackers), and then loaded a fresh database. I then loaded the new turn. It worked. When I looked at how much RAM it was taking up, it was over 600MB. If the heap stack space is limited to 512MB... This makes no sense to me.

I've never been an expert at memory management. It could be related to how the program processes the data, so it could be situation-specific. I know the program is long overdue for a re-work to fix the load times, which could address this. But finding the time is a challenge.

What boggles my mind about it is that it appears specific only to this one folder on my desktop. I can (and did) make a copy and run that one, and it works. But that folder's copy doesn't.

RE: WitPTracker AE Release 1.11 Available!

Posted: Sun Jan 02, 2022 12:08 pm
by azura987
Hi! I'm trying my best to get witptrack 1.11 running but don't succeed. My knowledge of JAVA Runtime and windows is not as good as some here, and I tried a lot of things :) This is the error message I get on the console, please help me !
C:\Users\claes\Downloads\witptracker>C:\jre6-Tracker\bin\java -Xms512m -Xmx640m -jar "WitPTracker.jar"
Exception in thread "main" java.lang.UnsupportedClassVersionError: witptracker/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: witptracker.Main. Program will exit.

RE: WitPTracker AE Release 1.11 Available!

Posted: Sun Jan 02, 2022 12:19 pm
by Zovs
Looks like your running the wrong Java version.

RE: WitPTracker AE Release 1.11 Available!

Posted: Sun Jan 02, 2022 12:25 pm
by azura987
odd, I have tried with Java 6 32 bit... it's that one right?

RE: WitPTracker AE Release 1.11 Available!

Posted: Sun Jan 02, 2022 5:22 pm
by Nomad
Hi Floyd, any idea what these error messages are about?

java.sql.SQLException: Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_PK_59
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)
at witptracker.Database.InsertRow(Database.java:54)
at witptracker.Base.UpdateBaseInDB(Base.java:640)
at witptracker.InMemoryDB.CompareBaseLists(InMemoryDB.java:1743)
at witptracker.ReadTurnTask.doInBackground(ReadTurnTask.java:91)
at witptracker.ReadTurnTask.doInBackground(ReadTurnTask.java:1)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Insert Error code = -104
Table=BaseObjects Values=(749,1,388,527,0,1,0,1,0)
-----------------------------------------------
java.sql.SQLException: Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_PK_59
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)
at witptracker.Database.InsertRow(Database.java:54)
at witptracker.Base.UpdateBaseInDB(Base.java:640)
at witptracker.InMemoryDB.CompareBaseLists(InMemoryDB.java:1743)
at witptracker.ReadTurnTask.doInBackground(ReadTurnTask.java:91)
at witptracker.ReadTurnTask.doInBackground(ReadTurnTask.java:1)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Insert Error code = -104
Table=BaseObjects Values=(749,2,388,519,0,1,0,1,0)
------------------------------------------------------
java.sql.SQLException: Numeric value out of range
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)
at witptracker.Database.InsertRow(Database.java:54)
at witptracker.Alert.InsertInTable(Alert.java:232)
at witptracker.Pilots.UpdatePilotInDB(Pilots.java:294)
at witptracker.InMemoryDB.ComparePilotLists(InMemoryDB.java:3338)
at witptracker.ReadTurnTask.doInBackground(ReadTurnTask.java:206)
at witptracker.ReadTurnTask.doInBackground(ReadTurnTask.java:1)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Insert Error code = -65
Table=Alerts Values=(388,6,34199,12,0,1)


RE: WitPTracker AE Release 1.11 Available!

Posted: Sun Jan 02, 2022 7:26 pm
by Marc
Hi Floyd,

is it possible to adjust the font size of tracker?
The font size is quite small on my screen and adjusting it would be really great.

Anyway thank you for this extremly good tool.

RE: WitPTracker AE Release 1.11 Available!

Posted: Sun Jan 09, 2022 12:13 am
by Nexira
I get a "unable to access jarfile witptracker.jar" error in the bat command prompt. No clue whats causing it, i have the right java and its linked to it, i have the memory, and ive double checked that i have downloaded everything it asks for on the tracker site. Anyone know what im doing wrong? (also running things in admin mode and what not)

RE: WitPTracker AE Release 1.11 Available!

Posted: Tue Jan 18, 2022 4:56 pm
by Fraggo5
Thanks for the advice you gave to Zovs back in December Nomad , It helped me get WitPTracker working on my system.
Thanks

RE: WitPTracker AE Release 1.11 Available!

Posted: Wed Jan 19, 2022 12:56 am
by Nomad
I am glad I could help. I loved Squad Leader, played a lot of it many, many years ago.

RE: WitPTracker AE Release 1.11 Available!

Posted: Thu Jan 27, 2022 3:04 pm
by Hano
Help needed with WitPTracker 1.11

Is there someone who can help me with this, I appreciate that a number have people have contributed with advice and suggestions, but I cant get WitPTracker to work

I have written out the steps I took following the steps in https://sites.google.com/site/witptracker/installation but cant get it to work.

Does anyone have the patience to spell out in the simplest terms what I'm doing wrong and how to get it to work.

If anyone can, I would really appreciate the help

Image

RE: WitPTracker AE Release 1.11 Available!

Posted: Thu Jan 27, 2022 3:42 pm
by Nomad
The one thing I see is that there should be a " after witpTracker.jar

If your 32-bit java installation is in C:\java32\installation\bin\java.exe then it should work

Another possibility is that your witptracker properties file is not correct
edit, a bad path in the wirptracker properties file does not give that error.

I really think that the path you input for your 32-bit java installation is incorrect


RE: WitPTracker AE Release 1.11 Available!

Posted: Fri Jan 28, 2022 3:27 pm
by Hano
Thank you Nomad

I will check that out both the missing " and the path.

I assume that I dont need Java 6 if I have Java8 (32bit) installed?

This has been driving me nuts.......

RE: WitPTracker AE Release 1.11 Available!

Posted: Fri Jan 28, 2022 4:01 pm
by Nomad
I'm using version 8, no problem.

RE: WitPTracker AE Release 1.11 Available!

Posted: Wed Feb 02, 2022 1:47 pm
by purake
Hi Guys,

Tried to install tracker, it says x64 AMD systems are not supported? Is there a workaround?

Image

RE: WitPTracker AE Release 1.11 Available!

Posted: Wed Feb 02, 2022 2:17 pm
by purake
ORIGINAL: purake

Hi Guys,

Tried to install tracker, it says x64 AMD systems are not supported? Is there a workaround?

Image

Nvm: Found the solution; installed the SP1 C++ libraries and copied the 32 bit Java exe to the tracker directory.

RE: WitPTracker AE Release 1.11 Available!

Posted: Wed Feb 09, 2022 12:10 am
by BananaConvention
Guys I am having a problem with Tracker. I get it to load my turn, but it's not showing me the alerts. I really need the alerts to keep track of where my ships are. How do I get it to show all alerts?

Image

RE: WitPTracker AE Release 1.11 Available!

Posted: Wed Feb 09, 2022 1:16 am
by Nomad
That screen shot shows that you just initialized the database. The alerts are based on comparing the current turn with the previous turn.
I do not know what you did for turn 1 and and turn 2, since it shows you loaded turn 3 but you have not loaded turn 1 and turn 2.

RE: WitPTracker AE Release 1.11 Available!

Posted: Wed Feb 09, 2022 1:29 am
by BananaConvention
How do I load other turns? I don’t understand how to save the files each turn so it can read a previous one. Should I save them on different slots each turn or overwrite the file each time?

RE: WitPTracker AE Release 1.11 Available!

Posted: Wed Feb 09, 2022 1:36 am
by Nomad
You are playing against the AI correct? pick one slot, preferably a very low number like 5. That is your tracker save slot. After the new turn processes save the turn to that slot and also save it to a different slot so you have a running set of turns so you can go back and restart the game and try different actions. I always used slot 5 for my tracker save, slot 4 I used to save the game just before I ended it, so I could made adjustments if I wanted to, and slot 3 was a temporary save slot while doing the turn. I often save before I do something that could be done wrong. You can then have about 194 other save file slots you can use to have for learning.
Note that when I play a pbem game I use the same setup, but not always slot 5, but use 3 slots as described. That way after I send my turn I can use the save just before ending to open and peruse and make notes for things to do later in the game.

RE: WitPTracker AE Release 1.11 Available!

Posted: Wed Feb 09, 2022 3:39 am
by BananaConvention
Ok, so I can keep uploading the same game file name to the Tracker and it'll start creating my alert log from that point on?