lukasmonk / lucaschessR2

Lucas Chess R Version 2
GNU General Public License v3.0
255 stars 36 forks source link

R 2.12 Stuck on "Selecting the best stockfish version for your CPU" #134

Open codedcontainer opened 4 months ago

codedcontainer commented 4 months ago

After updating the application, selecting "Tools" opens a black modal that says "Selecting the best stockfish version for your CPU". Closing the window closes all opened instances of the app. Screenshot from 2024-03-05 12-38-20

Running the application on Linux Mint 20.3 x86_64 Kernal: 5.15.0-100-generic CPU AMD Ryzen 5 5500U with Radeon graphics

Some logging information in /var/log/syslog: systemd-coredump[248042]: Process 247835 (LucasR) of user 1000 dumped core.#012#012Stack trace of thread 247835:#012#0 0x00007efc3c5e900b __GI_raise (libc.so.6 + 0x4300b)#012#1 0x00007efc3c5c8859 __GI_abort (libc.so.6 + 0x22859)#012#2 0x00007efc340210f5 n/a (/home/jason/LucasChessR/bin/libglib-2.0.so.0 + 0x7b0f5)

lukasmonk commented 4 months ago

It would be important to know which of the stockfish versions running on your computer is the fastest. The engines that are tested are in LucasChessR/bin/OS/linux/engines/stockfish The list of engines is from slowest to fastest: stockfish-16.1-x86-64 stockfish-16.1-x86-64-sse3-popcnt stockfish-16.1-x86-64-ssse3 stockfish-16.1-x86-64-sse41-popcnt stockfish-16.1-x86-64-avx2 stockfish-16.1-x86-64-bmi2 stockfish-16.1-x86-64-avxvnni stockfish-16.1-x86-64-avx512 stockfish-16.1-x86-64-vnni256 stockfish-16.1-x86-64-vnni512

The test is simple, goto the stockfish folder and just launch the stockfish version manually, and if it launches, type e.g.: go depth 2 And thus determine which one is the best and which one crashes, and please share the results.

lukasmonk commented 4 months ago

If you want, you could test: https://sourceforge.net/projects/lucaschessr/files/Version_R2/LucasChessR2_12a_LINUX.sh

codedcontainer commented 4 months ago

@lukasmonk The problem goes away when I make all of those Stockfish files executable. Is there a way to make sure that the permissions are correct for users when they update the app in a Unix environment?

lukasmonk commented 4 months ago

Yes, that's probably the problem. It can be solved by running the RunEngines script, which is in ~/LucasChessR/bin/OS/linux, open a terminal there and run sh ./RunEngines.

In other words, open a terminal and run them:

cd ~/LucasChessR/bin/OS/linux
sh ./RunEngines