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

[bug]Fast playout to the end exception #675

Open
xiaoyifang opened this issue Jan 2, 2024 · 3 comments
Open

[bug]Fast playout to the end exception #675

xiaoyifang opened this issue Jan 2, 2024 · 3 comments

Comments

@xiaoyifang
Copy link
Contributor

xiaoyifang commented Jan 2, 2024

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
Copy link
Owner

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

Repository owner deleted a comment from HackYardo Mar 24, 2024
@sanderland
Copy link
Owner

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

@xiaoyifang
Copy link
Contributor Author

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

,it can also work normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants