Re: [Scidvspc-users] Bug between ScidVsPC and Stockfish
Chess Database and Toolkit program
Brought to you by:
stevenaaus
|
From: Steve A <ste...@gm...> - 2016-04-23 00:26:31
|
I cant see the bug report, even after joining their bugzilla.
But if they are happy to have their app crash with very reasonable
input... i guess we should probably add a safeguard to handle it.
Stockfish does many unfriendly things in a way *no* other engine does.
This should handle it (also attached) and will probably get comitted,
but as my version of SF doesnt crash, i cant test it.
Index: tcl/tools/analysis.tcl
===================================================================
--- tcl/tools/analysis.tcl (revision 2523)
+++ tcl/tools/analysis.tcl (working copy)
@@ -3544,6 +3544,9 @@
append cmd { [ } " after $delay sendPosToEngineUCI $n $delay " { ] }
set analysis(after$n) [eval [list after idle $cmd]]
} else {
+ if {[sc_pos moves] == {}} {
+ return
+ }
### Dont send position if annotating and in book
if { $::annotate(Engine) == $n && ! $::wentOutOfBook &&
$::useAnalysisBook} {
bookAnnotation
On Fri, Apr 22, 2016 at 12:27 AM, Alex Wood <al...@un...> wrote:
> Hi,
>
> I configured ScidVsPC to use the Stockfish chess engine and noticed an
> issue where Stockfish would crash when asked to evaluate a position
> already in checkmate. This issues happens frequently if Stockfish is
> running during the checkmate in N training. Solving the puzzle results
> in a crash.
>
> I filed a bug on the issue at
> https://bugzilla.redhat.com/show_bug.cgi?id=1325013 but the maintainer
> attributed the issue to Stockfish being asked to evaluate an invalid
> move. Here's the engine log of an example crash:
>
> Engine: readyok
> Scid : position fen 4k3/8/4K2Q/8/8/8/8/8 w - - 3 8
> Scid : go infinite
> [...] Engine analysis here
> Scid : stop
> Scid : isready
> Engine: readyok
> Engine: bestmove h6h8
> Scid : position fen 4k3/8/4K2Q/8/8/8/8/8 w - - 3 8 moves h6h8
> Scid : go infinite
> Engine: info depth 0 score mate 0
> Scid : stop
> Scid : isready
> Engine: readyok
> Scid : position fen 4k3/8/4K2Q/8/8/8/8/8 w - - 3 8 moves h6h8
> Scid : go infinite
> Engine: bestmove (none)
> Note: Engine terminated without warning.
> Note: Engine terminated without exit code: "\"$standard_error\""
>
> Any thoughts or help would be greatly appreciated!
> ------------
> Regards,
> Alex
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Scidvspc-users mailing list
> Sci...@li...
> https://lists.sourceforge.net/lists/listinfo/scidvspc-users
|