calcitem / Sanmill

Sanmill is an open-source, UCI-like Mill/Morris/Merrills/Mühle/Malom (and its variants) program with CUI, Flutter GUI and Qt GUI, sharing and freely distributing the code, tools and data needed to deliver this mill game. We do this because we are convinced that open software and open data are key ingredients to make rapid progress.
https://play.google.com/store/apps/details?id=com.calcitem.sanmill
GNU General Public License v3.0
143 stars 21 forks source link

前端通过channel向后端发送消息有时会收不到 #70

Closed calcitem closed 3 years ago

calcitem commented 3 years ago

前端通过channel向后端发送消息有时会收不到

I/flutter (13305): [movesSinceLastRemove] posAfterLastRemove = 0
I/flutter (13305): moves =  (2,4) (2,6) (2,2) (2,3) (2,8)
I/flutter (13305): posFenStr: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8)
I/flutter (13305): send: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8)
I/flutter (13305): send: go
D/MillEngine(13305): UCI::loop recived command: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8)
D/MillEngine(13305): UCI::loop start recive command ...
D/MillEngine(13305): UCI::loop recived command: go
D/MillEngine(13305): UCI::loop start recive command ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1015 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): println: bestmove (2,1)
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): response: bestmove (2,1)
I/flutter (13305): Computer: (2,1)
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): position: command = (2,1)
I/flutter (13305): Change sideToMove to @
I/flutter (13305): Score: 53 : 152 : 11 total: 216
I/flutter (13305): 24.537037037037038% : 70.37037037037037% : 5.092592592592593%
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): recorder.movesCount = 6
I/flutter (13305): [movesSinceLastRemove] posAfterLastRemove = 0
I/flutter (13305): moves =  (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): posFenStr: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
I/flutter (13305): send: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
I/flutter (13305): send: go
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 896 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 9 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1 line
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 2457 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 16 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 2468 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 9 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1 line
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 2470 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 23 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 2 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 274 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): response: 
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): send: stop
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1 line
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): recorder.movesCount = 6
I/flutter (13305): [movesSinceLastRemove] posAfterLastRemove = 0
I/flutter (13305): moves =  (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
I/flutter (13305): posFenStr: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
I/flutter (13305): send: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
I/flutter (13305): send: go
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1795 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 375 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 15 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 2461 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 12 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1515 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 956 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 14 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1 line
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1485 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): response: 
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 1 line
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): send: stop
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 5 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): recorder.movesCount = 6
I/flutter (13305): [movesSinceLastRemove] posAfterLastRemove = 0
I/flutter (13305): moves =  (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
I/flutter (13305): posFenStr: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
I/flutter (13305): send: position fen ********/********/******** b p p 0 12 0 12 0 0 1 moves (2,4) (2,6) (2,2) (2,3) (2,8) (2,1)
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/flutter (13305): send: go
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 737 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 40 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 3 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
I/chatty  (13305): uid=10173(com.calcitem.sanmill) identical 3 lines
D/MillEngine(13305): UCI::loop recived no command, sleep 1s ...
calcitem commented 3 years ago
bool CommandChannel::pushCommand(const char *cmd)
{
    return commandQueue->write(cmd);
}

bool CommandChannel::popupCommand(char *buffer)
{
    return commandQueue->read(buffer);
}