Crash at start after closing game and reopening.

Describe your experience with the latest version of FreeOrion to help us improve it.

Moderator: Oberlus

Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Post Reply
Message
Author
User avatar
Cpeosphoros
Space Kraken
Posts: 124
Joined: Sat Jan 30, 2016 11:29 am

Crash at start after closing game and reopening.

#1 Post by Cpeosphoros »

I was playing, then some keymaps become irresponsive. I closed the game, intending to reopen and getting them responsive again. When trying to reopen, the game crashes, with this freeorion.log:

Code: Select all

2016-02-02 12:31:48.317538 [debug] Client : Logger initialized
2016-02-02 12:31:48.318039 [debug] Client : v0.4.5+ [build 2016-01-31.3040556] MSVC 2013
2016-02-02 12:31:48.318039 [debug] Client : GL Version String: 4.5.0 NVIDIA 359.00
2016-02-02 12:31:48.318540 [debug] Client : Dependency versions from headers:
2016-02-02 12:31:48.318540 [debug] Client : Boost: 1_58
2016-02-02 12:31:48.318540 [debug] Client : FreeType: 2.5.5
2016-02-02 12:31:48.318540 [debug] Client : PNG: 1.6.17
2016-02-02 12:31:48.318540 [debug] Client : Python: 2.7.9
2016-02-02 12:31:48.318540 [debug] Client : SDL: 2.0.3
2016-02-02 12:31:48.318540 [debug] Client : zlib: 1.2.8
2016-02-02 12:31:48.323547 [error] Client : chmain.cpp:271 : main() caught exception(GG::FlagSpec::UnknownString): Could not find flag corresponding to unknown string
Deleting config.xml solved the problem. I'm attaching the config.xml file that caused the crash.

Diffing that with the default config.xml and incrementally editing it, shows me that the problem is on line 59, which reads like this in the faulty file:

Code: Select all

<exit>MOD_KEY_LCTRL | MOD_KEY_RCTRL | MOD_KEY_LALT | MOD_KEY_RALT+GGK_RETURN</exit>
I didn't manually edit the file that caused the problem, that was auto-generated when I changed the keymap, via options screen, for exiting to desktop to Ctrl-Alt-Return, which, BTW, worked as expected.

Unmodded build 2016-01-31.3040556
Attachments
config.xml
(24.23 KiB) Downloaded 29 times
All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Crash at start after closing game and reopening.

#2 Post by Geoff the Medio »

I added a try-catch block to stop the crash, but it still doesn't properly interpret a hotkey option string with 3 or more modkeys specified. Don't have time at the moment to look into it in detail.

User avatar
Vezzra
Release Manager, Design
Posts: 6102
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: Crash at start after closing game and reopening.

#3 Post by Vezzra »

Cpeosphoros, can you open an issue on github? So we don't forget it...

User avatar
Cpeosphoros
Space Kraken
Posts: 124
Joined: Sat Jan 30, 2016 11:29 am

Re: Crash at start after closing game and reopening.

#4 Post by Cpeosphoros »

All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.

User avatar
Vezzra
Release Manager, Design
Posts: 6102
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: Crash at start after closing game and reopening.

#5 Post by Vezzra »

Thanks!

Post Reply