Skip to content

Position resets when setoption Threads is called #783

@melcebolla-afk

Description

@melcebolla-afk

Bug description

I've tried several setoption commands, and it only happens with Threads. When I change the number of threads, it resets the board position
"""
uci
id name Reckless 0.10.0-dev-f9038f73
id author Arseniy Surkov, Shahin M. Shahin, and Styx
option name Hash type spin default 16 min 1 max 262144
option name Threads type spin default 1 min 1 max 512
option name MoveOverhead type spin default 100 min 0 max 2000
option name Minimal type check default false
option name Clear Hash type button
option name UCI_Chess960 type check default false
option name MultiPV type spin default 1 min 1 max 256
option name SyzygyPath type string default
uciok
isready
readyok
position fen rnb2rk1/pp3ppp/8/q2pP3/3Nn3/P2B1P2/2Q1K1PP/R1B4R b - - 0 1
d
+---+---+---+---+---+---+---+---+
| r | n | b | | | r | k | | 8
+---+---+---+---+---+---+---+---+
| p | p | | | | p | p | p | 7
+---+---+---+---+---+---+---+---+
| | | | | | | | | 6
+---+---+---+---+---+---+---+---+
| q | | | p | P | | | | 5
+---+---+---+---+---+---+---+---+
| | | | N | n | | | | 4
+---+---+---+---+---+---+---+---+
| P | | | B | | P | | | 3
+---+---+---+---+---+---+---+---+
| | | Q | | K | | P | P | 2
+---+---+---+---+---+---+---+---+
| R | | B | | | | | R | 1
+---+---+---+---+---+---+---+---+
a b c d e f g h

FEN: rnb2rk1/pp3ppp/8/q2pP3/3Nn3/P2B1P2/2Q1K1PP/R1B4R b - - 0 1
setoption name Threads value 1
info string set Threads to 1
d
+---+---+---+---+---+---+---+---+
| r | n | b | q | k | b | n | r | 8
+---+---+---+---+---+---+---+---+
| p | p | p | p | p | p | p | p | 7
+---+---+---+---+---+---+---+---+
| | | | | | | | | 6
+---+---+---+---+---+---+---+---+
| | | | | | | | | 5
+---+---+---+---+---+---+---+---+
| | | | | | | | | 4
+---+---+---+---+---+---+---+---+
| | | | | | | | | 3
+---+---+---+---+---+---+---+---+
| P | P | P | P | P | P | P | P | 2
+---+---+---+---+---+---+---+---+
| R | N | B | Q | K | B | N | R | 1
+---+---+---+---+---+---+---+---+
a b c d e f g h

FEN: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
"""

Expected behavior

Like other UCI engines, the position should not reset when options are changed

Reproduction steps

See description

Operating system

Linux

Version

0.10.0-dev-f9038f73

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions