SparkFish-a new open-source strong uci chess engine

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Lester
Posts: 9
Joined: Wed Nov 18, 2026 4:45 pm
Full name: Charles Everett

Re: SparkFish-a new open-source strong uci chess engine

Post by Lester »

Sylwy wrote: ↑Sat Nov 21, 2026 5:47 pm :roll:

Unfortunately, V4 is unstable—it crashes after a few moves.
Thanks for reporting this! I haven't been able to reproduce any crashes locally yet, so a few quick details would really help me track this down before the Nov 26 release:
​1. Which compiler and flags did you use to build it (MSVC, MinGW/GCC, or Clang)?
​2. Which GUI / match manager are you testing with, and what are your Threads, Hash, and Ponder settings?
​3. If possible, could you share the PGN or UCI debug log right before the crash?
User avatar
Sylwy
Posts: 5530
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: SparkFish-a new open-source strong uci chess engine

Post by Sylwy »

Lester wrote: ↑Sat Nov 21, 2026 7:25 pm
Sylwy wrote: ↑Sat Nov 21, 2026 5:47 pm :roll:

Unfortunately, V4 is unstable—it crashes after a few moves.
Thanks for reporting this! I haven't been able to reproduce any crashes locally yet, so a few quick details would really help me track this down before the Nov 26 release:
​1. Which compiler and flags did you use to build it (MSVC, MinGW/GCC, or Clang)?
​2. Which GUI / match manager are you testing with, and what are your Threads, Hash, and Ponder settings?
​3. If possible, could you share the PGN or UCI debug log right before the crash?
1.-MinGW/GCC;
2.-Arena 3.5.1-1thread-hash=258MB-ponder off;
3.-I will reinstall the engine for a log file.

I reinstalled it. That’s about it. :

Image

Image

Image

2026-11-22 10:46:09.584*1*------------------Starting engine 1 SparkFish 0.4_x64-AVX@------------------
2026-11-22 10:46:09.584*1*Configured Engine 1 Type: UCI
2026-11-22 10:46:09.584*1*Engine 1 dir: D:\engines\SparkFish 4.0_x64-AVX2
2026-11-22 10:46:09.584*1*Engine 1 commandline: "D:\engines\SparkFish 4.0_x64-AVX2\SparkFish.exe"
2026-11-22 10:46:09.693*1*Child Process Prio Adj: PID 1180 conhost.exe
2026-11-22 10:46:09.693*1*Engine 1 ProcessID: 7360
2026-11-22 10:46:09.693*1*Engine 1 Prio:32 ThreadPrio:0
2026-11-22 10:46:09.725-->1:uci
2026-11-22 10:46:09.974<--1:SparkFish 4.0 by SparkFish Team
2026-11-22 10:46:09.974<--1:info string NNUE: "SparkfishV4.nnue" loaded and verified (69,278,980 bytes)
2026-11-22 10:46:09.974<--1:id name SparkFish 4.0
2026-11-22 10:46:09.974<--1:id author SparkFish Team
2026-11-22 10:46:09.974<--1:option name UCI_Elo type spin default 2721 min 1350 max 3200
2026-11-22 10:46:09.974<--1:option name Hash type spin default 64 min 1 max 262144
2026-11-22 10:46:09.974<--1:option name Threads type spin default 1 min 1 max 512
2026-11-22 10:46:09.974<--1:option name NumaPolicy type combo default System var None var System var BindNode var Interleave
2026-11-22 10:46:09.974<--1:option name MultiPV type spin default 1 min 1 max 16
2026-11-22 10:46:09.974<--1:option name Style type combo default Normal var Normal var Aggressive var Solid
2026-11-22 10:46:09.974<--1:option name Contempt type spin default 0 min -100 max 100
2026-11-22 10:46:09.974<--1:option name Ponder type check default true
2026-11-22 10:46:09.974<--1:option name UCI_ShowWDL type check default true
2026-11-22 10:46:09.974<--1:option name Move Overhead type spin default 200 min 0 max 5000
2026-11-22 10:46:09.974<--1:option name BookPath type string default <empty>
2026-11-22 10:46:09.974<--1:option name EvalFile type string default SparkfishV4.nnue
2026-11-22 10:46:09.974<--1:uciok
2026-11-22 10:46:09.974-->1:setoption name Hash value 256
2026-11-22 10:46:09.990*1*Child Process Prio Adj: PID 1180 conhost.exe
2026-11-22 10:46:09.990-->1:isready
2026-11-22 10:46:10.084<--1:info string NNUE file: "SparkfishV4.nnue" loaded and verified (69,278,980 bytes)
2026-11-22 10:46:10.084<--1:readyok
2026-11-22 10:47:10.521*1*Start calc, move no: 1
2026-11-22 10:47:10.521-->1:ucinewgame
2026-11-22 10:47:10.521-->1:isready
2026-11-22 10:47:10.568<--1:info string NNUE file: "SparkfishV4.nnue" loaded and verified (69,278,980 bytes)
2026-11-22 10:47:10.568<--1:readyok
2026-11-22 10:47:10.583-->1:position startpos moves e2e4
2026-11-22 10:47:10.583-->1:go wtime 242000 btime 240000 winc 2000 binc 2000
2026-11-22 10:47:10.583<--1:info depth 1 seldepth 3 multipv 1 score cp -31 wdl 361 211 428 nodes 23 nps 23000 hashfull 0 time 1 pv d7d5
2026-11-22 10:47:10.583<--1:info depth 2 seldepth 4 multipv 1 score cp -28 wdl 364 212 424 nodes 158 nps 158000 hashfull 0 time 1 pv e7e5 g1f3
2026-11-22 10:47:10.583<--1:info depth 3 seldepth 4 multipv 1 score cp -32 wdl 360 211 429 nodes 378 nps 378000 hashfull 0 time 1 pv d7d5 e4d5 d8d5
2026-11-22 10:47:10.583<--1:info depth 4 seldepth 8 multipv 1 score cp -30 wdl 362 211 427 nodes 1114 nps 557000 hashfull 0 time 2 pv c7c5 g1f3 b8c6 d2d4
2026-11-22 10:47:10.583<--1:info depth 5 seldepth 8 multipv 1 score cp -30 wdl 362 211 427 nodes 1483 nps 741500 hashfull 0 time 2 pv c7c5 g1f3 b8c6 d2d4 c5d4
2026-11-22 10:47:10.583<--1:info depth 6 seldepth 9 multipv 1 score cp -30 wdl 362 211 427 nodes 1975 nps 658333 hashfull 0 time 3 pv c7c5 g1f3 b8c6 d2d4 c5d4 f3d4
2026-11-22 10:47:10.583<--1:info depth 7 seldepth 11 multipv 1 score cp -36 wdl 355 212 433 nodes 3514 nps 702800 hashfull 0 time 5 pv c7c5 g1f3 b8c6 d2d4 c5d4 f3d4 g8f6
2026-11-22 10:47:10.599<--1:info depth 8 seldepth 12 multipv 1 score cp -27 wdl 365 212 423 nodes 5631 nps 703875 hashfull 0 time 8 pv c7c5 g1f3 b8c6 b1c3 g8f6 f1b5 e7e6 b5c6
2026-11-22 10:47:10.599<--1:info depth 9 seldepth 14 multipv 1 score cp -25 wdl 367 212 421 nodes 13215 nps 629285 hashfull 1 time 21 pv e7e5 g1f3 b8c6 b1c3 f8c5 f1c4 g8f6 d2d3 e8g8
2026-11-22 10:47:10.614<--1:info depth 10 seldepth 15 multipv 1 score cp -46 wdl 345 210 445 nodes 20406 nps 618363 hashfull 2 time 33 pv e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 d4c6 d7c6 d1d8 e8d8 f2f3
2026-11-22 10:47:10.646<--1:info depth 11 seldepth 22 multipv 1 score cp -24 wdl 368 212 420 nodes 39273 nps 595045 hashfull 3 time 66 pv e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 d4c6 b7c6 d1d4 d7d5 b1c3 d5e4 d4a4 c8d7
2026-11-22 10:47:10.677<--1:info depth 12 seldepth 22 multipv 1 score cp -29 wdl 363 211 426 nodes 56511 nps 607645 hashfull 3 time 93 pv e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 d4c6 b7c6 f1d3 d7d5 e4d5 c6d5 e1g1
2026-11-22 10:47:10.724<--1:info depth 13 seldepth 25 multipv 1 score cp -32 wdl 360 211 429 nodes 85667 nps 607567 hashfull 3 time 141 pv e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 d4c6 b7c6 f1d3 d7d5 e4d5 c6d5 e1g1 f8e7 d3b5 c8d7 b5d7 d8d7
2026-11-22 10:47:10.927<--1:info depth 14 seldepth 27 multipv 1 score cp -26 wdl 366 212 422 nodes 213086 nps 607082 hashfull 4 time 351 pv e7e5 g1f3 b8c6 b1c3 g8f6 f1b5 f8c5 d2d3 e8g8 c3a4 c5e7 b5c6 d7c6 f3e5 e7b4 c2c3
2026-11-22 10:47:11.302<--1:info depth 15 seldepth 27 multipv 1 score cp -33 wdl 359 211 430 nodes 441082 nps 604221 hashfull 10 time 730 pv e7e5 g1f3 g8f6 d2d4 f6e4 f1d3 d7d5 f3e5 f8d6 b1c3 e4c3 b2c3 e8g8 e1g1 c7c5
2026-11-22 10:47:11.646<--1:info depth 16 seldepth 27 multipv 1 score cp -36 wdl 355 212 433 nodes 641049 nps 601923 hashfull 12 time 1065 pv e7e5 g1f3 g8f6 d2d4 f6e4 f1d3 d7d5 f3e5 b8d7 e5d7 c8d7 e1g1 f8e7 b1d2 e4f6 f1e1 e8g8 d2f3
2026-11-22 10:47:13.208<--1:info depth 17 seldepth 30 multipv 1 score cp -28 wdl 364 212 424 nodes 1573564 nps 599452 hashfull 41 time 2625 pv e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 f8d6 d1e2 d6e7 e1g1 b8c6 f1e1 e8g8 b1c3 c8g4 c1g5 f8e8
2026-11-22 10:47:14.005<--1:info depth 18 seldepth 33 multipv 1 score cp -32 wdl 360 211 429 nodes 2061732 nps 602669 hashfull 58 time 3421 pv e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 c7c5 c2c3 c5d4 c3d4 f8d6 d1e2 d6e7 b1c3 e8g8 e1g1 b8c6 c1g5 c8g4
2026-11-22 10:47:15.083<--1:info depth 19 seldepth 33 multipv 1 score cp -29 wdl 363 211 426 nodes 2710127 nps 601849 hashfull 75 time 4503 pv e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 c7c5 c2c3 c5d4 c3d4 f8d6 d1e2 d8e7 b1c3 e7e2 d3e2 e8g8 e1g1 f8e8 c1g5 b8c6
2026-11-22 10:47:16.645<--1:info depth 20 seldepth 33 multipv 1 score cp -29 wdl 363 211 426 nodes 3660553 nps 603454 hashfull 108 time 6066 pv e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 c7c5 c2c3 c5d4 c3d4 f8d6 d1e2 d8e7 b1c3 e7e2 d3e2 e8g8 e1g1 f8e8 c1g5 b8c6
2026-11-22 10:47:16.645<--1:bestmove e7e6 ponder d2d4
2026-11-22 10:47:16.645*1*Found move:e7-e6
2026-11-22 10:47:54.443*1*Start calc, move no: 3
2026-11-22 10:47:54.443-->1:position startpos moves e2e4 e7e6 g1f3
2026-11-22 10:47:54.443-->1:go wtime 206438 btime 235943 winc 2000 binc 2000
2026-11-22 10:51:52.287-->1:stop
Lester
Posts: 9
Joined: Wed Nov 18, 2026 4:45 pm
Full name: Charles Everett

Re: SparkFish-a new open-source strong uci chess engine

Post by Lester »

Sylwy wrote: ↑Sun Nov 22, 2026 9:42 am
Lester wrote: ↑Sat Nov 21, 2026 7:25 pm
Sylwy wrote: ↑Sat Nov 21, 2026 5:47 pm :roll:

Unfortunately, V4 is unstable—it crashes after a few moves.
Thanks for reporting this! I haven't been able to reproduce any crashes locally yet, so a few quick details would really help me track this down before the Nov 26 release:
​1. Which compiler and flags did you use to build it (MSVC, MinGW/GCC, or Clang)?
​2. Which GUI / match manager are you testing with, and what are your Threads, Hash, and Ponder settings?
​3. If possible, could you share the PGN or UCI debug log right before the crash?
1.-MinGW/GCC;
2.-Arena 3.5.1-1thread-hash=258MB-ponder off;
3.-I will reinstall the engine for a log file.

I reinstalled it. That’s about it. :

Image

Image

Image

2026-11-22 10:46:09.584*1*------------------Starting engine 1 SparkFish 0.4_x64-AVX@------------------
2026-11-22 10:46:09.584*1*Configured Engine 1 Type: UCI
2026-11-22 10:46:09.584*1*Engine 1 dir: D:\engines\SparkFish 4.0_x64-AVX2
2026-11-22 10:46:09.584*1*Engine 1 commandline: "D:\engines\SparkFish 4.0_x64-AVX2\SparkFish.exe"
2026-11-22 10:46:09.693*1*Child Process Prio Adj: PID 1180 conhost.exe
2026-11-22 10:46:09.693*1*Engine 1 ProcessID: 7360
2026-11-22 10:46:09.693*1*Engine 1 Prio:32 ThreadPrio:0
2026-11-22 10:46:09.725-->1:uci
2026-11-22 10:46:09.974<--1:SparkFish 4.0 by SparkFish Team
2026-11-22 10:46:09.974<--1:info string NNUE: "SparkfishV4.nnue" loaded and verified (69,278,980 bytes)
2026-11-22 10:46:09.974<--1:id name SparkFish 4.0
2026-11-22 10:46:09.974<--1:id author SparkFish Team
2026-11-22 10:46:09.974<--1:option name UCI_Elo type spin default 2721 min 1350 max 3200
2026-11-22 10:46:09.974<--1:option name Hash type spin default 64 min 1 max 262144
2026-11-22 10:46:09.974<--1:option name Threads type spin default 1 min 1 max 512
2026-11-22 10:46:09.974<--1:option name NumaPolicy type combo default System var None var System var BindNode var Interleave
2026-11-22 10:46:09.974<--1:option name MultiPV type spin default 1 min 1 max 16
2026-11-22 10:46:09.974<--1:option name Style type combo default Normal var Normal var Aggressive var Solid
2026-11-22 10:46:09.974<--1:option name Contempt type spin default 0 min -100 max 100
2026-11-22 10:46:09.974<--1:option name Ponder type check default true
2026-11-22 10:46:09.974<--1:option name UCI_ShowWDL type check default true
2026-11-22 10:46:09.974<--1:option name Move Overhead type spin default 200 min 0 max 5000
2026-11-22 10:46:09.974<--1:option name BookPath type string default <empty>
2026-11-22 10:46:09.974<--1:option name EvalFile type string default SparkfishV4.nnue
2026-11-22 10:46:09.974<--1:uciok
2026-11-22 10:46:09.974-->1:setoption name Hash value 256
2026-11-22 10:46:09.990*1*Child Process Prio Adj: PID 1180 conhost.exe
2026-11-22 10:46:09.990-->1:isready
2026-11-22 10:46:10.084<--1:info string NNUE file: "SparkfishV4.nnue" loaded and verified (69,278,980 bytes)
2026-11-22 10:46:10.084<--1:readyok
2026-11-22 10:47:10.521*1*Start calc, move no: 1
2026-11-22 10:47:10.521-->1:ucinewgame
2026-11-22 10:47:10.521-->1:isready
2026-11-22 10:47:10.568<--1:info string NNUE file: "SparkfishV4.nnue" loaded and verified (69,278,980 bytes)
2026-11-22 10:47:10.568<--1:readyok
2026-11-22 10:47:10.583-->1:position startpos moves e2e4
2026-11-22 10:47:10.583-->1:go wtime 242000 btime 240000 winc 2000 binc 2000
2026-11-22 10:47:10.583<--1:info depth 1 seldepth 3 multipv 1 score cp -31 wdl 361 211 428 nodes 23 nps 23000 hashfull 0 time 1 pv d7d5
2026-11-22 10:47:10.583<--1:info depth 2 seldepth 4 multipv 1 score cp -28 wdl 364 212 424 nodes 158 nps 158000 hashfull 0 time 1 pv e7e5 g1f3
2026-11-22 10:47:10.583<--1:info depth 3 seldepth 4 multipv 1 score cp -32 wdl 360 211 429 nodes 378 nps 378000 hashfull 0 time 1 pv d7d5 e4d5 d8d5
2026-11-22 10:47:10.583<--1:info depth 4 seldepth 8 multipv 1 score cp -30 wdl 362 211 427 nodes 1114 nps 557000 hashfull 0 time 2 pv c7c5 g1f3 b8c6 d2d4
2026-11-22 10:47:10.583<--1:info depth 5 seldepth 8 multipv 1 score cp -30 wdl 362 211 427 nodes 1483 nps 741500 hashfull 0 time 2 pv c7c5 g1f3 b8c6 d2d4 c5d4
2026-11-22 10:47:10.583<--1:info depth 6 seldepth 9 multipv 1 score cp -30 wdl 362 211 427 nodes 1975 nps 658333 hashfull 0 time 3 pv c7c5 g1f3 b8c6 d2d4 c5d4 f3d4
2026-11-22 10:47:10.583<--1:info depth 7 seldepth 11 multipv 1 score cp -36 wdl 355 212 433 nodes 3514 nps 702800 hashfull 0 time 5 pv c7c5 g1f3 b8c6 d2d4 c5d4 f3d4 g8f6
2026-11-22 10:47:10.599<--1:info depth 8 seldepth 12 multipv 1 score cp -27 wdl 365 212 423 nodes 5631 nps 703875 hashfull 0 time 8 pv c7c5 g1f3 b8c6 b1c3 g8f6 f1b5 e7e6 b5c6
2026-11-22 10:47:10.599<--1:info depth 9 seldepth 14 multipv 1 score cp -25 wdl 367 212 421 nodes 13215 nps 629285 hashfull 1 time 21 pv e7e5 g1f3 b8c6 b1c3 f8c5 f1c4 g8f6 d2d3 e8g8
2026-11-22 10:47:10.614<--1:info depth 10 seldepth 15 multipv 1 score cp -46 wdl 345 210 445 nodes 20406 nps 618363 hashfull 2 time 33 pv e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 d4c6 d7c6 d1d8 e8d8 f2f3
2026-11-22 10:47:10.646<--1:info depth 11 seldepth 22 multipv 1 score cp -24 wdl 368 212 420 nodes 39273 nps 595045 hashfull 3 time 66 pv e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 d4c6 b7c6 d1d4 d7d5 b1c3 d5e4 d4a4 c8d7
2026-11-22 10:47:10.677<--1:info depth 12 seldepth 22 multipv 1 score cp -29 wdl 363 211 426 nodes 56511 nps 607645 hashfull 3 time 93 pv e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 d4c6 b7c6 f1d3 d7d5 e4d5 c6d5 e1g1
2026-11-22 10:47:10.724<--1:info depth 13 seldepth 25 multipv 1 score cp -32 wdl 360 211 429 nodes 85667 nps 607567 hashfull 3 time 141 pv e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 d4c6 b7c6 f1d3 d7d5 e4d5 c6d5 e1g1 f8e7 d3b5 c8d7 b5d7 d8d7
2026-11-22 10:47:10.927<--1:info depth 14 seldepth 27 multipv 1 score cp -26 wdl 366 212 422 nodes 213086 nps 607082 hashfull 4 time 351 pv e7e5 g1f3 b8c6 b1c3 g8f6 f1b5 f8c5 d2d3 e8g8 c3a4 c5e7 b5c6 d7c6 f3e5 e7b4 c2c3
2026-11-22 10:47:11.302<--1:info depth 15 seldepth 27 multipv 1 score cp -33 wdl 359 211 430 nodes 441082 nps 604221 hashfull 10 time 730 pv e7e5 g1f3 g8f6 d2d4 f6e4 f1d3 d7d5 f3e5 f8d6 b1c3 e4c3 b2c3 e8g8 e1g1 c7c5
2026-11-22 10:47:11.646<--1:info depth 16 seldepth 27 multipv 1 score cp -36 wdl 355 212 433 nodes 641049 nps 601923 hashfull 12 time 1065 pv e7e5 g1f3 g8f6 d2d4 f6e4 f1d3 d7d5 f3e5 b8d7 e5d7 c8d7 e1g1 f8e7 b1d2 e4f6 f1e1 e8g8 d2f3
2026-11-22 10:47:13.208<--1:info depth 17 seldepth 30 multipv 1 score cp -28 wdl 364 212 424 nodes 1573564 nps 599452 hashfull 41 time 2625 pv e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 f8d6 d1e2 d6e7 e1g1 b8c6 f1e1 e8g8 b1c3 c8g4 c1g5 f8e8
2026-11-22 10:47:14.005<--1:info depth 18 seldepth 33 multipv 1 score cp -32 wdl 360 211 429 nodes 2061732 nps 602669 hashfull 58 time 3421 pv e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 c7c5 c2c3 c5d4 c3d4 f8d6 d1e2 d6e7 b1c3 e8g8 e1g1 b8c6 c1g5 c8g4
2026-11-22 10:47:15.083<--1:info depth 19 seldepth 33 multipv 1 score cp -29 wdl 363 211 426 nodes 2710127 nps 601849 hashfull 75 time 4503 pv e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 c7c5 c2c3 c5d4 c3d4 f8d6 d1e2 d8e7 b1c3 e7e2 d3e2 e8g8 e1g1 f8e8 c1g5 b8c6
2026-11-22 10:47:16.645<--1:info depth 20 seldepth 33 multipv 1 score cp -29 wdl 363 211 426 nodes 3660553 nps 603454 hashfull 108 time 6066 pv e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 c7c5 c2c3 c5d4 c3d4 f8d6 d1e2 d8e7 b1c3 e7e2 d3e2 e8g8 e1g1 f8e8 c1g5 b8c6
2026-11-22 10:47:16.645<--1:bestmove e7e6 ponder d2d4
2026-11-22 10:47:16.645*1*Found move:e7-e6
2026-11-22 10:47:54.443*1*Start calc, move no: 3
2026-11-22 10:47:54.443-->1:position startpos moves e2e4 e7e6 g1f3
2026-11-22 10:47:54.443-->1:go wtime 206438 btime 235943 winc 2000 binc 2000
2026-11-22 10:51:52.287-->1:stop
Thanks a lot for the details, Sylwy! That immediately point the bug: nnue.hpp used strictly 32-byte aligned AVX2 loads/stores (_mm256_load_si256 / _mm256_store_si256), which works under MSVC but can trigger alignment crashes under Windows MinGW/GCC worker threads.

I'm switching them to unaligned _mm256_loadu_si256 / _mm256_storeu_si256 . I have' uploaded the fix to GitHub so you can test the updated build—really appreciate your help catching this!