Spidey002 Posted June 18, 2022 Posted June 18, 2022 (edited) @PatrickAWlson I got this error when I attempted to do a combat report on one of my campaigns: I'd had issues with this campaign, so I switched to another one, flew the mission and got the same error when I tried to report claims. The campaign zips are larger than 5 MB each. I'll see if I can post links to them: https://1drv.ms/u/s!AtoscbAK5VCk4gchjuzbPx7J0MqZ?e=u6aHg6 https://1drv.ms/u/s!AtoscbAK5VCk4gZfOvqhf1BXiwvI?e=0MOH3p Edited June 19, 2022 by Spidey002
Spidey002 Posted June 18, 2022 Author Posted June 18, 2022 Here's the Error Log file: PWCGErrorLog.txt
Spidey002 Posted June 19, 2022 Author Posted June 19, 2022 (edited) Tried a completely clean install of PWCG, new campaign. Same error. Something to with my Java? Or did the new IL-2 update mess something up? Edited June 19, 2022 by Spidey002
Spidey002 Posted June 24, 2022 Author Posted June 24, 2022 On 6/20/2022 at 4:28 PM, PatrickAWlson said: Trying to figure this one out. Any luck?
Spidey002 Posted July 1, 2022 Author Posted July 1, 2022 On 6/20/2022 at 4:28 PM, PatrickAWlson said: Trying to figure this one out. I've thought about trying to delete all the mission logs and flying them again. Reinstalled Java. I'm avoiding having to reinstall IL-2, but that's the only other thing I can think of doing.
Stonehouse Posted July 1, 2022 Posted July 1, 2022 (edited) Only an opinion but can't see how reinstalling IL2 would help with an error out of PWCG. Index out of range means that PWCG is trying to look outside an array of values rather than within it. I've never learned Java but the concept is kind of: The array Countries = ["USA", "Germany", "UK", "Italy"] So if I retrieve element 1 from the array I get USA, Element 3 = UK, etc but if I try to get something like element 0 or 5 in my program I'd get an index out of range error because there is no element 0 or 5 for this array. Some programming languages define the first element in the array or table as index 0 and some as index 1. Not sure what Java does but essentially PWCG figures out an index to use to get an array element and tries to do so. If the index is not within the range of the array (1 to 4 is the range for my example above) you get index out of range. So the logical assumption which I'm very sure Pat is already looking at is that something in your campaign setup is finding a hole in PWCG logic. PS errors like this are sometimes VERY hard to find. At work I would try to get a rough idea where the error was coming from and then use a debugging tool to step through the code line by line checking values of different variables until I figure out where exactly it goes wrong and why and then have to try to figure out a code fix to stop it happening. Edited July 1, 2022 by Stonehouse 1
Spidey002 Posted July 1, 2022 Author Posted July 1, 2022 Deleting ALL of my mission reports fixed it! I was able to fly a mission and turn in the combat report!
PatrickAWlson Posted July 1, 2022 Posted July 1, 2022 1 hour ago, Spidey002 said: Deleting ALL of my mission reports fixed it! I was able to fly a mission and turn in the combat report! Glad to hear that. Totally not understanding it, but still glad to hear it. 1
Spidey002 Posted July 1, 2022 Author Posted July 1, 2022 I had over 1000 mission reports. Is that unusual?
PatrickAWlson Posted July 2, 2022 Posted July 2, 2022 10 hours ago, Spidey002 said: I had over 1000 mission reports. Is that unusual? That is the highest number I have ever seen. I'm still not getting the connection between the mission reports and the failure, but maybe. The failure itself was odd in that a line from the logs was getting truncated. When I looked for that truncated line in the logs it was not there, so maybe there was some sort of memory issue. usually Java justr rolls over and dies with a heap dump if you run out of memory, so what we saw was a really odd thing.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now