FreeOrion

Forums for the FreeOrion project
It is currently Mon Dec 11, 2017 11:33 am

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Thu Nov 23, 2017 3:46 pm 
Offline
Dyson Forest

Joined: Tue Mar 24, 2015 12:58 am
Posts: 206
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."


Top
 Profile  
 
PostPosted: Thu Nov 23, 2017 4:05 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4284
Location: Sol III
That's definitely a bug in the AI code that needs to be dealt with. Can you create a bug report/issue on github?


Top
 Profile  
 
PostPosted: Thu Nov 23, 2017 5:16 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4390
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.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Fri Nov 24, 2017 4:11 am 
Offline
Dyson Forest

Joined: Tue Mar 24, 2015 12:58 am
Posts: 206
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?


Top
 Profile  
 
PostPosted: Fri Nov 24, 2017 4:26 am 
Offline
Space Squid
User avatar

Joined: Sun Nov 19, 2017 6:32 pm
Posts: 81
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.


Top
 Profile  
 
PostPosted: Fri Nov 24, 2017 4:28 am 
Offline
Dyson Forest

Joined: Tue Mar 24, 2015 12:58 am
Posts: 206
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.


Top
 Profile  
 
PostPosted: Sat Dec 02, 2017 9:47 am 
Offline
Dyson Forest

Joined: Tue Mar 24, 2015 12:58 am
Posts: 206
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.


Top
 Profile  
 
PostPosted: Sat Dec 02, 2017 9:59 am 
Offline
Dyson Forest

Joined: Tue Mar 24, 2015 12:58 am
Posts: 206
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.


Attachments:
File comment: the AI logs you requested.
FreeOrionerror non extracting.rar [2.76 MiB]
Downloaded 1 time
File comment: save file for error
save-20171202_011508.sav [245.86 KiB]
Downloaded 1 time
Top
 Profile  
 
PostPosted: Sun Dec 03, 2017 7:54 pm 
Offline
Dyson Forest

Joined: Tue Mar 24, 2015 12:58 am
Posts: 206
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.


Top
 Profile  
 
PostPosted: Sun Dec 03, 2017 10:36 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4390
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.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group