Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash at start after closing game and reopening. #460

Closed
cpeosphoros opened this issue Feb 2, 2016 · 2 comments
Closed

Crash at start after closing game and reopening. #460

cpeosphoros opened this issue Feb 2, 2016 · 2 comments
Labels
category:bug The Issue/PR describes or solves a perceived malfunction within the game.

Comments

@cpeosphoros
Copy link

More details here: http://www.freeorion.org/forum/viewtopic.php?f=28&t=9923.

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:

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've attached the config.xml file that caused the crash to the forum post.

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:

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

So, two related bugs:
1 - The options screen generating invalid code in config.xml.
2 - Config.xml not being correctly processed in statup with that keymap combination.

Unmodded build 2016-01-31.3040556

@Vezzra Vezzra added the category:bug The Issue/PR describes or solves a perceived malfunction within the game. label Feb 6, 2016
@Vezzra
Copy link
Member

Vezzra commented Feb 6, 2016

@geoffthemedio added a quick fix in 262ddac to avoid the crash, but the underlying problem hasn't been solved, so this issue remains open.

@geoffthemedio
Copy link
Member

Should be fixed.

@Vezzra Vezzra added this to the Next release milestone Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug The Issue/PR describes or solves a perceived malfunction within the game.
Projects
None yet
Development

No branches or pull requests

3 participants