sanderland / katrain

Improve your Baduk skills by training with KataGo!
Other
1.58k stars 223 forks source link

Katrain v1.14.0 crashes #661

Open Azirine opened 11 months ago

Azirine commented 11 months ago

Bug report: Katrain v1.14.0 crashes

OS: MacOS 10.15.7

Steps to reproduce:

  1. Type 'katrain' in terminal (installed via pip)
  2. Load this game https://www.go4go.net/go/games/sgfview/111338
  3. Go to move 62
  4. Press 'space' (to start analysis)
  5. Click on M15 (suggested move)
  6. Katrain becomes unresponsive and spinning beachball appears

Note: Crashing behaviour is not limited to this game or this move, but this is an example I was able to reproduce. It tends to happen when clicking on an unexplored move while the engine is analysing. I reproduced this crash 3-4 times in a row before it stopped crashing again.

sanderland commented 11 months ago

Can you attach the sgf or link it on a medium without a login page?

Azirine commented 11 months ago

Can you attach the sgf or link it on a medium without a login page?

This is the file:

__go4go_20230927_Park-Junghwan_Xu-Haohong.txt

GitHub doesn't allow attaching sgfs so I changed the extension to .txt, just change it back to .sgf.

sanderland commented 11 months ago

Can not reproduce. Do you see any console output?

Azirine commented 11 months ago

After crashing 3-4 times, I cannot reproduce the crash again on demand (it still crashed at some random time with some other game). However, after doing the following, I was able to reproduce the crash again consistently:

  1. Quit Katrain
  2. Backup and then delete ~/.katrain/config.json
  3. Start Katrain again

The terminal output is as follows.

After launching katrain: xxxx-xx-xx xx:xx:xx+xxxx: Analyzing up to 12 positions at a time in parallel xxxx-xx-xx xx:xx:xx+xxxx: Started, ready to begin handling requests

After loading the game: [WARNING] Deprecated property "" of object "<kivy.uix.label.Label object at 0x1237e17e0>" was accessed, it will be removed in a future version

There is no output at the time of the crash. After killing katrain due to the crash: zsh: killed katrain

Edit: I got it to crash again with my custom config.json. I just kept repeating the 'steps to reproduce' in the first post, and after a few times without crashing it crashed again.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days.