ERROR: Python AI for AI_1 crashed
Moderator: Oberlus
ERROR: Python AI for AI_1 crashed
Hello everybody,
when I try to start a new single player match it crashes with the error message "ERROR: Python AI for AI_1 crashed." What am I doing wrong or can adjust?
FO-Version: FreeOrion_v0.4.6_2016-09-16.49f9123_Win32_Setup
OS: Win 10
Thank you in advance
PS. sorry for my bad english!
when I try to start a new single player match it crashes with the error message "ERROR: Python AI for AI_1 crashed." What am I doing wrong or can adjust?
FO-Version: FreeOrion_v0.4.6_2016-09-16.49f9123_Win32_Setup
OS: Win 10
Thank you in advance
PS. sorry for my bad english!
Re: ERROR: Python AI for AI_1 crashed
As an important first source of information we need the log files FO created on your system. See here for instructions where the log files can be found on your system.
To be safe provide all the log files you find in there, freeorion.log, freeoriond.log and all the AI_XX.log files.
To be safe provide all the log files you find in there, freeorion.log, freeoriond.log and all the AI_XX.log files.
Re: ERROR: Python AI for AI_1 crashed
During this game I had only one AI. So there is only one respective log-file. But the error occurres also with multiple AI-players.
- Attachments
-
- freeoriond.log
- (3.68 KiB) Downloaded 128 times
-
- AI_1.log
- (3.71 KiB) Downloaded 144 times
-
- freeorion.log
- (8.77 KiB) Downloaded 130 times
Re: ERROR: Python AI for AI_1 crashed
Hm, the issue is quite obvious, according to this line in the AI error log:
...the AI process fails to create a required config file in your AppData directory tree. My first guess is that the special character "ä" in your user name might cause the issue - although I thought we caught all the locations where special characters in file paths caused problems.
Can you try and create an additional user on your system, with a username without any special characters, and try to launch a game under this new account?
If that doesn't fix it, there must be something amiss with the access permissions in you user profile directory. That folder should be writeable...
Code: Select all
19:15:50.633145 [error] AI : AI Config: default file is not present and not writable at location C:\Users\Benjamin Schäfer\AppData\Roaming\FreeOrion\AI\default\config.ini
2016-09-24
Can you try and create an additional user on your system, with a username without any special characters, and try to launch a game under this new account?
If that doesn't fix it, there must be something amiss with the access permissions in you user profile directory. That folder should be writeable...
Re: ERROR: Python AI for AI_1 crashed
Thank you very much!
Creating a new user without the character "ä" works. There was no error anymore.
Creating a new user without the character "ä" works. There was no error anymore.
- adrian_broher
- Programmer
- Posts: 1156
- Joined: Fri Mar 01, 2013 9:52 am
- Location: Germany
Re: ERROR: Python AI for AI_1 crashed
If you take a look into the stack trace you will see:Vezzra wrote:Code: Select all
19:15:50.633145 [error] AI : AI Config: default file is not present and not writable at location C:\Users\Benjamin Schäfer\AppData\Roaming\FreeOrion\AI\default\config.ini 2016-09-24
Code: Select all
C:\\Users\\Benjamin Sch\xc3\xa4fer\\AppData\\Roaming\\FreeOrion\\config.ini
The python open function determines if the path should be handed over to the operating system as dumb byte sequence or converted to the native filesystem encoding by passing either a python unicode string or a regular python string as path. We do the latter and should do the former. So adding something like
Code: Select all
f = open(unicode(path, 'utf-8'), 'r') // convert path to a unicode object and
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
- adrian_broher
- Programmer
- Posts: 1156
- Joined: Fri Mar 01, 2013 9:52 am
- Location: Germany
Re: ERROR: Python AI for AI_1 crashed
xkcd, one of the most unfunny net content I ever came across.EricF wrote:http://xkcd.com/1726/
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
- adrian_broher
- Programmer
- Posts: 1156
- Joined: Fri Mar 01, 2013 9:52 am
- Location: Germany
Re: ERROR: Python AI for AI_1 crashed
Should be fixed with 737d4a3c.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz