Closed chemtov closed 1 year ago
Please, tell me step by step the program options (the menu/toolbar names) you choose, to try to replicate exactly the problem. Also tell me if the pgn is in a folder with user write permissions.
./LucasR.py tools->PGN->read PGN file : file selector : ~/Documents/Chess/Games/JZ-64_vs_chem34_2022.12.23.pgn
New windown about : UserData/TemporaryDatabases/JZ-64_vs_chem34_2022.12.23.lcdb
Games->Edit
Single click on the 8th move for black (with ?? blunder there) and then click on the green "add" button for variation
Don't add anything and click "Accept" , then Question: Do you want to save the changes, click "yes" (no or cancel does the same) -> application closes
Re-do everything and add a variation like ... d6; h3, 0-0 , click "Accept" , answer yes or whatever -> application closes
The temporary database is in ../UserData/TemporaryDatabases/JZ-64_vs_chem34_2022.12.23.lcdb relative to the bin/LucasR.py and has write permission for the user, the same is true for the ~/Documents/Chess/Games directory.
Here is the pgn file JZ-64_vs_chem34_2022.12.23.zip
Let me know if you need anything else.
Thanks
Could you test the change in QT/QTUtil of this class:
class EscondeWindow:
def __init__(self, window):
self.window = window
def __enter__(self):
if Code.is_windows:
self.pos = self.window.pos()
screen = QtWidgets.QDesktopWidget().screenGeometry()
self.window.move(screen.width() * 10, 0)
return self
def __exit__(self, type, value, traceback):
if Code.is_windows:
self.window.move(self.pos)
self.window.show()
Hi,
patched Code/QT/QTUtil.py like this:
modified bin/Code/QT/QTUtil.py
@@ -157,13 +157,12 @@ class EscondeWindow:
if Code.is_windows:
screen = QtWidgets.QDesktopWidget().screenGeometry()
self.window.move(screen.width() * 10, 0)
- else:
- self.window.hide()
return self
def __exit__(self, type, value, traceback):
- self.window.move(self.pos)
- self.window.show()
+ if Code.is_windows:
+ self.window.move(self.pos)
+ self.window.show()
And the issue totally disapeared \o/.
Thanks a lot,
There is a problem in Linux, when a window is hidden, a child window is launched, and this one is closed. The solution is not to hide it, it will be necessary to evaluate what problems this causes.
Hi,
my environment is Fedora36
I try to edit a PGN, but when I'm adding a variation to it the application closes.
So I added this to the code:
Now the variation is saved but the application just close when I click the "Accept" or "Cancel" button. It closes as well when I open the variation and either "Accept" or "Cancel" it.
Then I got this:
And tried this:
But it still doesn't work and now the application stops without anything writen to the bug.log file.
Overall, I'm not 100% certain that this is not my local installation that is flowed. I've done my best to install it from github src code, but I could have done something wrong (it tooks some trial and error to get it working)
So can you reproduce this on a linux (wayland) environment ? I can reproduce it with R2.04 installed from your installer, but again something might be wrong with my overall env.
Beside this, your program seems great (a lot of reading to understand it all...) and having it working with chessnut air is even more awesome.
Thanks,