Page 1 of 1

errors showing up, should I be concerned?

Posted: Thu Nov 23, 2017 3:46 pm
by godel
error in "assign_military_fleets_to_systems": "Unable to find key in unordered_map."
Waiting for Other Players
Begin Turn 107
Saving...
Saved 1086257 bytes to file: C:\Users\Sean\AppData\Roaming\FreeOrion\save\auto\FreeOrion_Sean_mine_0107_20171123_074043.sav
AI_4: AI_Error: AI script error in "calculate_priorities": "Unable to find key in unordered_map."
AI_4: AI_Error: AI script error in "assign_military_fleets_to_systems": "Unable to find key in unordered_map."
Waiting for Other Players
Begin Turn 108
Saving...
Saved 1098552 bytes to file: C:\Users\Sean\AppData\Roaming\FreeOrion\save\auto\FreeOrion_Sean_mine_0108_20171123_074056.sav
AI_4: AI_Error: AI script error in "calculate_priorities": "Unable to find key in unordered_map."
AI_4: AI_Error: AI script error in "assign_military_fleets_to_systems": "Unable to find key in unordered_map."
Waiting for Other Players
Begin Turn 109
Saving...
Saved 1108022 bytes to file: C:\Users\Sean\AppData\Roaming\FreeOrion\save\auto\FreeOrion_Sean_mine_0109_20171123_074111.sav
AI_4: AI_Error: AI script error in "calculate_priorities": "Unable to find key in unordered_map."
AI_4: AI_Error: AI script error in "assign_military_fleets_to_systems": "Unable to find key in unordered_map."

Re: errors showing up, should I be concerned?

Posted: Thu Nov 23, 2017 4:05 pm
by Vezzra
That's definitely a bug in the AI code that needs to be dealt with. Can you create a bug report/issue on github?

Re: errors showing up, should I be concerned?

Posted: Thu Nov 23, 2017 5:16 pm
by Dilvish
The one from assign_military_fleets_to_systems I am familiar with, and have some understanding of the problem and am working on it, but the one from priorities doesn't seem familiar-- please be sure to post the respective AI log file (and a save game if you have it still), and also if you could mention if that AI had already been defeated at that point. Thanks.

Re: errors showing up, should I be concerned?

Posted: Fri Nov 24, 2017 4:11 am
by godel
The game goes on, and is not presently showing such.
And is playable even with such.
But I have seen red errors before, so it is just a matter of time.
If I get them, how do I access the AI files and the other files you want?

Re: errors showing up, should I be concerned?

Posted: Fri Nov 24, 2017 4:26 am
by alleryn
godel wrote:how do I access the AI files and the other files you want?
I'm fairly sure the AI logs are the files in
C:\Users\<username>\AppData\Roaming\FreeOrion

(on my windows machine this is the location),
e.g. C:\Users\<username>\AppData\Roaming\FreeOrion\AI_1.log

Not totally certain though.

Re: errors showing up, should I be concerned?

Posted: Fri Nov 24, 2017 4:28 am
by godel
Thanks!
Yes I am using win 7.
Next time it happens I will check here.
I am going away to Loscon for the extended weekend.

Re: errors showing up, should I be concerned?

Posted: Sat Dec 02, 2017 9:47 am
by godel
i got one!
C:\Users\Sean\AppData\Roaming\FreeOrion\save\auto\FreeOrion_Sean_mine_0061_20171202_014403.sav
AI_1: AI_Error: AI script error in "calculate_priorities": "Unable to find key in unordered_map."
AI_1: AI_Error: AI script error in "assign_military_fleets_to_systems": "Unable to find key in unordered_map."
Waiting for Other Players
Begin Turn 62
Saving...

next post I will have the error or ai files.

Re: errors showing up, should I be concerned?

Posted: Sat Dec 02, 2017 9:59 am
by godel
This is a self extracting compressed file of AI logs.
Please get back to me if you need more files or if this does not work.
The extension exe is not allowed.
I will put together a non self extraction file.

also sent the save file.

Used WinRar to create that file.

Re: errors showing up, should I be concerned?

Posted: Sun Dec 03, 2017 7:54 pm
by godel
I hope to get notification when this is noticed as I am not playing the game so to keep the situation where it can be further dissected.

Re: errors showing up, should I be concerned?

Posted: Sun Dec 03, 2017 10:36 pm
by Dilvish
godel wrote:I hope to get notification when this is noticed as I am not playing the game so to keep the situation where it can be further dissected.
This is noticed, but I am not likely to have much time to dig into this right away. Perhaps someone else might, but I'd recommend you just make another subfolder to store copies of the log files and a couple of the most recent corresponding savegame files. That way you can keep on playing your game but still be able to come back to this if we needed you to test something.

Thanks for posting the savegame and logs. I do expect we'll get this fixed prior to 0.4.8.

Re: errors showing up, should I be concerned?

Posted: Tue Mar 20, 2018 1:41 am
by godel
Situation:
36 stars/nodes, 3+me,
AI one and two defeated, AI 3 capital captured, and maybe all the worlds as well.