Jump to content

Recommended Posts

Posted (edited)

@PatrickAWlson
I got this error when I attempted to do a combat report on one of my campaigns:

image.jpeg.b65e3acc31da42e1a5de63c0a3e241e8.jpeg

 

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 by Spidey002
Posted (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 by Spidey002
PatrickAWlson
Posted

Trying to figure this one out.  

  • Like 1
Posted
On 6/20/2022 at 4:28 PM, PatrickAWlson said:

Trying to figure this one out.  


Any luck?

Posted
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 (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 by Stonehouse
  • Like 1
Posted

Deleting ALL of my mission reports fixed it! I was able to fly a mission and turn in the combat report!

PatrickAWlson
Posted
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.

  • Like 1
Posted

I had over 1000 mission reports. Is that unusual?

PatrickAWlson
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...