jromang / picochess

GNU General Public License v3.0
74 stars 54 forks source link

Console in 0.9n #268

Closed masterofamn closed 6 years ago

masterofamn commented 6 years ago

Hi,

I'm trying to start v0.9n in console-mode on a x86_64 machine[1]. This hangs somehow, the console never comes up. Here's the debug-log:

2018-02-05 22:12:44.439 DEBUG picochess - main: #################### PicoChess v09n #################### 2018-02-05 22:12:44.440 DEBUG picochess - main: startup parameters: {'engine': None, 'engine_level': None, 'engine_remote': None, 'engine_remote_server': None, 'engine_remote_user': None, 'engine_remote_pass': '', 'engine_remote_key': '', 'engine_remote_home': '', 'dgt_port': None, 'book': 'books/h-varied.bin', 'time': '5 0', 'disable_revelation_leds': False, 'log_level': 'debug', 'log_file': 'picochess.log', 'pgn_file': 'games.pgn', 'pgn_user': None, 'pgn_elo': '-', 'web_server_port': None, 'email': None, 'smtp_server': None, 'smtp_user': None, 'smtp_pass': '', 'smtp_encryption': False, 'smtp_from': 'no-reply@picochess.org', 'mailgun_key': '', 'beep_config': 'some', 'beep_some_level': 3, 'user_voice': None, 'computer_voice': None, 'speed_voice': 2, 'enable_setpieces_voice': False, 'enable_update': False, 'enable_update_reboot': False, 'disable_confirm_message': False, 'version': None, 'dgtpi': False, 'ponder_interval': 3, 'language': 'en', 'enable_console': True, 'enable_capital_letters': False, 'disable_et': False, 'slow_slide': 0, 'disable_short_notation': False} 2018-02-05 22:12:44.442 INFO display - run: msg_queue ready 2018-02-05 22:12:44.443 INFO picotalker - run: msg_queue ready 2018-02-05 22:12:44.443 DEBUG picochess - main: starting PicoChess in console mode 2018-02-05 22:12:44.444 INFO dispatcher - run: dispatch_queue ready 2018-02-05 22:12:44.444 INFO pgn - run: msg_queue ready 2018-02-05 22:12:44.712 DEBUG engine - startup: setting engine with options {'Skill Level': '20'} 2018-02-05 22:12:44.713 DEBUG engine - startup: Loaded engine [Stockfish 040118 64] 2018-02-05 22:12:44.713 DEBUG engine - startup: Supported options [OptionMap({'Debug Log File': Option(name='Debug Log File', type='string', default='', min=None, max=None, var=[]), 'Contempt': Option(name='Contempt', type='spin', default=0, min=-100, max=100, var=[]), 'Threads': Option(name='Threads', type='spin', default=1, min=1, max=512, var=[]), 'Hash': Option(name='Hash', type='spin', default=16, min=1, max=131072, var=[]), 'Clear Hash': Option(name='Clear Hash', type='button', default='', min=None, max=None, var=[]), 'Ponder': Option(name='Ponder', type='check', default=False, min=None, max=None, var=[]), 'MultiPV': Option(name='MultiPV', type='spin', default=1, min=1, max=500, var=[]), 'Skill Level': Option(name='Skill Level', type='spin', default=20, min=0, max=20, var=[]), 'Move Overhead': Option(name='Move Overhead', type='spin', default=100, min=0, max=5000, var=[]), 'nodestime': Option(name='nodestime', type='spin', default=0, min=0, max=10000, var=[]), 'UCI_Chess960': Option(name='UCI_Chess960', type='check', default=False, min=None, max=None, var=[]), 'SyzygyPath': Option(name='SyzygyPath', type='string', default='', min=None, max=None, var=[]), 'SyzygyProbeDepth': Option(name='SyzygyProbeDepth', type='spin', default=1, min=1, max=100, var=[]), 'Syzygy50MoveRule': Option(name='Syzygy50MoveRule', type='check', default=True, min=None, max=None, var=[]), 'SyzygyProbeLimit': Option(name='SyzygyProbeLimit', type='spin', default=6, min=0, max=6, var=[])})] 2018-02-05 22:12:44.726 DEBUG display - run: received message from msg_queue: MSG_STARTUP_INFO 2018-02-05 22:12:44.733 DEBUG display - run: received message from msg_queue: MSG_SYSTEM_INFO 2018-02-05 22:12:44.739 DEBUG display - run: received message from msg_queue: MSG_ENGINE_STARTUP 2018-02-05 22:12:44.745 DEBUG picotalker - run: announcing PICOCHESS 2018-02-05 22:12:44.751 INFO picochess - main: evt_queue ready 2018-02-05 22:12:54.751 DEBUG utilities - get_location: trying to get IP and location... 2018-02-05 22:12:56.595 DEBUG display - run: received message from msg_queue: MSG_IP_INFO

Here it sits forever, waiting for events. My ini is blank or (for testing) contains only console True.

Can anyone reproduce this?

[1] Linux 4.14.15-1-ARCH, Python 3.6.4, all pip requirements up to date.

LocutusOfPenguin commented 6 years ago

what do y expect to happen? If y start picochess without webserver, how can y see a console?!

masterofamn commented 6 years ago

what do I expect to happen? Once upon a time (i.e. version 0.81 for instance), the console-prompt was shown in the terminal window picochess was started in. I see, nowadays it's of course web-based and moved into the cloud together with all our souls.... [yeah, right - I'm slow at getting used to changes ;-)]

Just kidding of course - I noticed the new behavior myself in the meantime when poking around in the code. I want to port my ICS interface to the new versions and obviously, there have been quite some changes I need to adopt to. The "simple" text-based console was VERY handy for coding/debugging on a "normal" PC without board and no graphical overhead.

Anyways, not a bug but a feature - so feel free to close/delete/move this post and sorry for the noise.

cheers

Jack

LocutusOfPenguin commented 6 years ago

Hi Jack,

i guessed already its based on old releases. Yes, its handy for all us linux guys...But i tried to simulate it on the webserver 1:1 ...y just need to start abit more ;-)

I'll close this issue now.