Eschecs 1.2.1 (UCI chess GUI)

User projects written in or related to FreeBASIC.
ur_naz
Posts: 45
Joined: Mar 02, 2016 12:44

Re: Eschecs 1.0 (UCI chess GUI)

Postby ur_naz » Apr 29, 2018 22:17

it hangs off on my system =(
Roland Chastain
Posts: 837
Joined: Nov 24, 2011 19:49
Location: Dakar, Senegal
Contact:

Re: Eschecs 1.0 (UCI chess GUI)

Postby Roland Chastain » Apr 30, 2018 0:54

ur_naz wrote:it hangs off on my system =(


Thank you for testing. Sorry that the program doesn't work on your system. Could you make a description of what happens?

What I see here from time to time is that while the computer piece is moving, the piece stops and the application crashes. I do not know where it comes from. Is that the problem you found?

Has anyone else tried the program?
VANYA
Posts: 1272
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: Eschecs 1.0 (UCI chess GUI)

Postby VANYA » Apr 30, 2018 5:42

Hi Roland!

The program works, but after a few moves hangs. OS: windows XP sp3
Roland Chastain
Posts: 837
Joined: Nov 24, 2011 19:49
Location: Dakar, Senegal
Contact:

Re: Eschecs 1.0 (UCI chess GUI)

Postby Roland Chastain » Apr 30, 2018 6:22

Hello VANYA! Thank you.

VANYA wrote:The program works, but after a few moves hangs. OS: windows XP sp3


I found something.

Microsoft Windows [version 10.0.16299.371]
(c) 2017 Microsoft Corporation. Tous droits réservés.

C:\Atelier\Basic\chess\eschecs>build
Deleting eschecs.exe
Current directory: C:\Atelier\Basic\chess\eschecs

C:\Atelier\Basic\chess\eschecs>eschecs

Aborting due to runtime error 12 ("segmentation violation" signal) in C:\Atelier\Basic\chess\eschecs\source\sgui\sGUI_SystemEvents.bas::GETSYSEVENTS()


C:\Atelier\Basic\chess\eschecs>


In build.cmd, I had replaced "%fbc% -s gui -w all" by "%fbc% -s console -exx -w all".

I don't know what to do. My apologies to people who downloaded the program yesterday. Any suggestion welcome.
Last edited by Roland Chastain on Apr 30, 2018 12:54, edited 1 time in total.
Roland Chastain
Posts: 837
Joined: Nov 24, 2011 19:49
Location: Dakar, Senegal
Contact:

Re: Eschecs 1.0 (UCI chess GUI)

Postby Roland Chastain » Apr 30, 2018 12:54

I went through the file sGUI_SystemEvents.bas: I did not notice anything particular. This is the part of the library that detects events related to the mouse and keyboard. If anyone had an idea ...

By the way, why the compiler doesn't give the line number where the error occurs?

The application closes when the piece arrives at its destination.
paul doe
Posts: 553
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: Eschecs 1.0 (UCI chess GUI)

Postby paul doe » Apr 30, 2018 13:40

Roland Chastain wrote:I went through the file sGUI_SystemEvents.bas: I did not notice anything particular. This is the part of the library that detects events related to the mouse and keyboard. If anyone had an idea ...

In another thread I published a link to Dr. Memory, a tool that can be useful in such scenarios.

To use it, compile your program with debug information (if you're using GCC, the command line parameter is -gen gcc -Wc -ggdb), and execute it in Dr. Memory like this:

If you're using a 64-bit system:
drmemory -ignore_kernel -- yourprogram.exe (because it's 32-bit for now, you have to 'fudge' it to work in 64-bit mode)

If not, simply remove the -ignore_kernel parameter and invoke it normally:

drmemory -- yourprogram.exe

Or you can use gdb (included with FB)...
ur_naz
Posts: 45
Joined: Mar 02, 2016 12:44

Re: Eschecs 1.0 (UCI chess GUI)

Postby ur_naz » Apr 30, 2018 20:09

Roland Chastain wrote:
ur_naz wrote:it hangs off on my system =(


Thank you for testing. Sorry that the program doesn't work on your system. Could you make a description of what happens?

What I see here from time to time is that while the computer piece is moving, the piece stops and the application crashes. I do not know where it comes from. Is that the problem you found?

Has anyone else tried the program?

it just freezes after some moves and application is not responding (win7 x64)
And even if i close aplication after crash basic.exe (why not eschess.exe?) is still in process explorer
Roland Chastain
Posts: 837
Joined: Nov 24, 2011 19:49
Location: Dakar, Senegal
Contact:

Eschecs 1.2.1 (UCI chess GUI)

Postby Roland Chastain » Apr 30, 2018 20:59

I repaired one bug. Actually it had no relation to sGUI.

Here (Windows 10) the application seems to work. Please test it.

freebasic-eschecs-20180430.zip

@ur_naz
Thank you for report. I also had problems with basic.exe, so it isn't included in the latest release.

@paul doe
Thank you for the link. I downloaded the tool.
ur_naz
Posts: 45
Joined: Mar 02, 2016 12:44

Re: Eschecs 1.2.1 (UCI chess GUI)

Postby ur_naz » Apr 30, 2018 23:28

still freezes but less. this version is French? previous was Deutsch... maybe add menu for select language
Roland Chastain
Posts: 837
Joined: Nov 24, 2011 19:49
Location: Dakar, Senegal
Contact:

Re: Eschecs 1.2.1 (UCI chess GUI)

Postby Roland Chastain » May 01, 2018 6:07

@ur_naz

Thank you for testing the French version. :)

Yes, a language menu is a good idea, but for now I would prefer to understand why the application freezes.

To build the English version, open a command prompt, change directory to Eschecs main directory, and enter "build english". (Before that you will have to modify the compiler path in build.cmd.)
grindstone
Posts: 496
Joined: May 05, 2015 5:35
Location: Germany

Re: Eschecs 1.2.1 (UCI chess GUI)

Postby grindstone » May 01, 2018 11:24

Eschecs seems to freeze when a piece moves to the lower border of the board (row 1).
Roland Chastain
Posts: 837
Joined: Nov 24, 2011 19:49
Location: Dakar, Senegal
Contact:

Re: Eschecs 1.2.1 (UCI chess GUI)

Postby Roland Chastain » May 02, 2018 15:32

Found and corrected a bug (which was an unforeseen effect of a previous fix): in case of promotion, the chessboard was not redrawn correctly.

You can download the new files.

But concerning the freezing, I did not advance. In fact, I do not know where to look.

@grindstone

Thank you for your observation but unfortunately I did not find anything.

I think, now that the program has more or less its definitive form, that it deserves to be entirely rewritten. :)

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest