sanderland / katrain

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

[bug]`Fast playout to the end ` exception #675

Open xiaoyifang opened 8 months ago

xiaoyifang commented 8 months ago

Please read and fill in the appropriate template

I have a bug report

Steps: 1, press Fast playout to the end 2, while the node is still generating ,right click the new added node and choose ,expand . 3, error throw.

image


ERROR: Exception KeyError: SGFNode({'W': ['bm']})
  File "kivy\_clock.pyx", line 649, in kivy._clock.CyClockBase._process_events
  File "kivy\_clock.pyx", line 218, in kivy._clock.ClockEvent.tick
  File "G:\katrain\katrain\gui\widgets\movetree.py", line 228, in <lambda>
    lambda _dt: self.move_tree_canvas.draw_move_tree(self.current_node, self.insert_node), 0.1
  File "G:\katrain\katrain\gui\widgets\movetree.py", line 157, in draw_move_tree
    x = self.move_pos[parent][0] + 1

open the generated sgf file also can trigger this exception.

KaTrain_韩一洲 五段 vs Master play to the end.zip

I guess the action I took has damaged the sgf file in some way.

This can be reproduced with other sgf files.

sanderland commented 8 months ago

Confirmed, though I haven't figured out why yet.

sanderland commented 5 months ago

Hopefully resolved with 32b3ad9 Still not 100% sure what is causing it, probably the rapid removal/adding of shortcuts in fast playouts

xiaoyifang commented 5 months ago

I noticed that: If modify the sgf manually and removed all the KTSID node image

,it can also work normally.

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.