Game shutdown on pressing Numlock

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
MatGB
Creative Contributor
Posts: 3310
Joined: Fri Jun 28, 2013 11:45 pm

Game shutdown on pressing Numlock

#1 Post by MatGB »

Did the alt-tab out, numlock, alt-tab in workaround to get the number pad to work with the known SDL bug. Immediately I hit numlock in game, it shutdown, but the logs indicate it thought I'd told it to:

Code: Select all

2015-07-17 06:58:02.951260 [debug] Client : SitRepPanel::Update()
2015-07-17 06:58:03.048059 [debug] Client : DesignWnd::MainPanel::ReregisterDesigns
2015-07-17 06:58:03.069162 [debug] Client : (HumanClientFSM) PlayingGame.ResetToIntroMenu
2015-07-17 06:58:03.080996 [debug] Client : ClientNetworking::SetPlayerID: player id set to: -1
2015-07-17 06:58:03.081076 [debug] Client : (HumanClientFSM) ~PlayingTurn
2015-07-17 06:58:03.081090 [debug] Client : (HumanClientFSM) ~PlayingGame
2015-07-17 06:58:03.081102 [debug] Client : (HumanClientFSM) IntroMenu
2015-07-17 06:58:03.081113 [debug] Client : HumanClientApp::KillServer()
2015-07-17 06:58:03.081126 [debug] Client : Process::Kill
2015-07-17 06:58:03.081138 [debug] Client : Process::Kill found no m_impl
2015-07-17 06:58:03.081149 [debug] Client : Process::Kill calling RequestTermination()
2015-07-17 06:58:03.081160 [debug] Client : ClientNetworking::SetPlayerID: player id set to: -1
2015-07-17 06:58:03.081359 [debug] Client : (HumanClientFSM) ~IntroMenu

Code: Select all

2015-07-17 06:56:10.314811 [debug] Server :  ... have orders from empire id: 10
2015-07-17 06:56:10.314821 [debug] Server :  ... have orders from empire id: 11
2015-07-17 06:56:37.869210 [debug] Server : Server received message from player id: 1 of type Request New Object ID and size 8
2015-07-17 06:58:00.840396 [debug] Server : Server received message from player id: 1 of type Shut Down Server and size 8
2015-07-17 06:58:00.840455 [debug] Server : ServerApp::HandleShutdownMessage shutting down
2015-07-17 06:58:00.840471 [debug] Server : Initiating Exit (code 1 - error termination)
2015-07-17 06:58:00.840487 [debug] Server : ServerApp::CleanupAIs() telling AIs game is ending
2015-07-17 06:58:00.840788 [debug] Server : ServerApp::CleanupAIs() waiting 1 second for AI processes to clean up...
2015-07-17 06:58:01.840891 [debug] Server : ServerApp::CleanupAIs() killing 10 AI clients.
Compiled this morning from adc27a9 on Linux

Edit, just reloaded game and tested, turning numlock off does nothing in game, turning it on kills the app.

Edit2: I've gone into options and assigned the previously unassigned new quit game/quit to desktop shortcuts (to alt+q and ctrl+q), and that stops it from happening.

Vincele? Looks like something with your recent changes.
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

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

Re: Game shutdown on pressing Numlock

#2 Post by Geoff the Medio »

I'd guess that when numlock is pressed, SDL is generating a keypress event with a key that ends up mapped to the GGK_UNKNOWN enum, which is used to indicate "no mapped hotkey".

I'll try adding a GGK_INVALID enum, value -1, that can be used to set "no key" and should never match any actual input event...

User avatar
vincele
Space Dragon
Posts: 341
Joined: Sun Mar 23, 2014 6:10 pm

Re: Game shutdown on pressing Numlock

#3 Post by vincele »

Vincele? Looks like something with your recent changes.
Did you try without my changes ?
All the patches I'll provide for freeorion will be released under the GPL v2 or later license.
Let's unleash the dyson forest powa!

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Game shutdown on pressing Numlock

#4 Post by AndrewW »

Same thing here with: [build 2015-07-16.5195e60].

Normally just always keep NumLock on so wouldn't likely have noticed it.

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

Re: Game shutdown on pressing Numlock

#5 Post by Geoff the Medio »

Hopefully fixed, at least in default state... might need some additional tweaks for resetting back to none...

https://github.com/freeorion/freeorion/ ... 18d21629e4

Post Reply