Comments (10)
Fixed in #520
from berserk.
Interesting, I haven't touched my UCI code in a long time. I'll take a look and get back to you.
from berserk.
I've been able to reproduce your issue.
I compiled these binaries using clang-17
within clang64 MSYS2. Compiling these natively in Windows with gcc-13 results in the issue going away. I don't have an explanation as to why, but I've re-uploaded the binaries.
Feel free to close this issue if you see the issue go away too.
from berserk.
I've been able to reproduce your issue.
I compiled these binaries using
clang-17
within clang64 MSYS2. Compiling these natively in Windows with gcc-13 results in the issue going away. I don't have an explanation as to why, but I've re-uploaded the binaries.Feel free to close this issue if you see the issue go away too.
Sorry Jay, nothing's changed.
BTW, version 11.1 does the same (as expected). And under a GUI such as Cute Chess the engine plays OK.
Here is another snippet how it is here:
uci
a
id name Berserk 12
id author Jay Honnold
option name Hash type spin default 16 min 2 max 131072
option name Threads type spin default 1 min 1 max 256
option name SyzygyPath type string default
option name MultiPV type spin default 1 min 1 max 256
option name Ponder type check default false
option name UCI_ShowWDL type check default true
option name UCI_Chess960 type check default false
option name MoveOverhead type spin default 300 min 100 max 10000
option name Contempt type spin default 0 min -100 max 100
option name EvalFile type string default
uciok
position startpos
a
go depth 15
a
info string time -1 start 1290566453 alloc 0 max 2147483647 depth 15 timeset 0 searchmoves 0
info depth 1 seldepth 1 multipv 1 score cp 52 wdl 164 825 11 nodes 24 nps 24000 hashfull 0 tbhits 0 time 1 pv d2d4
info depth 2 seldepth 2 multipv 1 score cp 75 wdl 271 723 6 nodes 47 nps 47000 hashfull 0 tbhits 0 time 1 pv d2d4 a7a6
info depth 3 seldepth 3 multipv 1 score cp 83 wdl 315 680 5 nodes 82 nps 82000 hashfull 0 tbhits 0 time 1 pv c2c4 a7a6
info depth 4 seldepth 4 multipv 1 score cp 58 wdl 187 804 9 nodes 137 nps 137000 hashfull 0 tbhits 0 time 1 pv c2c4 a7a6 a2a3
info depth 5 seldepth 5 multipv 1 score cp 92 wdl 367 629 4 nodes 397 nps 397000 hashfull 0 tbhits 0 time 1 pv e2e4
info depth 6 seldepth 6 multipv 1 score cp 85 wdl 327 669 4 nodes 704 nps 704000 hashfull 0 tbhits 0 time 1 pv e2e4 c7c5 g1f3 g7g6 d2d4
info depth 7 seldepth 8 multipv 1 score cp 53 wdl 167 822 11 nodes 2254 nps 2254000 hashfull 0 tbhits 0 time 1 pv d2d4 g8f6 g1f3 d7d5 c2c4 d5c4
info depth 8 seldepth 9 multipv 1 score cp 49 wdl 152 836 12 nodes 4123 nps 4123000 hashfull 1 tbhits 0 time 1 pv e2e4 c7c5 g1f3 e7e6 b1c3 b8c6 d2d4 c5d4 f3d4
info depth 9 seldepth 12 multipv 1 score cp 57 wdl 182 808 10 nodes 9309 nps 9309000 hashfull 3 tbhits 0 time 1 pv e2e4 e7e5 g1f3 g8f6 f3e5 f6e4
info depth 10 seldepth 12 multipv 1 score cp 53 wdl 169 820 11 nodes 13525 nps 901666 hashfull 5 tbhits 0 time 15 pv e2e4 c7c5 g1f3 e7e6 f1e2 b8c6 c2c3 g8f6 e4e5 f6d5 e1g1 f8e7
info depth 11 seldepth 15 multipv 1 score cp 47 wdl 146 841 13 nodes 28863 nps 1924200 hashfull 12 tbhits 0 time 15 pv e2e4 e7e6 d2d4 d7d5 b1d2 c7c5 e4d5 e6d5 g1f3 b8c6 f1b5 d8e7
info depth 12 seldepth 16 multipv 1 score cp 48 wdl 150 838 12 nodes 37668 nps 1215096 hashfull 15 tbhits 0 time 31 pv e2e4 e7e6 g1f3 d7d5 e4e5 c7c5 c2c3 b8c6 d2d4 d8b6 f1e2 c8d7 e1g1 c5d4 c3d4
info depth 13 seldepth 18 multipv 1 score cp 48 wdl 150 838 12 nodes 67931 nps 1445340 hashfull 25 tbhits 0 time 47 pv e2e4 e7e6 d2d4 d7d5 b1d2 c7c5 g1f3 g8f6 e4e5 f6d7 c2c3 b8c6 f1d3 f8e7 e1g1 c5d4
info depth 14 seldepth 22 multipv 1 score cp 45 wdl 139 848 13 nodes 104001 nps 1677435 hashfull 38 tbhits 0 time 62 pv e2e4 e7e6 d2d4 d7d5 e4e5 c7c5 c2c3 d8b6 g1f3 b8c6 f1e2 c8d7 e1g1 c5d4
info depth 15 seldepth 23 multipv 1 score cp 38 wdl 117 867 16 nodes 166982 nps 1795505 hashfull 60 tbhits 0 time 93 pv e2e4 e7e6 d2d4 d7d5 e4e5 c7c5 c2c3 d8a5 d4c5 a5c7 b2b4 c7e5 f1e2 e5c7 g1f3 g8f6
bestmove e2e4 ponder e7e6
So every time I type a command I have to type some character to make the engine execute it.
from berserk.
Are you using a special prompt? I've tested these binaries in Window Terminal, CMD, Git Bash, and MSYS2 clang64. I cannot create the above issue you're mentioning anymore.
from berserk.
Are you using a special prompt? I've tested these binaries in Window Terminal, CMD, Git Bash, and MSYS2 clang64. I cannot create the above issue you're mentioning anymore.
I'm afraid I don't know what you mean by special prompt. I started the engine under Windows File Manager and Total Commander and both did the same.
I have asked Ray to check if it is OK with him now.
Anyway, we could live with this issue for years (I have just noticed it exists at all), so no big deal. I may ask Shuffle author what he did to get rid of it.
from berserk.
I would appreciate that. Sorry for the issues.
from berserk.
This is what Arjun Basandrai, Shuffle author has written to me:
"In my case the error was caused by a line at the beginning of the uci loop that set the stdin buffer to NULL.
I see that in Berserk's code also, in uci.c on Line 286, (setbuf(stdin, NULL);) is added which must be causing the issue. Kindly ask the author to remove this line entirely and see if it fixes the issue."
I removed that line and it indeed helped!
from berserk.
I'll remove that line, but I don't think there is a need to update the binaries since they're okay within GUIs for now.
from berserk.
I'll remove that line, but I don't think there is a need to update the binaries since they're okay within GUIs for now.
That's fine with me.
from berserk.
Related Issues (20)
- Berserk NNUE Source HOT 1
- Berserk NNUE Bug HOT 3
- Segmentation Fault HOT 3
- Problem in Arena with "Time per move" HOT 2
- Detect mate with Eval? HOT 5
- Berserk-12-Official release (Windows_x64_avx2 binary). FRC/Chess960. GUI: Cutechess 1.2. Berserk blunders in one move to lose the games. Some examples. PGN HOT 3
- Error - Berserk 12 HOT 5
- Bug of making losing moves without calculation HOT 1
- OpenBench access HOT 2
- New berserk-NN to download HOT 2
- How to get stated with NNUE HOT 1
- compile error on arm64 aarch64 with gcc or clang on RaspBerry 4 HOT 1
- Please add ARMv9.2, SVE2, Dot Product and Neon support
- go nodes command doesnt give number of nodes close to requested HOT 3
- Can I train a separate eval network? HOT 4
- Bro how do i install this on droidfish on android HOT 1
- display of the selective depth when using "go movetime" and more HOT 1
- Sorting wining ply and 'drawn by threefold repetition' detection HOT 1
- Download of network during compilation fails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from berserk.