Joerg Oster wrote: ↑Fri Nov 01, 2024 1:04 pm
So this looks more like a problem of an empty string as a default option.
Better to use something like "empty" or the name of the eval file as default.
There is no default option at all for EvalFile
uci
id name Heimdall 1.1.1
id author Nocturn9x (see LICENSE)
option name HClear type button
option name TTClear type button
option name EvalFile type string
option name Ponder type check default false
option name UCI_Chess960 type check default false
option name EnableWeirdTCs type check default false
option name MultiPV type spin default 1 min 1 max 218
option name Threads type spin default 1 min 1 max 1024
option name Hash type spin default 64 min 1 max 33554432
option name MoveOverhead type spin default 0 min 0 max 30000
uciok
Arena plunks the text Unknown Value into a string option if the engine supplies no default option, and the Reset to defaults button is clicked. After Arena sets the option, Heimdall segfaults when trying to open a file named Unknown Value.
segfaults.nim(52) segfaultHandler
Error: unhandled exception: Could not access value because it is nil. [NilAccessDefect]
It's maybe uncouth for Arena to assign Unknown Value to a filename, but it's definitely a bug in Heimdall to segfault just because it was given an invalid file name. I suppose the best solution would be to use the internal net if an invalid file name is given.