Open mhdshl82 opened 4 months ago
Engine : C:\analyse-pgn-1.1/bin/engines/stockfish11_x86.exe
i know this program, although i was using the Linux version .. i had no problems with it, but maybe i can solve yours by saying the above line contains slash AND blackslash characters, i remember Windows using (only) '\' ?!
Engine : C:\analyse-pgn-1.1/bin/engines/stockfish11_x86.exe
i know this program, although i was using the Linux version .. i had no problems with it, but maybe i can solve yours by saying the above line contains slash AND blackslash characters, i remember Windows using (only) '\' ?!
thank you for replying i also tried the command with the current stockfish version C:\analyse-pgn-1.1>apgn -engine "C:\analyse-pgn-1.1\stockfish.exe" first.pgn
Engine : C:\analyse-pgn-1.1\stockfish.exe Threads : 1 Depth : 11 Color : A Openning Moves to Skip : 4
Analysing first.pgn please wait... CreateProcessA: 2 terminate called after throwing an instance of 'std::runtime_error' what(): Creating Child Process Failed so, it gives the same message and interrupts the process
@mhdshl82 can you paste the contents of that .pgn
file ? it may contain errors ..
it's best the author tells about that std::runtime_error
.. maybe you can run the program while using a debugger, like gdb
or lldb
(they're for Linux, i don't know modern Windows too much) .. such tool may show details regarding the point the error happens.
@mhdshl82 can you paste the contents of that
.pgn
file ? it may contain errors ..
sure, here is it. In fact, it is provided with the source code of the program in the folder pgn_samples
[Event "sample game"] [Site "chesstest.com"] [Date "2012.12.12"] [Round "?"] [White "player1"] [Black "player2"] [Result "1-0"] [TimeControl "180"] [WhiteElo "1342"] [BlackElo "1335"] [Termination "player1 won on time"]
seems OK, but such text better be placed in this web editor between backtick characters ( ` ) or three of such when including a multi-line-text like yours ..
@mhdshl82 I'm assuming you have tried the command below?
cd 'C:\analyse-pgn-1.1'
apgn pgn_samples\first.pgn
Another question is when you tried the commands you mentioned above (shown below), did you copied/moved the first.pgn
file first from the C:\analyse-pgn-1.1\pgn_samples
into the parent folder C:\analyse-pgn-1.1
?
apgn first.pgn
apgn -engine "C:\analyse-pgn-1.1\stockfish.exe" first.pgn
@mhdshl82 I'm assuming you have tried the command below?
cd 'C:\analyse-pgn-1.1' apgn pgn_samples\first.pgn
Another question is when you tried the commands you mentioned above (shown below), did you copied/moved the
first.pgn
file first from theC:\analyse-pgn-1.1\pgn_samples
into the parent folderC:\analyse-pgn-1.1
?apgn first.pgn
apgn -engine "C:\analyse-pgn-1.1\stockfish.exe" first.pgn
Yes, all paths were correct. I tried cd 'C:\analyse-pgn-1.1' apgn pgn_samples\first.pgn with the first.pgn in the folder pgn_samples and when I tried apgn first.pgn and apgn -engine "C:\analyse-pgn-1.1\stockfish.exe" first.pgn I moved first.pgn in the parent folder. It still gives the same error above
@mhdshl82 wait you downloaded it from the link I gave in the markdown file right? because it seems that one is an older version
@mhdshl82 wait you downloaded it from the link I gave in the markdown file right? because it seems that one is an older version
or maybe not since it looks like there's no significant changes between those versions from the git history, but anyways let me try to create a new compiled binary release from github actions
I also can't debug this problem really well since this is the Windows OS version of the program, I have transitioned to Ubuntu Linux a long time ago and I don't have any windows machine right now
@mhdshl82 wait you downloaded it from the link I gave in the markdown file right? because it seems that one is an older version
Yes I did. It was under releases. You seem to have removed now.
@mhdshl82 wait you downloaded it from the link I gave in the markdown file right? because it seems that one is an older version
or maybe not since it looks like there's no significant changes between those versions from the git history, but anyways let me try to create a new compiled binary release from github actions
I also can't debug this problem really well since this is the Windows OS version of the program, I have transitioned to Ubuntu Linux a long time ago and I don't have any windows machine right now
Thank you! At least, you know now that there is a problem with this executable.
@mhdshl82 could you try the new windows binary in this pre-release? https://github.com/mrdcvlsc/analyse-pgn/releases
@mhdshl82 could you try the new windows binary in this pre-release? https://github.com/mrdcvlsc/analyse-pgn/releases
I tried it apgn first.pgn it returns the following windows popup message the procedure entry point _ZNKSt19_codecvt_utf8_baselwE10do_unshiftER9_MbstatetPcS3RS3 could not be located in the dynamic library C:windows-apgn-gcc\build\bin\analyse.exe and interrupts the process as if it finishes analyzing, so I get in one second analyzed file 1 but it returns an empty first.analyzed.pgn
@mhdshl82 could you try the new windows binary in this pre-release? https://github.com/mrdcvlsc/analyse-pgn/releases
I tried it apgn first.pgn it returns the following windows popup message the procedure entry point _ZNKSt19_codecvt_utf8_baselwE10do_unshiftER9_MbstatetPcS3RS3 could not be located in the dynamic library C:windows-apgn-gcc\build\bin\analyse.exe and interrupts the process as if it finishes analyzing, so I get in one second analyzed file 1 but it returns an empty first.analyzed.pgn
@mhdshl82 could you try the new windows binary in this pre-release? https://github.com/mrdcvlsc/analyse-pgn/releases
I tried it apgn first.pgn it returns the following windows popup message the procedure entry point _ZNKSt19_codecvt_utf8_baselwE10do_unshiftER9_MbstatetPcS3RS3 could not be located in the dynamic library C:windows-apgn-gcc\build\bin\analyse.exe and interrupts the process as if it finishes analyzing, so I get in one second analyzed file 1 but it returns an empty first.analyzed.pgn
I might have compiled it dynamically, I'll try again tomorrow or by another day, I'll compile it statically linked next time
@mhdshl82 could you try the new windows binary in this pre-release? https://github.com/mrdcvlsc/analyse-pgn/releases
I tried it apgn first.pgn it returns the following windows popup message the procedure entry point _ZNKSt19_codecvt_utf8_baselwE10do_unshiftER9_MbstatetPcS3RS3 could not be located in the dynamic library C:windows-apgn-gcc\build\bin\analyse.exe and interrupts the process as if it finishes analyzing, so I get in one second analyzed file 1 but it returns an empty first.analyzed.pgn
@mhdshl82 could you try the new windows compiled executable here again? this is a new one https://github.com/mrdcvlsc/analyse-pgn/releases/tag/working-add-ci-e81229e6c2b866637cb130b4a49416ecfb42db00
@mhdshl82 could you try the new windows binary in this pre-release? https://github.com/mrdcvlsc/analyse-pgn/releases
I tried it apgn first.pgn it returns the following windows popup message the procedure entry point _ZNKSt19_codecvt_utf8_baselwE10do_unshiftER9_MbstatetPcS3RS3 could not be located in the dynamic library C:windows-apgn-gcc\build\bin\analyse.exe and interrupts the process as if it finishes analyzing, so I get in one second analyzed file 1 but it returns an empty first.analyzed.pgn
@mhdshl82 could you try the new windows compiled executable here again? this is a new one https://github.com/mrdcvlsc/analyse-pgn/releases/tag/working-add-ci-e81229e6c2b866637cb130b4a49416ecfb42db00
I tried it. Unfortunately, it did not work. it returns an empty first.analyzed.pgn
this is what it returns
Engine : C:\windows-apgn-gcc(1)\build\bin\engines\stockfish.exe
Threads : 1
Depth : 18
Color : A
Moves : 0
Openning Moves to Skip : 0
NOTE: depth is set greater than 12!!! analysis might take longer...
Analysing first.pgn please wait... ... ... Analyzed PGN files: 1 it did not go through the game and analyzed at all.
@mhdshl82 could you try the new windows binary in this pre-release? https://github.com/mrdcvlsc/analyse-pgn/releases
I tried it apgn first.pgn it returns the following windows popup message the procedure entry point _ZNKSt19_codecvt_utf8_baselwE10do_unshiftER9_MbstatetPcS3RS3 could not be located in the dynamic library C:windows-apgn-gcc\build\bin\analyse.exe and interrupts the process as if it finishes analyzing, so I get in one second analyzed file 1 but it returns an empty first.analyzed.pgn
@mhdshl82 could you try the new windows compiled executable here again? this is a new one https://github.com/mrdcvlsc/analyse-pgn/releases/tag/working-add-ci-e81229e6c2b866637cb130b4a49416ecfb42db00
I tried it. Unfortunately, it did not work. it returns an empty first.analyzed.pgn this is what it returns Engine : C:\windows-apgn-gcc(1)\build\bin\engines\stockfish.exe Threads : 1 Depth : 18 Color : A Moves : 0 Openning Moves to Skip : 0
NOTE: depth is set greater than 12!!! analysis might take longer...
Analysing first.pgn please wait... ... ... Analyzed PGN files: 1 it did not go through the game and analyzed at all.
It’s unfortunate that this problem might take some time to be solved. I’ll try to get my hands on a Windows PC this week, but I can’t promise that I’ll be able to fix it within that time
I tried to fix this without my own windows device and only using github action windows OS runners, but failed miserably. In the new branch I updated the code and added a workflow for auto compilation, when running the program the error is gone but the analysis on windows does not produce text in the output file, I figure out that the problem was inside the windows PIPE implementation (winProcRun.hpp
), If anyone wants contribute a fix that has a windows device please feel free to do so in the windows-pipe-fix branch.
It seems to be a good program and I would like to use it but after downloading the windows executable and running it using for example the cmd command: apgn first.pgn it gives back the following message Engine : C:\analyse-pgn-1.1/bin/engines/stockfish11_x86.exe Threads : 1 Depth : 11 Color : A Openning Moves to Skip : 4
Analysing first.pgn please wait... CreateProcessA: 2 terminate called after throwing an instance of 'std::runtime_error' what(): Creating Child Process Failed
so the process is interrupted . thank you in advance for helping with this issue.