Open RandyR99 opened 2 months ago
From a quick test I can't seem to reproduce the issue. How often does she crash? Are there any positions you can load in to the GUI that make her crash immediately?
Hi Adam.
It will crash every time when Patricia is about to be mated. I haven't tested the other way around. However, loading the near mate position in and starting from there does not lead to a crash. The only option I was setting was hash = 192. I had to go through a full game. I was using time controls of 15 min game and 10 sec increment. I will try to test outside of PicoChess to see if it's platform related. Perhaps the illegal move being returned is just a symptom of Patricia crashing, also.
Randy
On Thu, Sep 5, 2024, 12:21 a.m. Adam Kulju @.***> wrote:
From a quick test I can't seem to reproduce the issue. How often does she crash? Are there any positions you can load in to the GUI that make her crash immediately?
— Reply to this email directly, view it on GitHub https://github.com/Adam-Kulju/Patricia/issues/78#issuecomment-2330623918, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHXEKT2GW5Y6T7JNWFQUMTZU7S5ZAVCNFSM6AAAAABNVPGMLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQGYZDGOJRHA . You are receiving this because you authored the thread.Message ID: @.***>
I can't be certain that Patricia is actually crashing. I received that report from the user who initially reported the problem and he stated that Patricia had crashed in 'htop' - a resource viewer for Linux. However, I just tested on an x86_64 laptop running Linux Mint with Patricia compiled as of latest commits (and running in PicoChess) and it also failed with the invalid bestmove of a1a1, but Patricia is still showing in 'htop' so I don't think it crashed itself.
Here is the game up to the point of failure (Patricia is Black):
And the FEN:
r3kb1r/pp2Pp1p/1qbN4/2p1P1Bp/8/2P2N2/PP3P1P/R2Q1R1K b kq - 4 19
I'll next try to test outside of PicoChess.
Randy
I just tested in Arena (in Linux) and I am seeing the same issue. Here are the last 3 entries in the log (attached):
2024-09-05 11:47:28.950<--1:info multipv 1 depth 66 seldepth 24 score mate -6 nodes 44015631 nps 2626857 time 16756 pv g6h5 f1e1 f8e8 e1e5 e8e7 e5e7 h8g8 e7e8 g8h7 g2e4 h7h6 a7e3 2024-09-05 11:47:28.950<--1:bestmove a1a1 2024-09-05 11:47:28.9501---------> Arena:Illegal move!: "a1a1" (Feinpruefung) Arena_Patricia3.1.debug.zip
I should also mention that I compiled with g++ rather than clang++.
Randy
I wasn't able to get Patricia to crash, however I did find some pretty unexpected behavior when there is a low number of legal moves (it was sometimes printing "multipv 2" when there was one legal move etc). I will make sure to iron out all errors for next release, and I hope that will solve the problem!
Ok. Thanks Adam. We will test the next version when it's released.
On Tue, Sep 10, 2024, 2:16 p.m. Adam Kulju @.***> wrote:
I wasn't able to get Patricia to crash, however I did find some pretty unexpected behavior when there is a low number of legal moves (it was sometimes printing "multipv 2" when there was one legal move etc). I will make sure to iron out all errors for next release, and I hope that will solve the problem!
— Reply to this email directly, view it on GitHub https://github.com/Adam-Kulju/Patricia/issues/78#issuecomment-2341831906, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHXEKV36XX4EUZTMHESB7TZV5AQPAVCNFSM6AAAAABNVPGMLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBRHAZTCOJQGY . You are receiving this because you authored the thread.Message ID: @.***>
Hi.
I compiled version 3.1 for the Raspberry Pi for use with Picochess. When Patricia 3.1 is about to be mated it will return a best move of a1a1 which causes python-chess to crash. I only tested using UCI_Elo = 500. Using v3.0 at UCI_Elo = 1100 (which seemed to be playing much stronger than 1100 so I had to use Stockfish to get a mate) and there was no issue.
The info lines looked fine as Patricia was thinking, it's just best move was an illegal move.
Did something happen in v3.1? I hope you can help.
Randy