fah-control
fah-control copied to clipboard
Encoding issue when displaying error messages (F@h 7.6.x)
Hello,
There seems to be an issue with F@H / FahControl 7.6.x when handling "exotic" characters (i.e. french ones ;) ) in error messages (mainly network-related ones)
(message should read : "Une connexion existante a dû être fermée par l’hôte distant.")
The easiest way to reproduce this is to launch the Viewer and close it (to receive the "usual" networking error msg)
It is OK with F@H / FahControl 7.5.1
Logfile for v7.6.9 appears OK in Notepad2 (or Notepad++) with the correct UTF8 encoding.
My computer is running Windows 10 Family Edition 1909 :
I am available if you need more information, or if you want me to test a fix/beta version.
Thanks !
JY.
Just want to put my observations on this issue. This hex encoding for localized characters is not only in the log messages transmitted by the FAHClient, which is not expected to be valid Pyon/Json, but can also be found in other messages, like info.
For example:
[ "System", ... ["CUDA", "Not detected: Failed to open dynamic library 'nvcuda.dll': Le module sp\xe9cifi\xe9 est introuvable.\r\n"], ... ]
Note the \xe9 in the value. Perhaps this is valid Pyon, I don't know, but it is not valid Json.
This is a problem in C!. I may have been fixed recently. https://github.com/CauldronDevelopmentLLC/cbang/commit/641d0cc369d01fe717faae576a894c745d51423f
JSON allows for \u####
escape codes but not \x##
. This may need more work.
Any further progress on this? Changes made in the latest 7.6 betas?
Hello, I also spotted a similar issue, not sure if it has also been fixed in your commit @jcoffland?
09:49:13:ERROR:WU01:FS00:Exception: Could not get IP address for assign1.foldingathome.org: µLªkÃgO³o¥x¥D¾÷¡C
09:49:13:ERROR:WU01:FS00:Exception: Could not get IP address for assign2.foldingathome.org: µLªkÃgO³o¥x¥D¾÷¡C
09:49:13:ERROR:WU01:FS00:Exception: Could not get IP address for assign3.foldingathome.org: µLªkÃgO³o¥x¥D¾÷¡C
09:49:13:ERROR:WU01:FS00:Exception: Could not get IP address for assign4.foldingathome.org: µLªkÃgO³o¥x¥D¾÷¡C
09:49:13:ERROR:WU01:FS00:Exception: Failed to find any IP addresses for assignment servers
09:50:57:WU00:FS00:Sending unit results: id:00 state:SEND error:NO_ERROR project:17428 run:0 clone:3630 gen:369 core:0xa7 unit:0x00000e2e000001710000441400000000
09:50:57:WU00:FS00:Uploading 10.21MiB to 128.252.203.9
09:50:57:WU00:FS00:Connecting to 128.252.203.9:8080
09:50:57:WARNING:WU00:FS00:WorkServer connection failed on port 8080 trying 80
09:50:57:WU00:FS00:Connecting to 128.252.203.9:80
09:50:57:WARNING:WU00:FS00:Exception: Failed to send results to work server: Failed to connect to 128.252.203.9:80:
ïÍ\!Õ#Ú0;_
09:50:57:WU00:FS00:Trying to send results to collection server
09:50:57:WU00:FS00:Uploading 10.21MiB to 128.252.203.1
09:50:57:WU00:FS00:Connecting to 128.252.203.1:8080
09:50:57:WARNING:WU00:FS00:WorkServer connection failed on port 8080 trying 80
09:50:57:WU00:FS00:Connecting to 128.252.203.1:80
09:50:57:ERROR:WU00:FS00:Exception: Failed to connect to 128.252.203.1:80:
ïÍ\!Õ#Ú0;_
09:55:12:WU00:FS00:Sending unit results: id:00 state:SEND error:NO_ERROR project:17428 run:0 clone:3630 gen:369 core:0xa7 unit:0x00000e2e000001710000441400000000
09:55:12:WU00:FS00:Uploading 10.21MiB to 128.252.203.9
09:55:12:WU00:FS00:Connecting to 128.252.203.9:8080
09:55:12:WARNING:WU00:FS00:WorkServer connection failed on port 8080 trying 80
09:55:12:WU00:FS00:Connecting to 128.252.203.9:80
09:55:12:WARNING:WU00:FS00:Exception: Failed to send results to work server: Failed to connect to 128.252.203.9:80:
ïÍ\!Õ#Ú0;_
09:55:12:WU00:FS00:Trying to send results to collection server
09:55:12:WU00:FS00:Uploading 10.21MiB to 128.252.203.1
09:55:12:WU00:FS00:Connecting to 128.252.203.1:8080
09:55:12:WARNING:WU00:FS00:WorkServer connection failed on port 8080 trying 80
09:55:12:WU00:FS00:Connecting to 128.252.203.1:80
09:55:12:ERROR:WU00:FS00:Exception: Failed to connect to 128.252.203.1:80:
ïÍ\!Õ#Ú0;_