Closed cyrenaique closed 2 years ago
Heya, Could you point me to the PGN that's giving you trouble ? I experimented with a few different PGNs across the internet. Maybe there is a format that I didn't cater for.
pgns are from chessbase, this one I edited it to remove evaluation and so on... I can attach a pgn from chessbase if you want changing the extension to txt I guess?
hmm if you can attach the unedited file you're trying to parse that would be perfect, seems like the formatting is getting destroyed here
hoping it's fine, I just changed the extension to upload it
I converted that file to a PGN extenstion and dropped it in and it works fine for me
yep I can see it on this page but when I click on the file it gives me the error.
On Thu, Dec 9, 2021, 12:36 AM Rohan Madhwal @.***> wrote:
I converted that file to a PGN extenstion and dropped it in and it works fine for me ![IMG_2555]( https://user-images.githubusercontent.com/14342304/145308108-8ece65fc-a033-4b8b [image: IMG_2554] https://user-images.githubusercontent.com/14342304/145308136-1623332a-377d-4b5f-92f1-a020f8f41fde.jpg -9e09-bedf44cb3372.jpg) .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LinusCDE/chessmarkable/issues/18#issuecomment-989314248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMF2UGH75SZ3QMXCO3JVEDUP7TZPANCNFSM5JUZ4BHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
can I confirm that you are inserting the pgn as below ?
reMarkable: ~/.config/chessmarkable/pgn/ ls
Anand.pgn Levon.pgn Tal_Memorial_2016.pgn
Bareev.pgn Nepo.pgn Test.pgn
Giri.pgn Polgar.pgn Timman.pgn
Grischuk.pgn Radjabov.pgn Topalov.pgn
Kramnik.pgn Shirov.pgn
yes, i just copy the file on the directory via scp, sorry I didn't see the 2nde picture.. congrats! so I don't know... I will give a try again tomorrow. thanks again, I will let you know asap
sure, seems to run fine for my remarkable 2 so I'm out of ideas unless you're maybe trying with a different file
It should print the full error to the console. If you have a launcher you can probably get it with journalctl -eu <remux/tarnish>
. Alternatively try to start chessmarkable manually with rm2fb-client chessmarkable
and it should print it into the console. Maybe there is something like a nasty "\r" or other character hidden.
I will try with exact same file to check. also can u read multiple games in the same pgn?
yep, it will load all the games in the menu like the one you see in my screenshot above
still the same... strange.
reMarkable: ~/.config/chessmarkable/pgn/ chessmarkable
[2021-12-09T07:27:14Z DEBUG chessmarkable] Debug Mode is enabled by default.
To change this, set the env "RUST_LOG" something else (e.g. info, warn, error or comma separated list of "[module=]
See https://github.com/ddvk/remarkable2-framebuffer/ on how to solve
this. Launchers (installed through toltec) should automatically do this.
[2021-12-09T07:27:14Z INFO libremarkable::input::ev] Init complete for "/dev/input/event0" [2021-12-09T07:27:14Z INFO libremarkable::input::ev] Init complete for "/dev/input/event2" [2021-12-09T07:27:15Z DEBUG libremarkable::input::scan] Closed initially opened evdev fds (if not used by now). [2021-12-09T07:27:34Z WARN libremarkable::input::multitouch] Unknown event code for multitouch [type: 3 code: 25 value: 0]
reMarkable: ~/.config/chessmarkable/pgn/ ls -l -rw-r--r-- 1 root root 1472 Dec 8 15:19 Caro.pgn -rw-r--r-- 1 root root 1164 Dec 8 21:15 Caro2.pgn -rw-rw-rw- 1 root root 1472 Dec 9 07:21 Caro_2C_Crushed_guy_2021.pgn -rw-r--r-- 1 root root 11537 Oct 23 15:38 b_short.pgn -rw-r--r-- 1 root root 8750 Oct 23 15:40 w_short.pgn
I changed the right (rw) just in case... still
when running chessmarkable without a launcher you need to run it with rm2fb-client.
So run something like this:
reMarkable: ~/ rm2fb-client chessmarkable
I'm guessing when you ran the above you didn't see anything on your remarkable ?
I got the same results with this command.
I got sometimes this crash:
thread 'main' panicked at 'called Option::unwrap()
on a None
value', src/bin/chessmarkable/main.rs:275:79
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
when running chessmarkable without a launcher you need to run it with rm2fb-client.
So run something like this:
reMarkable: ~/ rm2fb-client chessmarkable
I'm guessing when you ran the above you didn't see anything on your remarkable ?
It might have worked as there is some kind of elf-patching going on in the toltec packaging that could embed this behaviour if I'm not mistaken. Haven't looked into it too deep and therefore didn't update the warning.
(We will also probably not have the need for LD_PRELOAD or the original rm2fbclient anymore as I recently merged a built-in client for libremarkable. This will also enable musl builds btw.)
I got sometimes this crash: thread 'main' panicked at 'called Option::unwrap() on a None value', src/bin/chessmarkable/main.rs:275:79
not sure you saw that like I edited after
I got sometimes this crash: thread 'main' panicked at 'called Option::unwrap() on a None value', src/bin/chessmarkable/main.rs:275:79
not sure you saw that like I edited after
Right. Wasn't in the email notifications and hadn't seen it straight away. Seems related to managing the selected pgn. May get solved with the general issue it seems.
Edit: The source code line: https://github.com/LinusCDE/chessmarkable/blob/0.8.0-1/src/bin/chessmarkable/main.rs#L275
Should I reinstall it or do I have access to the code in ssh on the rm2?
I installed from packages so I guess I don't have access to the code, sorry I am really rusty in Rust :-)
No worries. The link was just a "fyi". Not meant as a "do it yourself".
I don't think that this error will matter anyway. But better error handling in some places is something I definitely should do anyways.
Hi, sorry I bricked my remarkable temporarily so couldn't follow up with this. It's fine now so I could maybe help more, did you have any luck afterwards ?
Okay, I seem to have found the issue. There's a zero width non breaking space at the start of your file which is giving the parsing libraries issues. For now, if you want to view your replays, simply opening them, copying them and pasting them into a new file and saving that should work (if this still doesnt work your text editor might be adding them, so try doing it in vim). I'll try to commit a fix for this when I find some time!
Okay, digging a bit deeper with a hex editor showed me it's a UTF-8 BOM character
So a faster way to fix the issue is to open the file on vim and run
:setlocal nobomb
and remember to save/exit
:wq
Glad to hear that :) Happy holidays!
Hello, very nicely done except the parsing of simple pgns. I got: "couldn't parse any games from PGN"... I have access to the list of pgn files but whatever is pgn look like I got this. Remarkable 2. Best, Arno