I've stumbled upon a bug when reading a repertoire book where each line is represented as a game in a database: Tree explorer stops seeing the game in which a capture promotion happens, at some point (and way before the actual move).
Below is the sample PGN to reproduce:
Code: Select all
[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "Game #1"]
[Black "No capture or promotion"]
[Result "*"]
[EventDate "????.??.??"]
[ECO "C78"]
[PlyCount "32"]
1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 Bc5 7.a4 Rb8 8.Nxe5 Nxe5
9.d4 Bxd4 10.Qxd4 d6 11.f3 c5 12.Qf2 O-O 13.Rd1 c4 14.Ba2 b4 15.Bf4 Qc7 16.Nd2
Be6 *
[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "Game #2"]
[Black "dxc1=Q"]
[Result "*"]
[EventDate "????.??.??"]
[ECO "C78"]
[PlyCount "40"]
1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 Bc5 7.a4 Rb8 8.Nxe5 Nxe5
9.d4 Bxd4 10.Qxd4 d6 11.f3 c5 12.Qf2 O-O 13.Rd1 c4 14.Ba2 b4 15.Nd2 Be6 16.h3
Qc7 17.f4 c3 18.fxe5 cxd2 19.exf6 dxc1=Q 20.Rdxc1 Bxa2 *
[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "Game #3"]
[Black "d1=Q"]
[Result "*"]
[EventDate "????.??.??"]
[ECO "C78"]
[PlyCount "40"]
1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 Bc5 7.a4 Rb8 8.Nxe5 Nxe5
9.d4 Bxd4 10.Qxd4 d6 11.f3 c5 12.Qf2 O-O 13.Rd1 c4 14.Ba2 b4 15.Nd2 Be6 16.h3
Qc7 17.f4 c3 18.fxe5 cxd2 19.Rf1 d1=Q 20.Rxd1 Bxa2 *
When stepping move by move in any game, at move 9.d4 Tree explorer changes the number of games from 3 to 2. It briefly recovers, but on move 11.f3 it becomes completely blind to the Game #2; e.g. when moving to 18...cxd2 in Game #3, it only shows the 19.Rf1 from this game and can't see 19.exf6 from Game #2.
“Find position” also doesn't return Game #2 if searched from position where Tree explorer doesn't see it (e.g. searching from 9.d4; or searching from 16.h3, it returns only Game #3).
The issue seem to disappear if I delete capture promotion (and subsequent moves) from Game #2; i.e., Tree explorer shows the correct number of games in every branch when stepping through the moves in any of the games.
I've tried:
- reinstalling by downloading the new installer;
- deleting everything from ~/Library/Caches/hiarcs/ChessExplorerPro/SearchIndex;
- importing PGN into a new HCE database
but the issue persists.
I'm running HCE Pro 1.2.1 on Apple M1, macOS Sonoma 14.0 (Darwin air 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103 arm64)