GithubHelp home page GithubHelp logo

Comments (6)

IbaiBuR avatar IbaiBuR commented on June 3, 2024

I also get this kind of warnings / errors which also seem to be related to the usage of the experience file:

ERROR:asyncio:Exception in callback Protocol._line_received('info string ...BlackHole.exp')
handle: <Handle Protocol._line_received('info string ...BlackHole.exp')>
Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/ibaibur/.local/lib/python3.10/site-packages/chess/engine.py", line 1093, in _line_received
    self.command._line_received(self, line)
  File "/home/ibaibur/.local/lib/python3.10/site-packages/chess/engine.py", line 1384, in _line_received
    assert self.state in [CommandState.ACTIVE, CommandState.CANCELLING]
AssertionError

from botli.

Torom avatar Torom commented on June 3, 2024

python-chess warns that the engine produces unexpected output.
Looking at the output it is also kind of strange, these are all legal moves from the starting position with their respective evaluation, I guess the engine does this to inform about the information from the experience file?

On which engine is your "mod" based?

I also get this kind of warnings / errors which also seem to be related to the usage of the experience file:

ERROR:asyncio:Exception in callback Protocol._line_received('info string ...BlackHole.exp')
handle: <Handle Protocol._line_received('info string ...BlackHole.exp')>
Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/ibaibur/.local/lib/python3.10/site-packages/chess/engine.py", line 1093, in _line_received
    self.command._line_received(self, line)
  File "/home/ibaibur/.local/lib/python3.10/site-packages/chess/engine.py", line 1384, in _line_received
    assert self.state in [CommandState.ACTIVE, CommandState.CANCELLING]
AssertionError

No, this error is not related to that. It occurs at occasional intervals and does not seem to have any negative effects.

from botli.

IbaiBuR avatar IbaiBuR commented on June 3, 2024

python-chess warns that the engine produces unexpected output. Looking at the output it is also kind of strange, these are all legal moves from the starting position with their respective evaluation, I guess the engine does this to inform about the information from the experience file?

On which engine is your "mod" based?

It is based on latest Stockfish-Dev.

Yes, the engine sends the moves to the GUI / cli or whatever to give some information about the available moves in the experience file, obviously, the NPS, TBHits and time are sent as 0 because the engine does not really "think". This is the part of code that sends the info:

                      //Provide some info to the GUI about available exp moves
                      int expCount = 0;
                      for (auto it = quality.rbegin(); it != quality.rend(); ++it)
                      {
                          ++expCount;

                          sync_cout
                              << " info "
                              << " depth "    << it->first->depth
                              << " seldepth " << it->first->depth
                              << " multipv 1"
                              << " score "    << UCI::value(it->first->value)
                              << " nodes "    << expCount
                              << " nps 0"
                              << " tbhits 0"
                              << " time 0"
                              << " pv " << UCI::move(it->first->move, rootPos.is_chess960())
                              << sync_endl;
                      }

I tried to hardcode it and send different values to avoid the warnings but it did not work either.

If the assertionerror does not have negative effects then no problem. The warnings dont seem to have negative effects either but it is a bit annoying that they pop up continously in the terminal.

Thanks for answering. If you need more information just tell me.

from botli.

Torom avatar Torom commented on June 3, 2024

It is based on latest Stockfish-Dev.

Sorry I didn't expect you to have actually added the experience file yourself.

What I wonder, why is there a space before info an info output normally looks like this: info depth 4 seldepth 2 multipv 1 score cp 51 nodes 110 nps 55000 hashfull 0 tbhits 0 time 2 pv e2e4. Maybe this is already part of the problem?

from botli.

IbaiBuR avatar IbaiBuR commented on June 3, 2024

That could be the problem...

Let me remove it, recompile, and try...

Maybe that eliminates the warnings.

from botli.

IbaiBuR avatar IbaiBuR commented on June 3, 2024

You were right!

Thanks a lot!

from botli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.