lucaschessR2 icon indicating copy to clipboard operation
lucaschessR2 copied to clipboard

Crash opening games from database

Open cja000 opened this issue 2 months ago • 10 comments

Hi,

After upgrading to 2.21, in Windows, I have the following problem: I open a game from the database, modify it, save it and when I try to open another game from the same database, Lucas Chess closes

Falling back to 2.20 I have no problem to do the previous steps.

Thank you for your wonderful program

cja000 avatar Sep 24 '25 07:09 cja000

Do you use Windows or Linux? If your OS is Windows: could you try reinstalling the latest version 2.21FP-2 and check again? (From FP to FP-2 there is a change of the graphic library version qt5.15 -> qt 5.12)

lukasmonk avatar Sep 24 '25 07:09 lukasmonk

I use Windows.

I have had this problem with FP, FP-1 and FP-2 I have fallback in all of them and reinstalled with the same problem :-(

I will try again with FP2 and let you know

cja000 avatar Sep 24 '25 08:09 cja000

:-O

With FP2, I open a game from the database, modify it, save it and just moving the mouse, LucasChess closes

cja000 avatar Sep 24 '25 08:09 cja000

Have you installed FP-2 (full installation, not as an update)? If this is the case, does it happen in one database or in all databases? If all, can you send me the bug.log file (in the subfolder bin) here or to [email protected].

lukasmonk avatar Sep 24 '25 08:09 lukasmonk

Downloaded InsLucasChessR02_21-FP-2.exe and installed SHA256: 07BBFF8E68979DC15B64F6C9DC4F6FA7AA84400A467DEDCF51AB390FD78FE03C

Tested with 3 different databases Sometimes it crashes moving the mouse over the table of the database and others trying to open a new game. The second game I try to open, never open.

In the c:\Users\cja000\AppData\Local\Programs\LucasChessR\bin\bug.log file only appears:

Version R 2.21-FP-2

Nothing else

cja000 avatar Sep 24 '25 09:09 cja000

I have installed the portable version and I have the same problem This time without modifying or saving the game. The second game I try to open, crashes

Now there is some info in the bug.log

Version R 2.21-FP-2
2025-09-24 12:10:51.915710
Traceback (most recent call last):
  File "LucasChessR\bin\LucasR.py", line 34, in <module>
  File "LucasChessR\bin\Code\Base\Init.py", line 18, in init
  File "LucasChessR\bin\Code\MainWindow\LucasChessGui.py", line 106, in run_gui
  File "LucasChessR\bin\Code\QT\Piezas.py", line 138, in save_all_png
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Ajedrez\\LucasChessR02_21-FP-2\\Resources\\Pieces\\Chess.com-Neo\\wp.svg'

I cannot find the Chess.com-Neo folder in the portable version, but in the installed version it does exist. (Manually installed by myself)

Copying that set of pieces to \\Resources\\Pieces, they appear in the selection of pieces but I still have the same error but no new message in the bug.log

I have tried several times, all of them crashing, but the bug.log has no new info.

cja000 avatar Sep 24 '25 10:09 cja000

Could you download the portable version of the 20c and try it out?

lukasmonk avatar Sep 24 '25 10:09 lukasmonk

No problem with 20c portable

The bug.log file is only one line:

Version R 2.20c

I'm using always the same user_data folder.

There is no Chess.com-Neo pieces here

cja000 avatar Sep 24 '25 13:09 cja000

With the portable version 2.21FP2, you could do the following...: Delete the Code folder that is in the bin subfolder. Unzip: Code21FP2.zip inside the bin folder, to generate the Code for version 21-FP-2. And test the program, it is supposed to give the same error.

Then after this test, delete again the Code folder and Unzip: Code20c.zip inside the bin folder, to generate the Code for version 20c And test the program.

If the foreseeable happens, that it doesn't work with the 21 and it works with the 20c, I will try to add the changes by creating new zips, to check which change is wrong.

On the other hand, would it be too much trouble to send me to [email protected] the Chess.com-Neo pieces, to test with them?

lukasmonk avatar Sep 24 '25 18:09 lukasmonk

Test done and expected result :-( 20c works and 21 fails

cja000 avatar Sep 25 '25 07:09 cja000