ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ChessGUI (current version) and JavaScript engines part I
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: General Topics Flat
View previous topic :: View next topic  
Author Message
Norbert Raimund Leisner



Joined: 20 May 2008
Posts: 1295
Location: Augsburg - Germany

PostPost subject: ChessGUI (current version) and JavaScript engines part I    Posted: Wed Aug 23, 2017 6:57 am Reply to topic Reply with quote

Hello,

ChessGUI http://www.chess.hylogic.de/ has obviously problems with JavaScript Universal Chess Interface + P4wn Chess https://sourceforge.net/projects/jsuci/ - UCI1

exe-file: JSUCI12.exe
commandline-parameters: p4wn_loader.js



Debug

id name p4wn, AKA 5k chess
id author Douglas Bagnall, ported to JSUCI by Edmund Moshammer
uciok
readyok
engine.js:31380: Uncaught TypeError: Cannot read property 'board' of undefined
p4wn_loader.js:644: Uncaught TypeError: Cannot read property 'findmove' of undefined


Point 4 in NextGame().
Point 7 in NextGame().
================ C ================
... busy ... ... please, wait ...
Now in GetRoundRobinPairing() at Time0000000006467099


Game Nr. 1 (RomiChessP3m64 <==*==> jsuci_1_2) in Tournament ""
RomiChessP3m64
jsuci_1_2
Pairings_Openings: nGameNr = 1 of 4, nOpening = 1, Round = 1.1 at Time0000000006467115

Now in GetInitialFen() at Time0000000006467115

Now in Chess960_ID_To_Fen(nID=518) at Time0000000006467115

nMainPrefs in GetInitialFen() = 25, nInitialFenNr = 518, nPgnEpdNr = 0, nCurrRound = 1, nCurrRndGame = 1
Cycle = 1
Now in DisplayGameSchedule() at Time0000000006467115

Now in DisplayRoundRobinTable() at Time0000000006467115

Got a RoundRobin pairing !
... now you can relax ...
Now in GetInitialFen() at Time0000000006467115

Now in Chess960_ID_To_Fen(nID=518) at Time0000000006467115

nMainPrefs in GetInitialFen() = 25, nInitialFenNr = 518, nPgnEpdNr = 0, nCurrRound = 1, nCurrRndGame = 1
================ EngineAgainstEngine(0000000006467161) =======================================
==== LaunchChessEngine(RomiChessP3m64) ====
Processor is Intel.
Computer Speed = 3 MHz.
Total Physical Memory = 3794 MB.
Total Available Memory = 1664 MB.
Total Available Disk Space = 69831 MB.
=======================================================
Now in EraseInputBuffers(RomiChessP3m64).
Now in MakeTimeControlString() at Time0000000006467567

GetPrivateProfileString() no value for CommandLine in RomiChessP3m64 (C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\GUI_DATA\ChsGUI_Eng.TXT), nResult = 0, OutStr =
LaunchChessEngine(RomiChessP3m64) EngineCode = 562949953421440
LaunchChessEngine() succeeded for RomiChessP3m64
RomiChessP3m64 is playing white.
==== LaunchChessEngine(jsuci_1_2) ====
Processor is Intel.
Computer Speed = 3 MHz.
Total Physical Memory = 3794 MB.
Total Available Memory = 1663 MB.
Total Available Disk Space = 69831 MB.
=======================================================
Now in EraseInputBuffers(jsuci_1_2).
Now in MakeTimeControlString() at Time0000000006468004

LaunchChessEngine(jsuci_1_2) EngineCode = 571746046443536
LaunchChessEngine() succeeded for jsuci_1_2
jsuci_1_2 is playing black.
==============================================================================
EngineAgainstEngine() succeeded for RomiChessP3m64
EngineAgainstEngine() succeeded for jsuci_1_2
Now in MakeTimeControlString() at Time0000000006468035

================ SendFirstCommands(jsuci_1_2), nProtocol = 1, EngineCodeHex = 00000010 ====
SendFirstCommands UCI
SendToEng2Time 0000000006468035 : Eng02 (jsuci_1_2) -> uci
.
Scheduling StartEngineTimerEvent() for jsuci_1_2 at 0000000006468035.
Waiting for jsuci_1_2.
Eng02 (jsuci_1_2) <- id name p4wn, AKA 5k chess
nChessVariant(1) = 1, id name.
Cancelling StartEngineTimerEvent() for jsuci_1_2 at 0000000006468051.
Eng02 (jsuci_1_2) <- id author Douglas Bagnall, ported to JSUCI by Edmund Moshammer
Eng02 (jsuci_1_2) <- uciok
nChessVariant(1) = 1, uciok.
SendToEng2Time 0000000006468066 : Eng02 (jsuci_1_2) -> isready
.
Scheduling StartEngineTimerEvent() for jsuci_1_2 at 0000000006468066.
Waiting for jsuci_1_2.
Eng02 (jsuci_1_2) <- readyok
nChessVariant(1) = 1, readyok.
Cancelling StartEngineTimerEvent() for jsuci_1_2 at 0000000006468082.
nChessVariant(1) = 1.
================ SendFirstCommands(RomiChessP3m64), nProtocol = 2, EngineCodeHex = 00000080 ====
SendToEng1Time 0000000006468082 : Eng01 (RomiChessP3m64) -> xboard
.
SendFirstCommands WB2
SendToEng1Time 0000000006468097 : Eng01 (RomiChessP3m64) -> protover 2
.
Scheduling StartEngineTimerEvent() for RomiChessP3m64 at 0000000006468097.
Waiting for RomiChessP3m64.
Eng01 (RomiChessP3m64) <- This is RomiChess by Michael J Sherwin
Eng01 (RomiChessP3m64) <- Version P3m 64 bit -- 19/Aug/2017
Eng01 (RomiChessP3m64) <- Copyright 2005 Michael J Sherwin
Eng01 (RomiChessP3m64) <- feature analyze=1
SendToEng1Time 0000000006468113 : Eng01 (RomiChessP3m64) -> accepted analyze
.
Eng01 (RomiChessP3m64) <- feature setboard=1
SendToEng1Time 0000000006468113 : Eng01 (RomiChessP3m64) -> accepted setboard
.
Eng01 (RomiChessP3m64) <- feature done=1
Cancelling StartEngineTimerEvent() for RomiChessP3m64 at 0000000006468113.
SendToEng1Time 0000000006468129 : Eng01 (RomiChessP3m64) -> accepted done
.
Now in StartGame() at Time0000000006468129

Now in GUI_StabilityCheck() at Time0000000006468129
ChessGUI 0.245 has been running for 0 days 00 hrs 02 mins 38 secs
Longest run of ChessGUI 0.245 so far was 0 days 00 hrs 02 mins 38 secs
Longest ChessGUI run ever was 0 days 00 hrs 02 mins 38 secs (ChessGUI 0.245)
LaunchChessEngine() succeeded for TimeLagEngine
SendToEng9Time 0000000006468129 : Eng09 (TimeLagEngine) -> uci
isready
.
nMainPrefs=0, nPrefs=126976, nExclusions=131072, nExtraPrefs=0, nCodeEng1=562949953421440, nCodeEng2=571746046443536

GetPrivateProfileString() no value for GUI_Colors in Preferences (C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr =
GUI_BoardColors1=13033702 12093031 16777215 16777215 13033702 4825161 15395562 16777215
TimeControl: 40/120:40/120:40/120
Timing: TimeControl: 40/120:40/120:40/120
========================== StartGame(Total Available Memory = 1616 MB) ==========================.
Now in MakeTimeControlString() at Time0000000006468129

Now in MakeTimeControlString() at Time0000000006468129

Now in StartGame() for RomiChessP3m64
SendToEng1Time 0000000006468129 : Eng01 (RomiChessP3m64) -> new
.
nChessVariant(0) = 1.
Now in SendTimeControlString() at Time0000000006468144

SideToMove=w, nInterval = 1, nmoves = 0, imoves = 0, movestogo = 40, wtime = 120000, btime = 120000, winc = 0, binc = 0, PlyPtr = 0, TimeLeft = 120000 ms
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> level 40 2 0
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> post
hard
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> easy
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> force
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> computer
.
Now in StartGame() for jsuci_1_2
====================== Beginning of Book moves ========================
Now in SendBookMoves() at Time0000000006468144

GetPrivateProfileString() no value for PgnOpening00000001 in (C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\TOURNAMENTS\.e1e), nResult = 0, OutStr =
GetPrivateProfileString() no value for BookLine00000001 in (C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\TOURNAMENTS\.e1e), nResult = 0, OutStr =
Pgn Opening PgnOpening00000001 not found.
Book Line BookLine00000001 not found.
====================== End of Book moves ========================
SideToMove=w, nInterval = 1, nmoves = 0, imoves = 0, movestogo = 40, wtime = 120000, btime = 120000, winc = 0, binc = 0, PlyPtr = 0, TimeLeft = 120000 ms
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> black
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> time 12000
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> otim 12000
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> white
.
SendToEng1Time 0000000006468160 : Eng01 (RomiChessP3m64) -> go
.
Scheduling GameMoveTimerEvent() for RomiChessP3m64 at 0000000006468160.
============================================ Tactics and Strategies from here on ================================================
Time Overstep Margin = 0 ms
Brain work may now start. Good Luck !
==========================================================================================
Eng01 (RomiChessP3m64) <- Pipe01Time 0000000006468191
Exact move time for RomiChessP3m64
Eng01 (RomiChessP3m64) <- Error (unknown command): accepted
Eng01 (RomiChessP3m64) <- Error (unknown command): accepted
Eng01 (RomiChessP3m64) <- Error (unknown command): accepted
Eng01 (RomiChessP3m64) <- Error (unknown command): post
Eng01 (RomiChessP3m64) <- Error (unknown command): computer
Eng01 (RomiChessP3m64) <- Error (unknown command): black
Eng01 (RomiChessP3m64) <- Error (unknown command): white
Eng01 (RomiChessP3m64) <- move e2e4
Cancelling GameMoveTimerEvent() for RomiChessP3m64 at 0000000006468191.
==========================================================================================================================
Current position (Ply 0) : rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 = rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
System time lag per move = 0 milliseconds
Eng01 (RomiChessP3m64) thought for 31 milliseconds, time left = 119969 milliseconds
Almost in ParcelMove(from RomiChessP3m64) at Time0000000006468191

DetailsOfMove(move e2e4 = e2-e4 = e4 = e2-e4) -> nSide = White, nPieceNr = Pawn, nFrom = E2, nTo = E4, nCapturedNr = NoPiece, promo = NoPiece, ep = A1, nFlags = 40, (Move = 40000000220E0101 == 4611686018998731009)

e2-e4
Now in MakeChessMove() at Time0000000006468191, nChsProgNr = 0, ChsStrct->PlyPtr = 0

Now in MakeChessMove() at Time0000000006468191, nChsProgNr = 1, ChsStrct->PlyPtr = 0

Now in DrawGraphics() at Time0000000006468191

Now in DrawGraphics() at Time0000000006468207

EcoStr = e2e4 e4 => 1.e4

Memory: 43 MB + 7 MB (1611 MB free)
CPU Load: 82% + 15%
Total Time Elapsed = 00:00:00
MoveNr. = 0, SideToMove = black.
50 moves to 50-Move-Rule.
Last Move = e2e4 = e4 = e2-e4
Now in CheckForEndOfGame() at Time0000000006468222

Now in MakeTimeControlString() at Time0000000006468222

Now in ParcelMove() at Time0000000006468222

SendToEng2Time 0000000006468222 : Eng02 (jsuci_1_2) -> position startpos moves e2e4
.
Now in SendTimeControlString() at Time0000000006468222

SideToMove=b, nInterval = 1, nmoves = 0, imoves = 0, movestogo = 40, wtime = 120000, btime = 120000, winc = 0, binc = 0, PlyPtr = 1, TimeLeft = 120000 ms
White's TimeLeft = 119969 ms, hiding 31 ms from Black movestogo 40

SendToEng2Time 0000000006468222 : Eng02 (jsuci_1_2) -> go movestogo 40 wtime 120000 btime 120000
.
SideToMove = Black.
SendToEng9Time 0000000006468222 : Eng09 (TimeLagEngine) -> LagTo 0000000006468222
.
==========================================================================================================================
Scheduling GameMoveTimerEvent() for jsuci_1_2 at 0000000006468222.
Eng02 (jsuci_1_2) <- engine.js:31380: Uncaught TypeError: Cannot read property 'board' of undefined
Eng02 (jsuci_1_2) <- p4wn_loader.js:644: Uncaught TypeError: Cannot read property 'findmove' of undefined
WM_TimeLagEngine() says TimeLagReturn 0000000006468253 SystemLag LagTo 0000000006468222 0000000006468253
WM_TimeLagEngine() : To = 31 ms, From = 0 ms, Total = 31 ms
GameMoveTimeout of jsuci_1_2 at Time0000000006589232.
jsuci_1_2 loses on time in GameMoveTimeout().
Eng02 (jsuci_1_2) max. time lag= 0 milliseconds
Eng02 (jsuci_1_2) has been thinking for 121010 milliseconds, time left = -121011 milliseconds
Now in CheckForEndOfGame() at Time0000000006589232

Now in EndTheGame() at Time0000000006589232

1-0
.

1-0
SendToEng2Time 0000000006589263 : Eng02 (jsuci_1_2) -> stop
.
SendToEng2Time 0000000006589263 : Eng02 (jsuci_1_2) -> quit
.
SendToEng1Time 0000000006589263 : Eng01 (RomiChessP3m64) -> quit
.
Now in KillEngines() at Time0000000006590277

Now in PutResultInSchedule() at Time0000000006590277

Now in SavePGN() at Time0000000006590277

1-0
.

Now in PutResultInStringList() at Time0000000006590309

Appending C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\OUTPUT\_e1e_TmpTable.txt to C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\OUTPUT\_e1e_Table.txt at Time0000000006590309.
Now in EndChildProcess() at Time0000000006590309 to kill jsuci_1_2.

!!! Disk Space !!! (73223467008 Bytes free)
DestroyChildProcess(Eng02 = jsuci_1_2) is already dead.
Now in EndChildProcess() at Time0000000006590324 to kill RomiChessP3m64.

!!! Disk Space !!! (73223467008 Bytes free)
DestroyChildProcess(Eng01 = RomiChessP3m64) is already dead.
Now in EndChildProcess() at Time0000000006590324 to kill TimeLagEngine.

!!! Disk Space !!! (73223467008 Bytes free)
SendToEng9Time 0000000006590418 : Eng09 (TimeLagEngine) -> stop
.
SendToEng9Time 0000000006590418 : Eng09 (TimeLagEngine) -> quit
.
DestroyChildProcess(Eng09 = TimeLagEngine), soft termination, trial 1.
Now in EraseInputBuffers(TimeLagEngine).
Now in EraseInputBuffers(jsuci_1_2).
Now in EraseInputBuffers(RomiChessP3m64).
Now in SaveDeleteDebugFiles() at Time0000000006594427

but JSUCI runs normally with Arena www.playwitharena.com

[White "RomiChessP3m64"]
[Black "Jsuci_1_2"]
[Result "1-0"]
[TimeControl "40/120:40/300:40/300"]
[Opening "Skandinavische Verteidigung"]
[ECO "B01"]
[Variation "2...Qxd5 3.Nc3 Qd8"]
[Termination "normal"]
[PlyCount "53"]
[WhiteType "program"]
[BlackType "program"]

1. e4 d5 2. exd5 Qxd5 3. Nc3 Qd8 4. d4 c6 5. Bc4 Nd7 6. Nf3 Nb6 7. Bb3 Be6 8. Bxe6 fxe6 9. Qe2 Qd6 10. Ne4 Qd5 11. O-O Qc4 12. Re1 Qxe2 13. Rxe2 g6 14. Nc5 Nd5 15. Nxb7 Rb8 16. Nc5 Bh6 17. c4 Bxc1 18. cxd5 Bxb2 19. Rb1 exd5 20. Rexb2 Rc8 21. Rb8 Rxb8 22. Rxb8+ Kf7 23. Ng5+ Kf6 24. Nce6 Kf5 25. h3 Nf6 26. Rb3 Rf8 27. Rf3+ 1-0

[White "Jsuci_1_2"]
[Black "RomiChessP3m64"]
[Result "0-1"]
[TimeControl "40/120:40/300:40/300"]
[Opening "Läuferspiel"]
[ECO "C24"]
[Variation "Berlin Verteidigung"]
[Termination "normal"]
[PlyCount "56"]
[WhiteType "program"]
[BlackType "program"]

1. e4 e5 2. Bc4 Nf6 3. Ne2 Nxe4 4. d3 Nf6 5. Bg5 d5 6. Bxf6 gxf6 7. Bb3 Be6 8. Ba4+ c6 9. c3 Nd7 10. O-O Bd6 11. d4 Qb6 12. Nd2 exd4 13. Bb3 dxc3 14. bxc3 Qc7 15. Nd4 Bxh2+ 16. Kh1 O-O-O 17. g3 Bxg3 18. Nxe6 fxe6 19. fxg3 Qxg3 20. Bxd5 Qh4+ 21. Kg1 exd5 22. Rf2 Rhg8+ 23. Rg2 Rxg2+ 24. Kxg2 Rg8+ 25. Kf3 Qh3+ 26. Kf2 Rg2+ 27. Ke1 Qh4+ 28. Kf1 Qf2+ 0-1

Very strange, isn´t it?

Best wishes,
Norbert
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
ChessGUI (current version) and JavaScript engines part I Norbert Raimund Leisner Wed Aug 23, 2017 6:57 am
      Re: ChessGUI (current version) and JavaScript engines part I Norbert Raimund Leisner Wed Aug 23, 2017 7:07 am
      Re: ChessGUI (current version) and JavaScript engines part I Ray Banks Wed Aug 23, 2017 7:44 am
      Re: ChessGUI (current version) and JavaScript engines part I Norbert Raimund Leisner Wed Aug 23, 2017 7:51 am
      Re: ChessGUI (current version) and JavaScript engines part I H.G.Muller Wed Aug 23, 2017 8:20 am
      Re: ChessGUI (current version) and JavaScript engines part I Michael Sherwin Wed Aug 23, 2017 11:58 am
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: General Topics

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads